Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
TokenTool.addLiquidity(uint256,uint256) (#804-817) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#809-816)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in TokenTool._transfer(address,address,uint256) (#713-751):
External calls:
- swapAndLiquify(contractTokenBalance) (#735)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#809-816)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#793-799)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#735)
- recipient.transfer(amount) (#677)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#809-816)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#738)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#746)
- finalAmount = takeFee(sender,recipient,amount) (#740-741)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#831)
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.
TokenTool.addLiquidity(uint256,uint256) (#804-817) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#809-816)
Ensure that all the return values of the function calls are used.
Additional information: link
TokenTool.constructor(string,string,uint8,uint256,address,address,address,address,address).owner (#505) shadows:
- Ownable.owner() (#156-158) (function)
TokenTool.allowance(address,address).owner (#568) shadows:
- Ownable.owner() (#156-158) (function)
TokenTool._approve(address,address,uint256).owner (#591) shadows:
- Ownable.owner() (#156-158) (function)
Rename the local variables that shadow another component.
Additional information: link
TokenTool.setBuyTaxes(uint256,uint256,uint256) (#611-617) should emit an event for:
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyTeamFee) (#616)
TokenTool.setSelTaxes(uint256,uint256,uint256) (#619-625) should emit an event for:
- _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellTeamFee) (#624)
TokenTool.setDistributionSettings(uint256,uint256,uint256) (#627-633) should emit an event for:
- _liquidityShare = newLiquidityShare (#628)
- _teamShare = newTeamShare (#630)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_teamShare) (#632)
TokenTool.setMaxTxAmount(uint256) (#635-637) should emit an event for:
- _maxTxAmount = maxTxAmount (#636)
TokenTool.setWalletLimit(uint256) (#647-649) should emit an event for:
- _walletMax = newLimit (#648)
TokenTool.setNumTokensBeforeSwap(uint256) (#651-653) should emit an event for:
- _minimumTokensBeforeSwap = newLimit (#652)
Emit an event for critical parameter changes.
Additional information: link
TokenTool.constructor(string,string,uint8,uint256,address,address,address,address,address).owner (#505) lacks a zero-check on :
- _owner = owner (#519)
TokenTool.constructor(string,string,uint8,uint256,address,address,address,address,address).marketingAddress (#506) lacks a zero-check on :
- marketingWalletAddress = address(marketingAddress) (#524)
TokenTool.constructor(string,string,uint8,uint256,address,address,address,address,address).teamAddress (#507) lacks a zero-check on :
- teamWalletAddress = address(teamAddress) (#525)
TokenTool.constructor(string,string,uint8,uint256,address,address,address,address,address).service (#508) lacks a zero-check on :
- address(service).transfer(msg.value) (#544)
TokenTool.setMarketingWalletAddress(address).newAddress (#655) lacks a zero-check on :
- marketingWalletAddress = address(newAddress) (#656)
TokenTool.setTeamWalletAddress(address).newAddress (#659) lacks a zero-check on :
- teamWalletAddress = address(newAddress) (#660)
Check that the address is not zero.
Additional information: link
Reentrancy in TokenTool.changeRouterVersion(address) (#680-697):
External calls:
- newPairAddress = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#688-689)
State variables written after the call(s):
- isMarketPair[address(uniswapPair)] = true (#696)
- isWalletLimitExempt[address(uniswapPair)] = true (#695)
- uniswapPair = newPairAddress (#692)
- uniswapV2Router = _uniswapV2Router (#693)
Reentrancy in TokenTool.constructor(string,string,uint8,uint256,address,address,address,address,address) (#499-546):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#513-514)
State variables written after the call(s):
- _allowances[address(this)][address(uniswapV2Router)] = _totalSupply (#530)
- _balances[owner] = _totalSupply (#543)
- _decimals = coinDecimals (#518)
- _maxTxAmount = supply * 10 ** _decimals (#521)
- _minimumTokensBeforeSwap = 1 * 10 ** _decimals (#523)
- _name = coinName (#516)
- _owner = owner (#519)
- _symbol = coinSymbol (#517)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_teamShare) (#528)
- _totalSupply = supply * 10 ** _decimals (#520)
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyTeamFee) (#526)
- _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellTeamFee) (#527)
- _walletMax = supply * 10 ** _decimals (#522)
- isExcludedFromFee[owner] = true (#531)
- isExcludedFromFee[address(this)] = true (#532)
- isMarketPair[address(uniswapPair)] = true (#541)
- isTxLimitExempt[owner] = true (#538)
- isTxLimitExempt[address(this)] = true (#539)
- isWalletLimitExempt[owner] = true (#534)
- isWalletLimitExempt[address(uniswapPair)] = true (#535)
- isWalletLimitExempt[address(this)] = true (#536)
- marketingWalletAddress = address(marketingAddress) (#524)
- teamWalletAddress = address(teamAddress) (#525)
- uniswapV2Router = _uniswapV2Router (#529)
Reentrancy in TokenTool.swapAndLiquify(uint256) (#760-782):
External calls:
- swapTokensForEth(tokensForSwap) (#765)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#793-799)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#781)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#809-816)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#775)
- recipient.transfer(amount) (#677)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#778)
- recipient.transfer(amount) (#677)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#781)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#809-816)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#781)
- _allowances[owner][spender] = amount (#595)
Reentrancy in TokenTool.transferFrom(address,address,uint256) (#707-711):
External calls:
- _transfer(sender,recipient,amount) (#708)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#809-816)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#793-799)
External calls sending eth:
- _transfer(sender,recipient,amount) (#708)
- recipient.transfer(amount) (#677)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#809-816)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#709)
- _allowances[owner][spender] = amount (#595)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in TokenTool._transfer(address,address,uint256) (#713-751):
External calls:
- swapAndLiquify(contractTokenBalance) (#735)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#809-816)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#793-799)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#735)
- recipient.transfer(amount) (#677)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#809-816)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#832)
- finalAmount = takeFee(sender,recipient,amount) (#740-741)
- Transfer(sender,recipient,finalAmount) (#748)
Reentrancy in TokenTool.constructor(string,string,uint8,uint256,address,address,address,address,address) (#499-546):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#513-514)
External calls sending eth:
- address(service).transfer(msg.value) (#544)
Event emitted after the call(s):
- Transfer(address(0),owner,_totalSupply) (#545)
Reentrancy in TokenTool.swapAndLiquify(uint256) (#760-782):
External calls:
- swapTokensForEth(tokensForSwap) (#765)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#793-799)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#781)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#809-816)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#775)
- recipient.transfer(amount) (#677)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#778)
- recipient.transfer(amount) (#677)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#781)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#809-816)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#596)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#781)
Reentrancy in TokenTool.swapTokensForEth(uint256) (#784-802):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#793-799)
Event emitted after the call(s):
- SwapTokensForETH(tokenAmount,path) (#801)
Reentrancy in TokenTool.transferFrom(address,address,uint256) (#707-711):
External calls:
- _transfer(sender,recipient,amount) (#708)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#809-816)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#793-799)
External calls sending eth:
- _transfer(sender,recipient,amount) (#708)
- recipient.transfer(amount) (#677)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#809-816)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#596)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#709)
Apply the check-effects-interactions pattern.
Additional information: link
Address.isContract(address) (#94-103) uses assembly
- INLINE ASM (#101)
Address._functionCallWithValue(address,bytes,uint256,string) (#130-147) uses assembly
- INLINE ASM (#139-142)
Do not use evm assembly.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#130-147) is never used and should be removed
Address.functionCall(address,bytes) (#113-115) is never used and should be removed
Address.functionCall(address,bytes,string) (#117-119) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#121-123) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#125-128) is never used and should be removed
Address.isContract(address) (#94-103) is never used and should be removed
Address.sendValue(address,uint256) (#105-111) is never used and should be removed
Context._msgData() (#14-18) is never used and should be removed
SafeMath.mod(uint256,uint256) (#82-84) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#86-89) is never used and should be removed
Remove unused functions.
Additional information: link
Low level call in Address.sendValue(address,uint256) (#105-111):
- (success) = recipient.call{value: amount}() (#109)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#130-147):
- (success,returndata) = target.call{value: weiValue}(data) (#133)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Variable Ownable._owner (#151) is not in mixedCase
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#224) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#226) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#243) is not in mixedCase
Function IUniswapV2Router01.WETH() (#273) is not in mixedCase
Parameter TokenTool.setSwapAndLiquifyEnabled(bool)._enabled (#663) is not in mixedCase
Variable TokenTool._balances (#436) is not in mixedCase
Variable TokenTool._buyLiquidityFee (#444) is not in mixedCase
Variable TokenTool._buyMarketingFee (#445) is not in mixedCase
Variable TokenTool._buyTeamFee (#446) is not in mixedCase
Variable TokenTool._sellLiquidityFee (#448) is not in mixedCase
Variable TokenTool._sellMarketingFee (#449) is not in mixedCase
Variable TokenTool._sellTeamFee (#450) is not in mixedCase
Variable TokenTool._liquidityShare (#452) is not in mixedCase
Variable TokenTool._marketingShare (#453) is not in mixedCase
Variable TokenTool._teamShare (#454) is not in mixedCase
Variable TokenTool._totalDistributionShares (#455) is not in mixedCase
Variable TokenTool._totalTaxIfBuying (#457) is not in mixedCase
Variable TokenTool._totalTaxIfSelling (#458) is not in mixedCase
Variable TokenTool._maxTxAmount (#462) is not in mixedCase
Variable TokenTool._walletMax (#463) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#15)" inContext (#8-19)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in TokenTool._transfer(address,address,uint256) (#713-751):
External calls:
- swapAndLiquify(contractTokenBalance) (#735)
- recipient.transfer(amount) (#677)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#735)
- recipient.transfer(amount) (#677)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#809-816)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#738)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#746)
- finalAmount = takeFee(sender,recipient,amount) (#740-741)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#831)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#832)
- finalAmount = takeFee(sender,recipient,amount) (#740-741)
- Transfer(sender,recipient,finalAmount) (#748)
Reentrancy in TokenTool.constructor(string,string,uint8,uint256,address,address,address,address,address) (#499-546):
External calls:
- address(service).transfer(msg.value) (#544)
Event emitted after the call(s):
- Transfer(address(0),owner,_totalSupply) (#545)
Reentrancy in TokenTool.swapAndLiquify(uint256) (#760-782):
External calls:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#775)
- recipient.transfer(amount) (#677)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#778)
- recipient.transfer(amount) (#677)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#775)
- recipient.transfer(amount) (#677)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#778)
- recipient.transfer(amount) (#677)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#781)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#809-816)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#781)
- _allowances[owner][spender] = amount (#595)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#596)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#781)
Reentrancy in TokenTool.transferFrom(address,address,uint256) (#707-711):
External calls:
- _transfer(sender,recipient,amount) (#708)
- recipient.transfer(amount) (#677)
External calls sending eth:
- _transfer(sender,recipient,amount) (#708)
- recipient.transfer(amount) (#677)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#809-816)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#709)
- _allowances[owner][spender] = amount (#595)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#596)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#709)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#278) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#279)
Prevent variables from having similar names.
Additional information: link
TokenTool.slitherConstructorVariables() (#424-839) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#434)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
waiveOwnership() should be declared external:
- Ownable.waiveOwnership() (#165-168)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#170-174)
getTime() should be declared external:
- Ownable.getTime() (#176-178)
name() should be declared external:
- TokenTool.name() (#548-550)
symbol() should be declared external:
- TokenTool.symbol() (#552-554)
decimals() should be declared external:
- TokenTool.decimals() (#556-558)
totalSupply() should be declared external:
- TokenTool.totalSupply() (#560-562)
allowance(address,address) should be declared external:
- TokenTool.allowance(address,address) (#568-570)
increaseAllowance(address,uint256) should be declared external:
- TokenTool.increaseAllowance(address,uint256) (#572-575)
decreaseAllowance(address,uint256) should be declared external:
- TokenTool.decreaseAllowance(address,uint256) (#577-580)
minimumTokensBeforeSwapAmount() should be declared external:
- TokenTool.minimumTokensBeforeSwapAmount() (#582-584)
approve(address,uint256) should be declared external:
- TokenTool.approve(address,uint256) (#586-589)
setMarketPairStatus(address,bool) should be declared external:
- TokenTool.setMarketPairStatus(address,bool) (#599-601)
setIsExcludedFromFee(address,bool) should be declared external:
- TokenTool.setIsExcludedFromFee(address,bool) (#607-609)
setSwapAndLiquifyEnabled(bool) should be declared external:
- TokenTool.setSwapAndLiquifyEnabled(bool) (#663-666)
setSwapAndLiquifyByLimitOnly(bool) should be declared external:
- TokenTool.setSwapAndLiquifyByLimitOnly(bool) (#668-670)
getCirculatingSupply() should be declared external:
- TokenTool.getCirculatingSupply() (#672-674)
changeRouterVersion(address) should be declared external:
- TokenTool.changeRouterVersion(address) (#680-697)
transfer(address,uint256) should be declared external:
- TokenTool.transfer(address,uint256) (#702-705)
transferFrom(address,address,uint256) should be declared external:
- TokenTool.transferFrom(address,address,uint256) (#707-711)
Use the external attribute for functions never called from the contract.
Additional information: link
Contract has 10% buy tax and 18% sell tax.
Taxes are high (over 10%) but contract ownership is renounced.
Average 30d PancakeSwap liquidity is low.
Average 30d PancakeSwap volume is low.
Average 30d number of PancakeSwap swaps is low.
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 website, listings and other project-related information
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Unable to find Telegram and Twitter accounts