Pegasus DEX audit reports

Pegasus DEX has 1 public audit report from CertiK; dated 20 Mar 2023; no critical findings reported. It also holds 1 deployed contract on 1 chain.

Critical and high findings
No open critical findings; 2 high open in the firms’ reports
Open the latest report
Your label, live
Get the label for your site

Last updated . It holds audits and findings, contracts and incidents up to Nov 2026. Trustblock does not review code.

Audits1

Newest first

ReportSecurity firmDateScopeCritical findingsFindingsSource
PegasusSecurity firm: CertiKDate: Scope: 1 address on BNB ChainNone openFindings: 2 high · 7 low
9 open
skynet.certik.com ↗

Open findings across every firm9

Statuses are the security firms’ own

9 findings are still open or acknowledged in the firms’ reports: 2 high, 7 low (all open).

High
2
Low
7
  • High Open

    Inconsistent Function Implementation with Tokens

    Pegasus · CertiK · 20 Mar 2023 · Report ↗

  • High Open

    Initial Token Distribution

    Pegasus · CertiK · 20 Mar 2023 · Report ↗

  • Low Open

    Hardcode Address

    Pegasus · CertiK · 20 Mar 2023 · Report ↗

  • Low Open

    Missing Emit Events

    Pegasus · CertiK · 20 Mar 2023 · Report ↗

  • Low Open

    Potential Sandwich Attacks

    Pegasus · CertiK · 20 Mar 2023 · Report ↗

  • Low Open

    Privilege not Revoked or Transferred

    Pegasus · CertiK · 20 Mar 2023 · Report ↗

  • Low Open

    Unnecessary Use of SafeMath

    Pegasus · CertiK · 20 Mar 2023 · Report ↗

  • Low Open

    Unused Event

    Pegasus · CertiK · 20 Mar 2023 · Report ↗

  • Low Open

    Variables That Could Be Declared as Immutable

    Pegasus · CertiK · 20 Mar 2023 · Report ↗

Findings9

Statuses are the security firm’s own, from each report.

SeverityOpenAcknowledgedFixed
Critical000
High200
Medium000
Low700
HighInconsistent Function Implementation with TokensPegasus · CertiK · 20 Mar 2023Open

The code comment in line 551 indicates that the `swapAndLiquify()` function is used to "add liquidity". However, the implementation of the `swapAndLiquify()` function swaps the token to BNB and sends it to the privileged `marketingaddress`. ```solidity=587 function swapAndLiquify(uint256 contractTokenBalance) private lockTheSwap { // swap tokens for ETH swapTokensForEth(contractTokenBalance); // <- this breaks the ETH -> HATE swap when swap+liquify is triggered payable(marketingaddress).transfer(address(this).balance); emit SwapAndLiquify(contractTokenBalance, address(this).balance); } ```

Open the report
HighInitial Token DistributionPegasus · CertiK · 20 Mar 2023Open

All of the PEG tokens are sent to the contract deployer when deploying the contract. This could be a centralization risk as the deployer can distribute PEG tokens without obtaining the consensus of the community.

Open the report
LowHardcode AddressPegasus · CertiK · 20 Mar 2023Open

There are many hardcode addresses in this codebase.

Open the report
LowMissing Emit EventsPegasus · CertiK · 20 Mar 2023Open

There should always be events emitted in the sensitive functions that are controlled by centralization roles.

Open the report
LowPotential Sandwich AttacksPegasus · CertiK · 20 Mar 2023Open

A sandwich attack might happen when an attacker observes a transaction swapping tokens without setting restrictions on slippage or minimum output amount. The attacker can manipulate the exchange rate by front-running (before the transaction is attacked) a transaction to purchase one of the assets and make profits by back-running (after the transaction is attacked) a transaction to sell the asset. The following functions are called without setting restrictions on slippage or minimum output amount, so transactions triggering these functions are vulnerable to sandwich attacks, especially when the input amount is large: - `uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens()`

Open the report
LowPrivilege not Revoked or TransferredPegasus · CertiK · 20 Mar 2023Open

The owner is exempt from fees and transaction limits by default. Yet when ownership is reset through `renounceOwnership()` or `transferOwnership()`, the exemptions are not granted to the new owner nor are they revoked from the previous owner.

Open the report
LowUnnecessary Use of SafeMathPegasus · CertiK · 20 Mar 2023Open

The `SafeMath` library is used unnecessarily. With Solidity compiler versions 0.8.0 or newer, arithmetic operations will automatically revert in case of integer overflow or underflow. ```solidity=21 library SafeMath { ``` - An implementation of `SafeMath` library is found. --- ```solidity=180 using SafeMath for uint; ``` - `SafeMath` library is used for `uint256` type in `SafeBEP20` contract. --- ```solidity=401 using SafeMath for uint256; ``` - `SafeMath` library is used for `uint256` type in `PEG` contract. ```solidity=477 _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "BEP20: transfer amount exceeds allowance")); ``` - `SafeMath.sub` is called in `transferFrom` function of `PEG` contract. *Note: Only a sample of 2 `SafeMath` library usage in this contract (out of 12) are shown above.*

Open the report
LowUnused EventPegasus · CertiK · 20 Mar 2023Open

```solidity=422 event MinTokensBeforeSwapUpdated(uint256 minTokensBeforeSwap); ``` - `MinTokensBeforeSwapUpdated` is declared in `PEG` but never emitted.

Open the report
LowVariables That Could Be Declared as ImmutablePegasus · CertiK · 20 Mar 2023Open

The linked variables assigned in the constructor can be declared as `immutable`. Immutable state variables can be assigned during contract creation but will remain constant throughout the lifetime of a deployed contract. A big advantage of immutable variables is that reading them is significantly cheaper than reading from regular state variables since they will not be stored in storage.

Open the report

Contracts1

AddressChainSource code
0x03887c177c18140209c0f93adc230d4c5515bf4aChain: BNB ChainSource code: Verified source

Pegasus DEX: questions

Is Pegasus DEX audited?

Trustblock holds 1 public audit report for Pegasus DEX, dated 20 Mar 2023. The latest is by CertiK (“Pegasus”).

Who audited Pegasus DEX?

CertiK wrote the report Trustblock holds for Pegasus DEX.

Are there open findings in Pegasus DEX’s audits?

9 findings are still open or acknowledged in the firms’ reports: 2 high, 7 low (all open). No critical finding is reported. Statuses are the security firms’ own.

Show this on your site

Is this your project? Show this record on your own website. The label states what the record holds, links to this page and updates by itself. It is free and needs no sign-in.

Content

Facts

Automatic: the three strongest facts of this project’s own record (its last audit and two more), highlighted. They update with the record. Picking a fact turns Automatic off.

Fixed as
Language

Style

Layout
Theme
Accent
Corners

Format

Size
Date
Embed as
HTML
<head>
<script src="https://widget.trustblock.run/project-widget.min.js" defer></script>
</head>
<body>
<div
data-tb-project-widget
data-tb-project-slug="pegasus-dex"
></div>
</body>

Paste the code where the label should appear. It uses no API credit and updates by itself.

Something wrong on this page? A missing report, a wrong date, a finding that was fixed since. Tell us and we check it against its source.

Tell us