Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
anoncats.addLiquidity(uint256,uint256) (#720-733) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#725-732)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in anoncats._transfer(address,address,uint256) (#632-672):
External calls:
- swapAndLiquify(contractTokenBalance) (#656)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#725-732)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#709-715)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#656)
- recipient.transfer(amount) (#599)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#725-732)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#659)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#667)
- finalAmount = takeFee(sender,recipient,amount) (#661-662)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#740)
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.
anoncats.swapAndLiquify(uint256) (#681-698) performs a multiplication on the result of a division:
-tokensForLP = tAmount.div(_totalTaxIfBuying).mul(_liquidityFee).div(2) (#683)
Consider ordering multiplication before division.
Additional information: link
anoncats.addLiquidity(uint256,uint256) (#720-733) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#725-732)
Ensure that all the return values of the function calls are used.
Additional information: link
anoncats.allowance(address,address).owner (#508) shadows:
- Ownable.owner() (#156-158) (function)
anoncats._approve(address,address,uint256).owner (#531) shadows:
- Ownable.owner() (#156-158) (function)
Rename the local variables that shadow another component.
Additional information: link
anoncats.setTaxes(uint256,uint256,uint256,uint256) (#547-555) should emit an event for:
- _liquidityFee = newLiquidityTax (#548)
- _buyBackFee = newBuyBackTax (#550)
- _totalTaxIfBuying = _liquidityFee.add(_marketingFee).add(_buyBackFee) (#553)
- _totalTaxIfSelling = _totalTaxIfBuying.add(_extraFeeOnSell) (#554)
anoncats.setMaxTxAmount(uint256) (#557-559) should emit an event for:
- _maxTxAmount = maxTxAmount (#558)
anoncats.setWalletLimit(uint256) (#569-571) should emit an event for:
- _walletMax = newLimit (#570)
anoncats.setNumTokensBeforeSwap(uint256) (#573-575) should emit an event for:
- minimumTokensBeforeSwap = newLimit (#574)
Emit an event for critical parameter changes.
Additional information: link
anoncats.setMarketingWalletAddress(address).newAddress (#577) lacks a zero-check on :
- marketingWalletAddress = address(newAddress) (#578)
anoncats.setbuyBackWalletAddress(address).newAddress (#581) lacks a zero-check on :
- buyBackWalletAddress = address(newAddress) (#582)
Check that the address is not zero.
Additional information: link
Reentrancy in anoncats.changeRouterVersion(address) (#602-616):
External calls:
- newPairAddress = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#610-611)
State variables written after the call(s):
- uniswapV2Pair = newPairAddress (#614)
- uniswapV2Router = _uniswapV2Router (#615)
Reentrancy in anoncats.constructor() (#462-486):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#466-467)
State variables written after the call(s):
- _allowances[address(this)][address(uniswapV2Router)] = _totalSupply (#470)
- _balances[_msgSender()] = _totalSupply (#484)
- _totalTaxIfBuying = _liquidityFee.add(_marketingFee).add(_buyBackFee) (#475)
- _totalTaxIfSelling = _totalTaxIfBuying.add(_extraFeeOnSell) (#476)
- isExcludedFromFee[owner()] = true (#472)
- isExcludedFromFee[address(this)] = true (#473)
- isWalletLimitExempt[owner()] = true (#478)
- isWalletLimitExempt[address(uniswapV2Pair)] = true (#479)
- isWalletLimitExempt[address(this)] = true (#481)
- isWalletLimitExempt[0x000000000000000000000000000000000000dEaD] = true (#482)
- uniswapV2Router = _uniswapV2Router (#469)
Reentrancy in anoncats.swapAndLiquify(uint256) (#681-698):
External calls:
- swapTokensForEth(tokensForSwap) (#686)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#709-715)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#697)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#725-732)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#695)
- recipient.transfer(amount) (#599)
- transferToAddressETH(buyBackWalletAddress,amountBNBBuyBack) (#696)
- recipient.transfer(amount) (#599)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#697)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#725-732)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#697)
- _allowances[owner][spender] = amount (#535)
Reentrancy in anoncats.transferFrom(address,address,uint256) (#626-630):
External calls:
- _transfer(sender,recipient,amount) (#627)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#725-732)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#709-715)
External calls sending eth:
- _transfer(sender,recipient,amount) (#627)
- recipient.transfer(amount) (#599)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#725-732)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#628)
- _allowances[owner][spender] = amount (#535)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in anoncats._transfer(address,address,uint256) (#632-672):
External calls:
- swapAndLiquify(contractTokenBalance) (#656)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#725-732)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#709-715)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#656)
- recipient.transfer(amount) (#599)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#725-732)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#741)
- finalAmount = takeFee(sender,recipient,amount) (#661-662)
- Transfer(sender,recipient,finalAmount) (#669)
Reentrancy in anoncats.constructor() (#462-486):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#466-467)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_totalSupply) (#485)
Reentrancy in anoncats.swapAndLiquify(uint256) (#681-698):
External calls:
- swapTokensForEth(tokensForSwap) (#686)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#709-715)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#697)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#725-732)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#695)
- recipient.transfer(amount) (#599)
- transferToAddressETH(buyBackWalletAddress,amountBNBBuyBack) (#696)
- recipient.transfer(amount) (#599)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#697)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#725-732)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#536)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#697)
Reentrancy in anoncats.swapTokensForEth(uint256) (#700-718):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#709-715)
Event emitted after the call(s):
- SwapTokensForETH(tokenAmount,path) (#717)
Reentrancy in anoncats.transferFrom(address,address,uint256) (#626-630):
External calls:
- _transfer(sender,recipient,amount) (#627)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#725-732)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#709-715)
External calls sending eth:
- _transfer(sender,recipient,amount) (#627)
- recipient.transfer(amount) (#599)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#725-732)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#536)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#628)
Apply the check-effects-interactions pattern.
Additional information: link
Ownable.unlock() (#191-196) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp > _lockTime,Contract is locked until 7 days) (#193)
Avoid relying on block.timestamp.
Additional information: link
Address.isContract(address) (#87-96) uses assembly
- INLINE ASM (#94)
Address._functionCallWithValue(address,bytes,uint256,string) (#123-140) uses assembly
- INLINE ASM (#132-135)
Do not use evm assembly.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#123-140) is never used and should be removed
Address.functionCall(address,bytes) (#106-108) is never used and should be removed
Address.functionCall(address,bytes,string) (#110-112) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#114-116) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#118-121) is never used and should be removed
Address.isContract(address) (#87-96) is never used and should be removed
Address.sendValue(address,uint256) (#98-104) is never used and should be removed
Context._msgData() (#14-17) is never used and should be removed
SafeMath.mod(uint256,uint256) (#75-77) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#79-82) is never used and should be removed
Remove unused functions.
Additional information: link
Low level call in Address.sendValue(address,uint256) (#98-104):
- (success) = recipient.call{value: amount}() (#102)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#123-140):
- (success,returndata) = target.call{value: weiValue}(data) (#126)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#230) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#231) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#247) is not in mixedCase
Function IUniswapV2Router01.WETH() (#266) is not in mixedCase
Contract anoncats (#399-747) is not in CapWords
Parameter anoncats.setSwapAndLiquifyEnabled(bool)._enabled (#585) is not in mixedCase
Variable anoncats._balances (#412) is not in mixedCase
Variable anoncats._liquidityFee (#419) is not in mixedCase
Variable anoncats._marketingFee (#420) is not in mixedCase
Variable anoncats._buyBackFee (#421) is not in mixedCase
Variable anoncats._extraFeeOnSell (#422) is not in mixedCase
Variable anoncats._totalTaxIfBuying (#423) is not in mixedCase
Variable anoncats._totalTaxIfSelling (#424) is not in mixedCase
Variable anoncats._maxTxAmount (#427) is not in mixedCase
Variable anoncats._walletMax (#428) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#15)" inContext (#8-18)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in anoncats._transfer(address,address,uint256) (#632-672):
External calls:
- swapAndLiquify(contractTokenBalance) (#656)
- recipient.transfer(amount) (#599)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#656)
- recipient.transfer(amount) (#599)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#725-732)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#659)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#667)
- finalAmount = takeFee(sender,recipient,amount) (#661-662)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#740)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#741)
- finalAmount = takeFee(sender,recipient,amount) (#661-662)
- Transfer(sender,recipient,finalAmount) (#669)
Reentrancy in anoncats.swapAndLiquify(uint256) (#681-698):
External calls:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#695)
- recipient.transfer(amount) (#599)
- transferToAddressETH(buyBackWalletAddress,amountBNBBuyBack) (#696)
- recipient.transfer(amount) (#599)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#695)
- recipient.transfer(amount) (#599)
- transferToAddressETH(buyBackWalletAddress,amountBNBBuyBack) (#696)
- recipient.transfer(amount) (#599)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#697)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#725-732)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#697)
- _allowances[owner][spender] = amount (#535)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#536)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#697)
Reentrancy in anoncats.transferFrom(address,address,uint256) (#626-630):
External calls:
- _transfer(sender,recipient,amount) (#627)
- recipient.transfer(amount) (#599)
External calls sending eth:
- _transfer(sender,recipient,amount) (#627)
- recipient.transfer(amount) (#599)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#725-732)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#628)
- _allowances[owner][spender] = amount (#535)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#536)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#628)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#271) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#272)
Prevent variables from having similar names.
Additional information: link
anoncats.constructor() (#462-486) uses literals with too many digits:
- isWalletLimitExempt[0x000000000000000000000000000000000000dEaD] = true (#482)
anoncats.slitherConstructorVariables() (#399-747) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#410)
anoncats.slitherConstructorVariables() (#399-747) uses literals with too many digits:
- _totalSupply = 1000000000000000 * 10 ** 9 (#426)
anoncats.slitherConstructorVariables() (#399-747) uses literals with too many digits:
- _maxTxAmount = 20000000000000 * 10 ** 9 (#427)
anoncats.slitherConstructorVariables() (#399-747) uses literals with too many digits:
- _walletMax = 20000000000000 * 10 ** 9 (#428)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
anoncats._decimals (#406) should be constant
anoncats._name (#404) should be constant
anoncats._symbol (#405) should be constant
anoncats._totalSupply (#426) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#165-168)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#170-174)
getUnlockTime() should be declared external:
- Ownable.getUnlockTime() (#176-178)
getTime() should be declared external:
- Ownable.getTime() (#180-182)
lock(uint256) should be declared external:
- Ownable.lock(uint256) (#184-189)
unlock() should be declared external:
- Ownable.unlock() (#191-196)
name() should be declared external:
- anoncats.name() (#488-490)
symbol() should be declared external:
- anoncats.symbol() (#492-494)
decimals() should be declared external:
- anoncats.decimals() (#496-498)
totalSupply() should be declared external:
- anoncats.totalSupply() (#500-502)
allowance(address,address) should be declared external:
- anoncats.allowance(address,address) (#508-510)
increaseAllowance(address,uint256) should be declared external:
- anoncats.increaseAllowance(address,uint256) (#512-515)
decreaseAllowance(address,uint256) should be declared external:
- anoncats.decreaseAllowance(address,uint256) (#517-520)
minimumTokensBeforeSwapAmount() should be declared external:
- anoncats.minimumTokensBeforeSwapAmount() (#522-524)
approve(address,uint256) should be declared external:
- anoncats.approve(address,uint256) (#526-529)
blacklistAddress(address,bool) should be declared external:
- anoncats.blacklistAddress(address,bool) (#539-541)
setIsExcludedFromFee(address,bool) should be declared external:
- anoncats.setIsExcludedFromFee(address,bool) (#543-545)
setSwapAndLiquifyEnabled(bool) should be declared external:
- anoncats.setSwapAndLiquifyEnabled(bool) (#585-588)
setSwapAndLiquifyByLimitOnly(bool) should be declared external:
- anoncats.setSwapAndLiquifyByLimitOnly(bool) (#590-592)
getCirculatingSupply() should be declared external:
- anoncats.getCirculatingSupply() (#594-596)
changeRouterVersion(address) should be declared external:
- anoncats.changeRouterVersion(address) (#602-616)
transfer(address,uint256) should be declared external:
- anoncats.transfer(address,uint256) (#621-624)
transferFrom(address,address,uint256) should be declared external:
- anoncats.transferFrom(address,address,uint256) (#626-630)
Use the external attribute for functions never called from the contract.
Additional information: link
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.
Contract has 9% buy tax and 17% sell tax.
Taxes are high (over 10%) but contract ownership is renounced.
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