Suzume - Audit

CertiK1 address on Ethereum

CertiK reviewed Suzume (Suzume - Audit) on 20 Jan 2023: 11 findings, 0 critical; 4 marked fixed, 7 open.

No open critical findings
Open the reportOpen Suzume’s security record

Report hosted on skynet.certik.com.

Trustblock does not review code.

Findings11

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

SeverityOpenAcknowledgedFixed
Critical000
High001
Medium001
Low702
LowFunction Visibility OptimizationOpen

The following functions are declared as `public` and are not invoked in any of the contracts contained within the project's scope. The functions that are never called internally within the contract should have external visibility. - `approveMax()` - `isExcludedFromReward()` - `isExcludedFromFee()` - `setSwapAndLiquifyEnabled()` - `totalFees()` - `enableTrading()`

LowMissing Allowance ResetOpen

When updating `dexRouter` via function `setNewRouter()`, the new router is approved the maximum allowance from the `Suzume` contract. But the allowance for the old `dexRouter` is still greater than 0.

LowRecommended Compiler VersionOpen

Contract `Suzume` is not using SafeMath, and it allows for compiler version between 0.6.0 and 0.9.0. If the contract is compiled with compiler version earlier than 0.8.0, then SafeMath would be needed to prevent overflow and underflow of arithmetic operation.

LowRedundant Condition ChecksOpen

Some of the *if* and *require* statements are not unnecessary, as the condition check always returns the same value. - Since the startingSupply is hardcoded to 10^12, the condition check on line 365 will always pass. ```solidity=364 startingSupply = 1_000_000_000_000; if (startingSupply < 10000000000000) { _decimals = 18; _decimalsMul = _decimals; } else { _decimals = 9; _decimalsMul = _decimals; } ``` - In function `setTaxesBuy()`, `setTaxesSell()` and `setTaxesTransfer()`, the require statement `require(reflect + liquidity + marketing <= 4900);` will always pass, since the upper limits of the three values add up to 4200. - The *else if* statement on line 613 is not necessary, and can be replaced by a single *else*. ```solidity=605 function setExcludedFromReward(address account, bool enabled) public onlyOwner { if (enabled == true) { require(!_isExcluded[account], "Account is already excluded."); if(_rOwned[account] > 0) { _tOwned[account] = tokenFromReflection(_rOwned[account]); } _isExcluded[account] = true; _excluded.push(account); } else if (enabled == false) { ... ``` - State variable `sameBlockActive` is set to true and cannot be changed. The *if* statement on line 663 will always be true. ```solidity=663 if (sameBlockActive) { if (lpPairs[from]){ require(lastTrade[to] != block.number); lastTrade[to] = block.number; } else { require(lastTrade[from] != block.number); lastTrade[from] = block.number; } } ``` - Condition check on line 729 is unnecessary, as `contractTokenBalance - toLiquify` will always be larger than 0. - The !_hasLiqBeenAdded check on line 778 is redundant. ```solidity=776 if (!_hasLiqBeenAdded) { _checkLiquidityAdd(from, to); if (!_hasLiqBeenAdded && _hasLimits(from, to)) { revert("Only owner can transfer at this time."); } } ```

LowRedundant StatementsOpen

The linked statements do not affect the functionality of the codebase and appear to be either leftovers from test code or older functionality. 1. Library Address is never used. 2. State variable `_liqAddBlock` on line 302 is never used. 3. State variable `_liqAddStamp` on line 303 will be updated, but its value is never used. As a private variable, it cannot be viewed either. 4. State variable `Planted` on line 316 will be updated in function `intializeContract()`, but its value is never used. As a private variable, it cannot be viewed either. 5. Function `getOwner()` on line 453 serves the same purpose of public function `owner()` on line 416. 6. Line 378 updates the allowance of this contract to `dexRouter` address, while line 387 already makes the same approval. 7. When transferring owner, line 430 approves the new owner with the old owner's balance, while this balance will be directly transferred to the new owner as per line 432.

LowThird Party DependenciesOpen

The contract is serving as the underlying entity to interact with third party UniSwap protocols. The scope of the audit would treat those 3rd party entities as black boxes and assume their functional correctness. However in the real world, 3rd parties may be compromised that led to assets lost or stolen.

LowVariables That Could Be Declared as `constant`Open

The linked variables could be declared as `constant` since these state variables are never modified. ```solidity=256 uint256 private maxReflectFee = 1000; uint256 private maxLiquidityFee = 1000; uint256 private maxMarketingFee = 2200; ``` ```solidity=263 uint256 private masterTaxDivisor = 10000; ``` ```solidity=282 address public DEAD = 0x000000000000000000000000000000000000dEaD; address public ZERO = 0x0000000000000000000000000000000000000000; ``` ```solidity=304 bool private sameBlockActive = true; ```

Contracts in scope1

AddressChainSource code
0x0b452278223d3954f4ac050949d7998e373e7e43Chain: EthereumSource code: Verified source

Part of Suzume’s security record

Suzume
Audits1 audit by 1 firmLast audit Jan 2023, by CertiK.
Critical findingsNo open critical findingsIn 1 report.
Open Suzume’s security record

Security firm

CertiK

1,045 projects reviewed · 1,376 reports · latest May 2025

See CertiK’s audits

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