Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
MetaAuditors.addLiquidity(uint256,uint256) (#1212-1225) sends eth to arbitrary user
Dangerous calls:
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1217-1224)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in MetaAuditors._transfer(address,address,uint256) (#884-921):
External calls:
- swap() (#896)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1217-1224)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,recipient,block.timestamp) (#1188-1194)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1166-1172)
External calls sending eth:
- swap() (#896)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1217-1224)
State variables written after the call(s):
- transferAmount = collectFee(sender,amount,rate,recipient == pair,sender != pair && recipient != pair) (#905)
- _reflectionBalance[tokenPool] = _reflectionBalance[tokenPool].add(taxFee.mul(rate)) (#936)
- _reflectionBalance[address(this)] = _reflectionBalance[address(this)].add(liqFee.mul(rate)) (#948)
- _reflectionBalance[marketWallet] = _reflectionBalance[marketWallet].add(marketFee.mul(rate)) (#960)
- _reflectionBalance[auditWallet] = _reflectionBalance[auditWallet].add(auditFee.mul(rate)) (#972)
- _reflectionBalance[sender] = _reflectionBalance[sender].sub(amount.mul(rate)) (#909)
- _reflectionBalance[recipient] = _reflectionBalance[recipient].add(transferAmount.mul(rate)) (#910)
- transferAmount = collectFee(sender,amount,rate,recipient == pair,sender != pair && recipient != pair) (#905)
- _tokenBalance[tokenPool] = _tokenBalance[tokenPool].add(taxFee) (#938)
- _tokenBalance[address(this)] = _tokenBalance[address(this)].add(liqFee) (#950)
- _tokenBalance[marketWallet] = _tokenBalance[marketWallet].add(marketFee) (#962)
- _tokenBalance[auditWallet] = _tokenBalance[auditWallet].add(auditFee) (#974)
- _tokenBalance[sender] = _tokenBalance[sender].sub(amount) (#914)
- _tokenBalance[recipient] = _tokenBalance[recipient].add(transferAmount) (#917)
Apply the check-effects-interactions pattern.
Additional information: link
Contract locking ether found:
Contract Wallet (#650-652) has payable functions:
- Wallet.receive() (#651)
But does not have a function to withdraw the ether
Remove the payable attribute or add a withdraw function.
Additional information: link
MetaAuditors.claimReward(bool) (#1001-1026) contains a tautology or contradiction:
- require(bool,string)(balanceOf(msg.sender) >= 0,Error: Must be a holder to claim rewards!) (#1003)
Fix the incorrect comparison by changing the value type or the comparison.
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.
MetaAuditors.collectFee(address,uint256,uint256,bool,bool) (#923-981) performs a multiplication on the result of a division:
-_reflectionBalance[auditWallet] = _reflectionBalance[auditWallet].add(auditFee.mul(rate)) (#972)
-auditFee = amount.mul(_auditFee[0]).div(10 ** (_feeDecimal + 2)) (#969)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in MetaAuditors.swap() (#1078-1127):
External calls:
- swapedEth = swapTokensForEth(cakeBankBalance,auditWallet) (#1107)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,recipient,block.timestamp) (#1188-1194)
State variables written after the call(s):
- _reflectionBalance[marketWallet] = _reflectionBalance[marketWallet].sub(marketWalletBalance.mul(rate)) (#1111-1113)
- _reflectionBalance[address(this)] = _reflectionBalance[address(this)].add(marketWalletBalance.mul(rate)) (#1114-1116)
- _tokenBalance[address(this)] = _tokenBalance[address(this)].add(marketWalletBalance) (#1118)
- _tokenBalance[marketWallet] = _tokenBalance[marketWallet].sub(marketWalletBalance) (#1121)
Apply the check-effects-interactions pattern.
Additional information: link
MetaAuditors.addLiquidity(uint256,uint256) (#1212-1225) ignores return value by router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1217-1224)
Ensure that all the return values of the function calls are used.
Additional information: link
MetaAuditors.claimReward(bool).swap (#1001) shadows:
- MetaAuditors.swap() (#1078-1127) (function)
Rename the local variables that shadow another component.
Additional information: link
MetaAuditors.setRewardCycleInterval(uint256) (#1286-1288) should emit an event for:
- rewardCycleInterval = interval (#1287)
Emit an event for critical parameter changes.
Additional information: link
MetaAuditors.setAuditWallet(address).bank (#1274) lacks a zero-check on :
- auditWallet = bank (#1275)
Check that the address is not zero.
Additional information: link
Reentrancy in MetaAuditors.transferFrom(address,address,uint256) (#805-818):
External calls:
- _transfer(sender,recipient,amount) (#810)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1217-1224)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,recipient,block.timestamp) (#1188-1194)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1166-1172)
External calls sending eth:
- _transfer(sender,recipient,amount) (#810)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1217-1224)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#812-816)
- _allowances[owner][spender] = amount (#880)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in MetaAuditors.transferFrom(address,address,uint256) (#805-818):
External calls:
- _transfer(sender,recipient,amount) (#810)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1217-1224)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,recipient,block.timestamp) (#1188-1194)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1166-1172)
External calls sending eth:
- _transfer(sender,recipient,amount) (#810)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1217-1224)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#881)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#812-816)
Apply the check-effects-interactions pattern.
Additional information: link
MetaAuditors.claimReward(bool) (#1001-1026) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(nextAvailableClaimDate[msg.sender] <= block.timestamp,Error: Reward Claim unavailable!) (#1002)
Avoid relying on block.timestamp.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#402-428) uses assembly
- INLINE ASM (#420-423)
Do not use evm assembly.
Additional information: link
TransferHelper.safeTransferFrom(address,address,address,uint256) (#630-642) is never used and should be removed
Remove unused functions.
Additional information: link
MetaAuditors.maxTxAmount (#696) is set pre-construction with a non-constant function or state variable:
- _tokenTotal.mul(5).div(1000)
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
Pragma version^0.6.0 (#601) allows old versions
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 TransferHelper.safeTransferETH(address,uint256) (#644-647):
- (success) = to.call{value: value}(new bytes(0)) (#645)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Variable MetaAuditors._auditFeeTotal (#690) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#21)" inContext (#15-24)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#511) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#512)
Prevent variables from having similar names.
Additional information: link
MetaAuditors.calculateReward(address) (#983-999) uses literals with too many digits:
- _totalSupply = totalSupply().sub(balanceOf(marketWallet)).sub(balanceOf(auditWallet)).sub(balanceOf(tokenPool)).sub(balanceOf(address(0))).sub(balanceOf(0x000000000000000000000000000000000000dEaD)).sub(balanceOf(address(pair))) (#984-990)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
MetaAuditors.threshHoldTopUpRate (#676) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
claimReward(bool) should be declared external:
- MetaAuditors.claimReward(bool) (#1001-1026)
Use the external attribute for functions never called from the contract.
Additional information: link
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Number of Binance Smart Chain (BSC) token holders is low.
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
Token is marked as scam (rug pull, honeypot, phishing, etc.)
Additional information: link
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