Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
TokenTool.addLiquidity(uint256,uint256) (#819-832) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#824-831)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in TokenTool._transfer(address,address,uint256) (#728-766):
External calls:
- swapAndLiquify(contractTokenBalance) (#750)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#824-831)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#808-814)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#750)
- recipient.transfer(amount) (#692)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#824-831)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#753)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#761)
- finalAmount = takeFee(sender,recipient,amount) (#755-756)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#846)
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) (#819-832) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#824-831)
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 (#520) shadows:
- Ownable.owner() (#158-160) (function)
TokenTool.allowance(address,address).owner (#583) shadows:
- Ownable.owner() (#158-160) (function)
TokenTool._approve(address,address,uint256).owner (#606) shadows:
- Ownable.owner() (#158-160) (function)
Rename the local variables that shadow another component.
Additional information: link
TokenTool.setBuyTaxes(uint256,uint256,uint256) (#626-632) should emit an event for:
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyTeamFee) (#631)
TokenTool.setSelTaxes(uint256,uint256,uint256) (#634-640) should emit an event for:
- _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellTeamFee) (#639)
TokenTool.setDistributionSettings(uint256,uint256,uint256) (#642-648) should emit an event for:
- _liquidityShare = newLiquidityShare (#643)
- _teamShare = newTeamShare (#645)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_teamShare) (#647)
TokenTool.setMaxTxAmount(uint256) (#650-652) should emit an event for:
- _maxTxAmount = maxTxAmount (#651)
TokenTool.setWalletLimit(uint256) (#662-664) should emit an event for:
- _walletMax = newLimit (#663)
TokenTool.setNumTokensBeforeSwap(uint256) (#666-668) should emit an event for:
- _minimumTokensBeforeSwap = newLimit (#667)
Emit an event for critical parameter changes.
Additional information: link
TokenTool.constructor(string,string,uint8,uint256,address,address,address,address,address).owner (#520) lacks a zero-check on :
- _owner = owner (#534)
TokenTool.constructor(string,string,uint8,uint256,address,address,address,address,address).marketingAddress (#521) lacks a zero-check on :
- marketingWalletAddress = address(marketingAddress) (#539)
TokenTool.constructor(string,string,uint8,uint256,address,address,address,address,address).teamAddress (#522) lacks a zero-check on :
- teamWalletAddress = address(teamAddress) (#540)
TokenTool.constructor(string,string,uint8,uint256,address,address,address,address,address).service (#523) lacks a zero-check on :
- address(service).transfer(msg.value) (#559)
TokenTool.setMarketingWalletAddress(address).newAddress (#670) lacks a zero-check on :
- marketingWalletAddress = address(newAddress) (#671)
TokenTool.setTeamWalletAddress(address).newAddress (#674) lacks a zero-check on :
- teamWalletAddress = address(newAddress) (#675)
Check that the address is not zero.
Additional information: link
Reentrancy in TokenTool.changeRouterVersion(address) (#695-712):
External calls:
- newPairAddress = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#703-704)
State variables written after the call(s):
- isMarketPair[address(uniswapPair)] = true (#711)
- isWalletLimitExempt[address(uniswapPair)] = true (#710)
- uniswapPair = newPairAddress (#707)
- uniswapV2Router = _uniswapV2Router (#708)
Reentrancy in TokenTool.constructor(string,string,uint8,uint256,address,address,address,address,address) (#514-561):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#528-529)
State variables written after the call(s):
- _allowances[address(this)][address(uniswapV2Router)] = _totalSupply (#545)
- _balances[owner] = _totalSupply (#558)
- _decimals = coinDecimals (#533)
- _maxTxAmount = supply * 10 ** _decimals (#536)
- _minimumTokensBeforeSwap = 1 * 10 ** _decimals (#538)
- _name = coinName (#531)
- _owner = owner (#534)
- _symbol = coinSymbol (#532)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_teamShare) (#543)
- _totalSupply = supply * 10 ** _decimals (#535)
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyTeamFee) (#541)
- _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellTeamFee) (#542)
- _walletMax = supply * 10 ** _decimals (#537)
- isExcludedFromFee[owner] = true (#546)
- isExcludedFromFee[address(this)] = true (#547)
- isMarketPair[address(uniswapPair)] = true (#556)
- isTxLimitExempt[owner] = true (#553)
- isTxLimitExempt[address(this)] = true (#554)
- isWalletLimitExempt[owner] = true (#549)
- isWalletLimitExempt[address(uniswapPair)] = true (#550)
- isWalletLimitExempt[address(this)] = true (#551)
- marketingWalletAddress = address(marketingAddress) (#539)
- teamWalletAddress = address(teamAddress) (#540)
- uniswapV2Router = _uniswapV2Router (#544)
Reentrancy in TokenTool.swapAndLiquify(uint256) (#775-797):
External calls:
- swapTokensForEth(tokensForSwap) (#780)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#808-814)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#796)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#824-831)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#790)
- recipient.transfer(amount) (#692)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#793)
- recipient.transfer(amount) (#692)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#796)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#824-831)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#796)
- _allowances[owner][spender] = amount (#610)
Reentrancy in TokenTool.transferFrom(address,address,uint256) (#722-726):
External calls:
- _transfer(sender,recipient,amount) (#723)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#824-831)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#808-814)
External calls sending eth:
- _transfer(sender,recipient,amount) (#723)
- recipient.transfer(amount) (#692)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#824-831)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#724)
- _allowances[owner][spender] = amount (#610)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in TokenTool._transfer(address,address,uint256) (#728-766):
External calls:
- swapAndLiquify(contractTokenBalance) (#750)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#824-831)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#808-814)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#750)
- recipient.transfer(amount) (#692)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#824-831)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#847)
- finalAmount = takeFee(sender,recipient,amount) (#755-756)
- Transfer(sender,recipient,finalAmount) (#763)
Reentrancy in TokenTool.constructor(string,string,uint8,uint256,address,address,address,address,address) (#514-561):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#528-529)
External calls sending eth:
- address(service).transfer(msg.value) (#559)
Event emitted after the call(s):
- Transfer(address(0),owner,_totalSupply) (#560)
Reentrancy in TokenTool.swapAndLiquify(uint256) (#775-797):
External calls:
- swapTokensForEth(tokensForSwap) (#780)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#808-814)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#796)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#824-831)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#790)
- recipient.transfer(amount) (#692)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#793)
- recipient.transfer(amount) (#692)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#796)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#824-831)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#611)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#796)
Reentrancy in TokenTool.swapTokensForEth(uint256) (#799-817):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#808-814)
Event emitted after the call(s):
- SwapTokensForETH(tokenAmount,path) (#816)
Reentrancy in TokenTool.transferFrom(address,address,uint256) (#722-726):
External calls:
- _transfer(sender,recipient,amount) (#723)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#824-831)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#808-814)
External calls sending eth:
- _transfer(sender,recipient,amount) (#723)
- recipient.transfer(amount) (#692)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#824-831)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#611)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#724)
Apply the check-effects-interactions pattern.
Additional information: link
Ownable.unlock() (#189-194) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp > _lockTime,Contract is locked until 7 days) (#191)
Avoid relying on block.timestamp.
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() (#239) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#241) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#258) is not in mixedCase
Function IUniswapV2Router01.WETH() (#288) is not in mixedCase
Parameter TokenTool.setSwapAndLiquifyEnabled(bool)._enabled (#678) is not in mixedCase
Variable TokenTool._balances (#451) is not in mixedCase
Variable TokenTool._buyLiquidityFee (#459) is not in mixedCase
Variable TokenTool._buyMarketingFee (#460) is not in mixedCase
Variable TokenTool._buyTeamFee (#461) is not in mixedCase
Variable TokenTool._sellLiquidityFee (#463) is not in mixedCase
Variable TokenTool._sellMarketingFee (#464) is not in mixedCase
Variable TokenTool._sellTeamFee (#465) is not in mixedCase
Variable TokenTool._liquidityShare (#467) is not in mixedCase
Variable TokenTool._marketingShare (#468) is not in mixedCase
Variable TokenTool._teamShare (#469) is not in mixedCase
Variable TokenTool._totalDistributionShares (#470) is not in mixedCase
Variable TokenTool._totalTaxIfBuying (#472) is not in mixedCase
Variable TokenTool._totalTaxIfSelling (#473) is not in mixedCase
Variable TokenTool._maxTxAmount (#477) is not in mixedCase
Variable TokenTool._walletMax (#478) 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) (#728-766):
External calls:
- swapAndLiquify(contractTokenBalance) (#750)
- recipient.transfer(amount) (#692)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#750)
- recipient.transfer(amount) (#692)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#824-831)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#753)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#761)
- finalAmount = takeFee(sender,recipient,amount) (#755-756)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#846)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#847)
- finalAmount = takeFee(sender,recipient,amount) (#755-756)
- Transfer(sender,recipient,finalAmount) (#763)
Reentrancy in TokenTool.constructor(string,string,uint8,uint256,address,address,address,address,address) (#514-561):
External calls:
- address(service).transfer(msg.value) (#559)
Event emitted after the call(s):
- Transfer(address(0),owner,_totalSupply) (#560)
Reentrancy in TokenTool.swapAndLiquify(uint256) (#775-797):
External calls:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#790)
- recipient.transfer(amount) (#692)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#793)
- recipient.transfer(amount) (#692)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#790)
- recipient.transfer(amount) (#692)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#793)
- recipient.transfer(amount) (#692)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#796)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#824-831)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#796)
- _allowances[owner][spender] = amount (#610)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#611)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#796)
Reentrancy in TokenTool.transferFrom(address,address,uint256) (#722-726):
External calls:
- _transfer(sender,recipient,amount) (#723)
- recipient.transfer(amount) (#692)
External calls sending eth:
- _transfer(sender,recipient,amount) (#723)
- recipient.transfer(amount) (#692)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#824-831)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#724)
- _allowances[owner][spender] = amount (#610)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#611)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#724)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#293) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#294)
Prevent variables from having similar names.
Additional information: link
TokenTool.slitherConstructorVariables() (#439-854) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#449)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
waiveOwnership() should be declared external:
- Ownable.waiveOwnership() (#167-170)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#172-176)
getTime() should be declared external:
- Ownable.getTime() (#178-180)
lock(uint256) should be declared external:
- Ownable.lock(uint256) (#182-187)
unlock() should be declared external:
- Ownable.unlock() (#189-194)
name() should be declared external:
- TokenTool.name() (#563-565)
symbol() should be declared external:
- TokenTool.symbol() (#567-569)
decimals() should be declared external:
- TokenTool.decimals() (#571-573)
totalSupply() should be declared external:
- TokenTool.totalSupply() (#575-577)
allowance(address,address) should be declared external:
- TokenTool.allowance(address,address) (#583-585)
increaseAllowance(address,uint256) should be declared external:
- TokenTool.increaseAllowance(address,uint256) (#587-590)
decreaseAllowance(address,uint256) should be declared external:
- TokenTool.decreaseAllowance(address,uint256) (#592-595)
minimumTokensBeforeSwapAmount() should be declared external:
- TokenTool.minimumTokensBeforeSwapAmount() (#597-599)
approve(address,uint256) should be declared external:
- TokenTool.approve(address,uint256) (#601-604)
setMarketPairStatus(address,bool) should be declared external:
- TokenTool.setMarketPairStatus(address,bool) (#614-616)
setIsExcludedFromFee(address,bool) should be declared external:
- TokenTool.setIsExcludedFromFee(address,bool) (#622-624)
setSwapAndLiquifyEnabled(bool) should be declared external:
- TokenTool.setSwapAndLiquifyEnabled(bool) (#678-681)
setSwapAndLiquifyByLimitOnly(bool) should be declared external:
- TokenTool.setSwapAndLiquifyByLimitOnly(bool) (#683-685)
getCirculatingSupply() should be declared external:
- TokenTool.getCirculatingSupply() (#687-689)
changeRouterVersion(address) should be declared external:
- TokenTool.changeRouterVersion(address) (#695-712)
transfer(address,uint256) should be declared external:
- TokenTool.transfer(address,uint256) (#717-720)
transferFrom(address,address,uint256) should be declared external:
- TokenTool.transferFrom(address,address,uint256) (#722-726)
Use the external attribute for functions never called from the contract.
Additional information: link
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