Pepe Community audit reports

Pepe Community has 1 public audit report from CertiK; dated 8 Sep 2023; no critical findings reported. It also holds 1 deployed contract on 1 chain.

Critical and high findings
No open critical findings; 1 high acknowledged 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
Pepe Community - AuditSecurity firm: CertiKDate: Scope: 1 address on EthereumNone openFindings: 2 high · 2 medium · 12 low
2 fixed · 2 acknowledged · 12 open
skynet.certik.com ↗

Open findings across every firm14

Statuses are the security firms’ own

14 findings are still open or acknowledged in the firms’ reports: 1 high, 1 medium, 12 low (12 open, 2 acknowledged).

High
1
Medium
1
Low
12
  • High Acknowledged

    Initial Token Distribution

    Pepe Community - Audit · CertiK · 8 Sep 2023 · Report ↗

  • Medium Acknowledged

    Dangerous Usage of `tx.origin`

    Pepe Community - Audit · CertiK · 8 Sep 2023 · Report ↗

  • Low Open

    Check-Effects-Interactions Pattern Violation

    Pepe Community - Audit · CertiK · 8 Sep 2023 · Report ↗

  • Low Open

    Divide Before Multiply

    Pepe Community - Audit · CertiK · 8 Sep 2023 · Report ↗

  • Low Open

    Insecure Condition Checking

    Pepe Community - Audit · CertiK · 8 Sep 2023 · Report ↗

  • Low Open

    Logical Issue in `swapBack()`

    Pepe Community - Audit · CertiK · 8 Sep 2023 · Report ↗

  • Low Open

    Miscalculation of Max Holding

    Pepe Community - Audit · CertiK · 8 Sep 2023 · Report ↗

  • Low Open

    Potential Divide by Zero

    Pepe Community - Audit · CertiK · 8 Sep 2023 · Report ↗

  • Low Open

    Potential Sandwich Attacks

    Pepe Community - Audit · CertiK · 8 Sep 2023 · Report ↗

  • Low Open

    Redundant Code

    Pepe Community - Audit · CertiK · 8 Sep 2023 · Report ↗

All 14 open and acknowledged findings

Findings16

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

SeverityOpenAcknowledgedFixed
Critical000
High011
Medium011
Low1200
LowCheck-Effects-Interactions Pattern ViolationPepe Community - Audit · CertiK · 8 Sep 2023Open

In the `ERC20` contract, function `transferFrom()` violates the "Check-Effects-Interactions" pattern, which is a best practice for writing secure smart contracts. The pattern suggests that all state changes should be performed before making any external function calls to prevent reentrancy attacks and ensure the predictable behavior of the contract. ```solidity=298 function transferFrom( address sender, address recipient, uint256 amount ) public virtual override returns (bool) { _transfer(sender, recipient, amount); _approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance")); return true; } ``` In the `transferFrom()` function, the `_transfer()` function is called before the `_approve()` function. The `_transfer()` function is responsible for transferring tokens from the sender to the recipient, and it may involve external interactions such as swapping and adding liquidity. By calling `_transfer()` before `_approve()`, the function allows external calls to be made before completing the necessary state changes. This order of function calls can lead to a reentrancy vulnerability. An attacker could potentially exploit this vulnerability by creating a malicious contract that calls back into the `transferFrom()` function during the execution of the `_transfer()` function. This can result in unexpected behavior and potentially allow the attacker to manipulate the contract's state or steal tokens. It is also a better practice to validate the allowance first to reduce gas costs in case it reverts.

Open the report
LowDivide Before MultiplyPepe Community - Audit · CertiK · 8 Sep 2023Open

Performing integer division before multiplication truncates the low bits, losing the precision of calculation. ```solidity=1212 fees = amount.mul(sellTotalFees).div(100); ``` ```solidity=1213 tokensForLiquidity += fees * sellLiquidityFee / sellTotalFees; ```

Open the report
LowInsecure Condition CheckingPepe Community - Audit · CertiK · 8 Sep 2023Open

If a reentrancy attack happened in the function `_transfer()` while the swap is occurring, the variable `swapping` could be `true` in Line#1200, then the `takeFee` would always be `false`. ```solidity=1200 bool takeFee = !swapping; ```

Open the report
LowLogical Issue in `swapBack()`Pepe Community - Audit · CertiK · 8 Sep 2023Open

The following is the logic contained in the `swapBack()` function. ```solidity function swapBack() private { uint256 contractBalance = balanceOf(address(this)); uint256 totalTokensToSwap = tokensForLiquidity + tokensForMarketing + tokensForDev; bool success; if(contractBalance == 0 || totalTokensToSwap == 0) {return;} if(contractBalance > swapTokensAtAmount * 20){ contractBalance = swapTokensAtAmount * 20; } uint256 liquidityTokens = contractBalance * tokensForLiquidity / totalTokensToSwap / 2; uint256 amountToSwapForETH = contractBalance.sub(liquidityTokens); uint256 initialETHBalance = address(this).balance; swapTokensForEth(amountToSwapForETH); uint256 ethBalance = address(this).balance.sub(initialETHBalance); uint256 ethForMarketing = ethBalance.mul(tokensForMarketing).div(totalTokensToSwap); uint256 ethForDev = ethBalance.mul(tokensForDev).div(totalTokensToSwap); uint256 ethForLiquidity = ethBalance - ethForMarketing - ethForDev; tokensForLiquidity = 0; tokensForMarketing = 0; tokensForDev = 0; ``` If the condition `if(contractBalance > swapTokensAtAmount * 20)` is met, not all the tokens in the contract are transferred in this case, however, all the tokens for liquidity, marketing and dev are set to zero at the end of the function, which is incorrect. As a result, if fees are updated immediately, the tokens for liquidity, marketing and dev would be miscalculated.

Open the report
LowMiscalculation of Max HoldingPepe Community - Audit · CertiK · 8 Sep 2023Open

The transaction may be charged fees, so the max holding of the receiver should be the sum of the held tokens and the amount received from the transfer. The fees should not be included in the max holding. ```solidity=1164 require(amount + balanceOf(to) <= maxWallet, "Max wallet exceeded"); ``` - Max holding is checked. ```solidity=1229 amount -= fees; ``` - Receiving amount is adjusted. ```solidity=369 _balances[recipient] = _balances[recipient].add(amount); ``` - Balance is increased by the adjusted amount.

Open the report
LowPotential Divide by ZeroPepe Community - Audit · CertiK · 8 Sep 2023Open

Performing division by zero would raise an error and cause the transaction to revert. ```solidity=1213 tokensForLiquidity += fees * sellLiquidityFee / sellTotalFees; ``` The expression `fees * sellLiquidityFee / sellTotalFees` may divide by zero. Its divisor has has estimated interval [0, 99]. --- ```solidity=1214 tokensForDev += fees * sellDevFee / sellTotalFees; ``` The expression `fees * sellDevFee / sellTotalFees` may divide by zero. Its divisor has has estimated interval [0, 99]. --- ```solidity=1215 tokensForMarketing += fees * sellMarketingFee / sellTotalFees; ``` The expression `fees * sellMarketingFee / sellTotalFees` may divide by zero. Its divisor has has estimated interval [0, 99]. --- ```solidity=1220 tokensForLiquidity += fees * buyLiquidityFee / buyTotalFees; ``` The expression `fees * buyLiquidityFee / buyTotalFees` may divide by zero. Its divisor has has estimated interval [0, 50]. --- ```solidity=1221 tokensForDev += fees * buyDevFee / buyTotalFees; ``` The expression `fees * buyDevFee / buyTotalFees` may divide by zero. Its divisor has has estimated interval [0, 50]. --- ```solidity=1222 tokensForMarketing += fees * buyMarketingFee / buyTotalFees; ``` The expression `fees * buyMarketingFee / buyTotalFees` may divide by zero. Its divisor has has estimated interval [0, 50]. --- ```solidity=1277 uint256 liquidityTokens = contractBalance * tokensForLiquidity / totalTokensToSwap / 2; ``` The expression `contractBalance * tokensForLiquidity / totalTokensToSwap` may divide by zero. Its divisor has has estimated interval [0, pinf]. --- ```solidity=1286 uint256 ethForMarketing = ethBalance.mul(tokensForMarketing).div(totalTokensToSwap); ``` The expression `ethBalance.mul(tokensForMarketing).div(totalTokensToSwap)` may divide by zero. Its divisor has has estimated interval [0, pinf]. --- ```solidity=1287 uint256 ethForDev = ethBalance.mul(tokensForDev).div(totalTokensToSwap); ``` The expression `ethBalance.mul(tokensForDev).div(totalTokensToSwap)` may divide by zero. Its divisor has has estimated interval [0, pinf].

Open the report
LowPotential Sandwich AttacksPepe Community - Audit · CertiK · 8 Sep 2023Open

A sandwich attack might happen when an attacker observes a transaction swapping tokens or adding liquidity without setting restrictions on slippage or minimum output amount. The attacker can manipulate the exchange rate by frontrunning (before the transaction being attacked) a transaction to purchase one of the assets and make profits by backrunning (after the transaction being 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: ```solidity=1243 uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens( tokenAmount, 0, // accept any amount of ETH path, address(this), block.timestamp ); ``` ```solidity=1256 uniswapV2Router.addLiquidityETH{value: ethAmount}( address(this), tokenAmount, 0, // slippage is unavoidable 0, // slippage is unavoidable deadAddress, block.timestamp ); ```

Open the report
LowRedundant CodePepe Community - Audit · CertiK · 8 Sep 2023Open

There are some redundant or unnecessary codes in the codebase. 1. Comparisons that are always true or always false may be incorrect or unnecessary. The check to ensure `_percent >= 0` will always be true for `uint256` values: ```solidity=1310 require(_percent <= 1000 && _percent >= 0, "Must set auto LP burn percent between 0% and 10%"); ``` 2. Duplicate check regarding `to != address(0)`. The `_transfer()` function already requires `to` to not be the zero address: ```solidity=1134 if ( from != owner() && to != owner() && to != address(0) && to != address(0xdead) && !swapping ) ``` 3. Unnecessary increment of zero: ```solidity=1170 if (block.number <= (launchedAt + 0) && to != uniswapV2Pair && to != address(0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D) ) { _blacklist[to] = false; } ```

Open the report
LowState Variable Should Be Declared ConstantPepe Community - Audit · CertiK · 8 Sep 2023Open

State variables that never change should be declared as `constant` to save gas. ```solidity=881 uint256 public manualBurnFrequency = 30 minutes; ``` - `manualBurnFrequency` should be declared `constant`.

Open the report
LowUnchecked Low-level CallPepe Community - Audit · CertiK · 8 Sep 2023Open

The low-level `call` function returns the status of the call as first variable in the returned tuple. The status of the `call` is not asserted to be `true`, which would treat the low-level call as a success even when it has reverted. ```solidity=1297 (success,) = address(devWallet).call{value: ethForDev}(""); ``` ```solidity=1305 (success,) = address(marketingWallet).call{value: address(this).balance}(""); ```

Open the report
Show 2 more
LowUnused Return ValuePepe Community - Audit · CertiK · 8 Sep 2023Open

The smart contract does not check or store the return value of an external call in a local or state variable, which may introduce vulnerabilities due to the unhandled outcome. ```solidity=1256 uniswapV2Router.addLiquidityETH{value: ethAmount}( address(this), tokenAmount, 0, // slippage is unavoidable 0, // slippage is unavoidable deadAddress, block.timestamp ); ```

Open the report
LowWrong Value is Emitted in `SwapAndLiquify` EventPepe Community - Audit · CertiK · 8 Sep 2023Open

In the `swapBack()` function, the emitted event `SwapAndLiquify` includes the argument `tokensForLiquidity`, which is assigned a value of 0 before the event is emitted. ```solidity=1293 tokensForLiquidity = 0; tokensForMarketing = 0; tokensForDev = 0; (success,) = address(devWallet).call{value: ethForDev}(""); if(liquidityTokens > 0 && ethForLiquidity > 0){ addLiquidity(liquidityTokens, ethForLiquidity); emit SwapAndLiquify(amountToSwapForETH, ethForLiquidity, tokensForLiquidity); } ``` This means that the event is being emitted with a `tokensForLiquidity` value of 0, which may be incorrect or misleading. If the intention is to provide information about the number of tokens used for liquidity, it should reflect the actual value rather than being set to 0.

Open the report

Contracts1

AddressChainSource code
0xbe042e9d09cb588331ff911c2b46fd833a3e5bd6Chain: EthereumSource code: Verified source

Pepe Community: questions

Is Pepe Community audited?

Trustblock holds 1 public audit report for Pepe Community, dated 8 Sep 2023. The latest is by CertiK (“Pepe Community - Audit”).

Who audited Pepe Community?

CertiK wrote the report Trustblock holds for Pepe Community.

Are there open findings in Pepe Community’s audits?

14 findings are still open or acknowledged in the firms’ reports: 1 high, 1 medium, 12 low (12 open, 2 acknowledged). 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="pepe-community"
></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