WHM.addLiquidity(uint256,uint256) (#725-738) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#730-737)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in WHM._transfer(address,address,uint256) (#630-672):
External calls:
- swapAndLiquify(contractTokenBalance) (#659)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#730-737)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#714-720)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#659)
- recipient.transfer(amount) (#605)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#730-737)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#662)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#667)
- finalAmount = takeFee(sender,recipient,amount) (#664-665)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#752)
Apply the check-effects-interactions pattern.
Additional information: link
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
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.
Contract ownership is not renounced (belongs to a wallet)
WHM.addLiquidity(uint256,uint256) (#725-738) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#730-737)
Ensure that all the return values of the function calls are used.
Additional information: link
WHM.constructor(string,string,uint8,uint256,address,address,address,address).owner (#502) shadows:
- Ownable.owner() (#156-158) (function)
WHM.allowance(address,address).owner (#551) shadows:
- Ownable.owner() (#156-158) (function)
WHM._approve(address,address,uint256).owner (#574) shadows:
- Ownable.owner() (#156-158) (function)
Rename the local variables that shadow another component.
Additional information: link
WHM.setNumTokensBeforeSwap(uint256) (#587-589) should emit an event for:
- _minimumTokensBeforeSwap = newLimit (#588)
Emit an event for critical parameter changes.
Additional information: link
WHM.constructor(string,string,uint8,uint256,address,address,address,address).owner (#502) lacks a zero-check on :
- _owner = owner (#515)
WHM.constructor(string,string,uint8,uint256,address,address,address,address).marketingAddress (#503) lacks a zero-check on :
- marketingWalletAddress = address(marketingAddress) (#518)
WHM.constructor(string,string,uint8,uint256,address,address,address,address).teamAddress (#504) lacks a zero-check on :
- teamWalletAddress = address(teamAddress) (#519)
Check that the address is not zero.
Additional information: link
Reentrancy in WHM.constructor(string,string,uint8,uint256,address,address,address,address) (#496-529):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#509-510)
State variables written after the call(s):
- _allowances[address(this)][address(uniswapV2Router)] = _totalSupply (#521)
- _balances[owner] = _totalSupply (#527)
- _decimals = coinDecimals (#514)
- _minimumTokensBeforeSwap = 1 * 10 ** _decimals (#517)
- _name = coinName (#512)
- _owner = owner (#515)
- _symbol = coinSymbol (#513)
- _totalSupply = supply * 10 ** _decimals (#516)
- isExcludedFromFee[owner] = true (#522)
- isExcludedFromFee[address(this)] = true (#523)
- isMarketPair[address(uniswapPair)] = true (#525)
- marketingWalletAddress = address(marketingAddress) (#518)
- teamWalletAddress = address(teamAddress) (#519)
- uniswapV2Router = _uniswapV2Router (#520)
Reentrancy in WHM.swapAndLiquify(uint256) (#681-703):
External calls:
- swapTokensForEth(tokensForSwap) (#686)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#714-720)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#702)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#730-737)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#696)
- recipient.transfer(amount) (#605)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#699)
- recipient.transfer(amount) (#605)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#702)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#730-737)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#702)
- _allowances[owner][spender] = amount (#578)
Reentrancy in WHM.transferFrom(address,address,uint256) (#616-620):
External calls:
- _transfer(sender,recipient,amount) (#617)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#730-737)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#714-720)
External calls sending eth:
- _transfer(sender,recipient,amount) (#617)
- recipient.transfer(amount) (#605)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#730-737)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#618)
- _allowances[owner][spender] = amount (#578)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in WHM._transfer(address,address,uint256) (#630-672):
External calls:
- swapAndLiquify(contractTokenBalance) (#659)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#730-737)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#714-720)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#659)
- recipient.transfer(amount) (#605)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#730-737)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#753)
- finalAmount = takeFee(sender,recipient,amount) (#664-665)
- Transfer(sender,recipient,finalAmount) (#669)
Reentrancy in WHM.constructor(string,string,uint8,uint256,address,address,address,address) (#496-529):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#509-510)
Event emitted after the call(s):
- Transfer(address(0),owner,_totalSupply) (#528)
Reentrancy in WHM.swapAndLiquify(uint256) (#681-703):
External calls:
- swapTokensForEth(tokensForSwap) (#686)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#714-720)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#702)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#730-737)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#696)
- recipient.transfer(amount) (#605)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#699)
- recipient.transfer(amount) (#605)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#702)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#730-737)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#579)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#702)
Reentrancy in WHM.swapTokensForEth(uint256) (#705-723):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#714-720)
Event emitted after the call(s):
- SwapTokensForETH(tokenAmount,path) (#722)
Reentrancy in WHM.transferFrom(address,address,uint256) (#616-620):
External calls:
- _transfer(sender,recipient,amount) (#617)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#730-737)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#714-720)
External calls sending eth:
- _transfer(sender,recipient,amount) (#617)
- recipient.transfer(amount) (#605)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#730-737)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#579)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#618)
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 WHM.setSwapAndLiquifyEnabled(bool)._enabled (#591) is not in mixedCase
Variable WHM._balances (#436) is not in mixedCase
Variable WHM._buyLiquidityFee (#442) is not in mixedCase
Variable WHM._buyMarketingFee (#443) is not in mixedCase
Variable WHM._buyTeamFee (#444) is not in mixedCase
Variable WHM._sellLiquidityFee (#446) is not in mixedCase
Variable WHM._sellMarketingFee (#447) is not in mixedCase
Variable WHM._sellTeamFee (#448) is not in mixedCase
Variable WHM._liquidityShare (#450) is not in mixedCase
Variable WHM._marketingShare (#451) is not in mixedCase
Variable WHM._teamShare (#452) is not in mixedCase
Variable WHM._totalDistributionShares (#453) is not in mixedCase
Variable WHM._totalTaxIfBuying (#455) is not in mixedCase
Variable WHM._totalTaxIfSelling (#456) is not in mixedCase
Variable WHM._isBlacklisted (#458) 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 WHM._transfer(address,address,uint256) (#630-672):
External calls:
- swapAndLiquify(contractTokenBalance) (#659)
- recipient.transfer(amount) (#605)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#659)
- recipient.transfer(amount) (#605)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#730-737)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#662)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#667)
- finalAmount = takeFee(sender,recipient,amount) (#664-665)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#752)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#753)
- finalAmount = takeFee(sender,recipient,amount) (#664-665)
- Transfer(sender,recipient,finalAmount) (#669)
Reentrancy in WHM.swapAndLiquify(uint256) (#681-703):
External calls:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#696)
- recipient.transfer(amount) (#605)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#699)
- recipient.transfer(amount) (#605)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#696)
- recipient.transfer(amount) (#605)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#699)
- recipient.transfer(amount) (#605)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#702)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#730-737)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#702)
- _allowances[owner][spender] = amount (#578)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#579)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#702)
Reentrancy in WHM.transferFrom(address,address,uint256) (#616-620):
External calls:
- _transfer(sender,recipient,amount) (#617)
- recipient.transfer(amount) (#605)
External calls sending eth:
- _transfer(sender,recipient,amount) (#617)
- recipient.transfer(amount) (#605)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#730-737)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#618)
- _allowances[owner][spender] = amount (#578)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#579)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#618)
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
WHM.slitherConstructorVariables() (#424-760) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#434)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
WHM._buyLiquidityFee (#442) should be constant
WHM._buyMarketingFee (#443) should be constant
WHM._buyTeamFee (#444) should be constant
WHM._liquidityShare (#450) should be constant
WHM._marketingShare (#451) should be constant
WHM._sellLiquidityFee (#446) should be constant
WHM._sellMarketingFee (#447) should be constant
WHM._sellTeamFee (#448) should be constant
WHM._teamShare (#452) should be constant
WHM._totalDistributionShares (#453) should be constant
WHM._totalTaxIfBuying (#455) should be constant
WHM._totalTaxIfSelling (#456) should be constant
WHM.launchedAt (#463) should be constant
Add the constant attributes to state variables that never change.
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:
- WHM.name() (#531-533)
symbol() should be declared external:
- WHM.symbol() (#535-537)
decimals() should be declared external:
- WHM.decimals() (#539-541)
totalSupply() should be declared external:
- WHM.totalSupply() (#543-545)
allowance(address,address) should be declared external:
- WHM.allowance(address,address) (#551-553)
increaseAllowance(address,uint256) should be declared external:
- WHM.increaseAllowance(address,uint256) (#555-558)
decreaseAllowance(address,uint256) should be declared external:
- WHM.decreaseAllowance(address,uint256) (#560-563)
minimumTokensBeforeSwapAmount() should be declared external:
- WHM.minimumTokensBeforeSwapAmount() (#565-567)
approve(address,uint256) should be declared external:
- WHM.approve(address,uint256) (#569-572)
setIsExcludedFromFee(address,bool) should be declared external:
- WHM.setIsExcludedFromFee(address,bool) (#582-584)
setSwapAndLiquifyEnabled(bool) should be declared external:
- WHM.setSwapAndLiquifyEnabled(bool) (#591-594)
setSwapAndLiquifyByLimitOnly(bool) should be declared external:
- WHM.setSwapAndLiquifyByLimitOnly(bool) (#596-598)
getCirculatingSupply() should be declared external:
- WHM.getCirculatingSupply() (#600-602)
transfer(address,uint256) should be declared external:
- WHM.transfer(address,uint256) (#611-614)
transferFrom(address,address,uint256) should be declared external:
- WHM.transferFrom(address,address,uint256) (#616-620)
multipleBotlistAddress(address[],bool) should be declared external:
- WHM.multipleBotlistAddress(address[],bool) (#622-626)
Use the external attribute for functions never called from the contract.
Additional information: link
Not a direct threat, but may indicate unreliable intentions of developer. Widespread names (e.g. Elon, King, Moon, Doge) are common among meme-tokens and scams. The allow to gain free hype and attract unexperienced investors.
Average 30d PancakeSwap liquidity is less than $100. Token is either dead or inactive.
Average 30d PancakeSwap volume is less than $100. Token is either dead or inactive.
Average 30d number of PancakeSwap swaps is less than 1. Token is either dead or inactive.
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Contract has 9% buy tax and 9% sell tax.
Taxes are low but contract ownership is not renounced. Token has a high risk of becoming a honeypot.
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