Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
METABOY.swapBack() (#324-365) sends eth to arbitrary user
Dangerous calls:
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#349)
- (charitySuccess) = address(charityFeeReceiver).call{gas: 30000,value: amountBNBcharity}() (#351)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in METABOY._transferFrom(address,address,uint256) (#265-285):
External calls:
- swapBack() (#274)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#335-341)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#349)
- (charitySuccess) = address(charityFeeReceiver).call{gas: 30000,value: amountBNBcharity}() (#351)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#355-362)
External calls sending eth:
- swapBack() (#274)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#349)
- (charitySuccess) = address(charityFeeReceiver).call{gas: 30000,value: amountBNBcharity}() (#351)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#355-362)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#278)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#281)
- amountReceived = takeFee(sender,recipient,amount) (#280)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#311)
Apply the check-effects-interactions pattern.
Additional information: link
Combination 1: Reentrancy vulnerabilities + Functions that send Ether to arbitraty destination. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
METABOY.slitherConstructorVariables() (#180-449) performs a multiplication on the result of a division:
-swapThreshold = _totalSupply / 1000 * 3 (#216)
Consider ordering multiplication before division.
Additional information: link
METABOY.swapBack() (#324-365) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#355-362)
Ensure that all the return values of the function calls are used.
Additional information: link
METABOY.setFees(uint256,uint256,uint256,uint256) (#406-412) should emit an event for:
- liquidityFee = _liquidityFee (#407)
- charityFee = _charityFee (#408)
- marketingFee = _marketingFee (#409)
- totalFee = _liquidityFee.add(_charityFee).add(_marketingFee) (#410)
- feeDenominator = _feeDenominator (#411)
Emit an event for critical parameter changes.
Additional information: link
METABOY.setFeeReceiver(address,address)._charityFeeReceiver (#414) lacks a zero-check on :
- charityFeeReceiver = _charityFeeReceiver (#416)
Check that the address is not zero.
Additional information: link
Reentrancy in METABOY.constructor() (#220-231):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#222)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = type()(uint256).max (#223)
- _balances[_owner] = _totalSupply (#229)
- isFeeExempt[_owner] = true (#226)
- isTxLimitExempt[_owner] = true (#227)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in METABOY.swapBack() (#324-365):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#335-341)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#349)
- (charitySuccess) = address(charityFeeReceiver).call{gas: 30000,value: amountBNBcharity}() (#351)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#355-362)
External calls sending eth:
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#349)
- (charitySuccess) = address(charityFeeReceiver).call{gas: 30000,value: amountBNBcharity}() (#351)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#355-362)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#363)
Apply the check-effects-interactions pattern.
Additional information: link
METABOY.buyTokens(uint256,address) (#367-378) is never used and should be removed
Remove unused functions.
Additional information: link
METABOY.swapThreshold (#216) is set pre-construction with a non-constant function or state variable:
- _totalSupply / 1000 * 3
Remove any initialization of state variables via non-constant state variables or function calls. If variables must be set upon contract deployment, locate initialization in the constructor instead.
Additional information: link
solc-0.8.5 is not recommended for deployment
Deploy with any of the following Solidity versions: 0.5.16 - 0.5.17, 0.6.11 - 0.6.12, 0.7.5 - 0.7.6 Use a simple pragma version that allows any of these versions. Consider using the latest version of Solidity for testing.
Additional information: link
Low level call in METABOY.swapBack() (#324-365):
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#349)
- (charitySuccess) = address(charityFeeReceiver).call{gas: 30000,value: amountBNBcharity}() (#351)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Variable METABOY._allowances (#196) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#139) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#140)
Prevent variables from having similar names.
Additional information: link
METABOY.slitherConstructorVariables() (#180-449) uses literals with too many digits:
- _totalSupply = 1000000000 * (10 ** _decimals) (#191)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
METABOY._totalSupply (#191) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
isOverLiquified(uint256,uint256) should be declared external:
- METABOY.isOverLiquified(uint256,uint256) (#443-445)
Use the external attribute for functions never called from the contract.
Additional information: link
Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive. Ignore for presale.
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Token is deployed only at one blockchain
Token has only one trading pair
Unable to find PancakeSwap trading pair to compute liquidity.
Unable to find PancakeSwap trading pair to compute volume.
Unable to find PancakeSwap trading pair to compute number of swaps.
Unable to find website, listings and other project-related information
Young tokens have high risks of price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Unable to find Telegram and Twitter accounts