Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Reentrancy in APETOKEN._transfer(address,address,uint256) (#828-865):
External calls:
- swapAndLiquify() (#849)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#914-921)
- (success) = recipient.call{value: amount}() (#312)
- address(_marketingWallet).sendValue(ethAmount - ethFromLiquidity) (#924)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#899-905)
- swapAndSendToFee(sellTokens) (#851)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#899-905)
External calls sending eth:
- swapAndLiquify() (#849)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#914-921)
- (success) = recipient.call{value: amount}() (#312)
- swapAndSendToFee(sellTokens) (#851)
- address(_marketingWallet).transfer(ethToSend) (#872)
State variables written after the call(s):
- _tOwned[from] -= amount (#855)
- transferAmount = _getValues(amount,from) (#860)
- _tOwned[address(this)] += marketingFee + liquidityFee (#810)
- _tOwned[to] += transferAmount (#863)
- swapping = false (#852)
Apply the check-effects-interactions pattern.
Additional information: link
Contract ticker ($APE) contains non-alphanumeric characters.
Not a direct threat, but may indicate unreliable intentions of developer. Non-alphanumeric chars (,.;!#*&") are extremely rare among low risk tokens.
APETOKEN.allowance(address,address).owner (#750) shadows:
- Ownable.owner() (#427-429) (function)
APETOKEN._approve(address,address,uint256).owner (#820) shadows:
- Ownable.owner() (#427-429) (function)
Rename the local variables that shadow another component.
Additional information: link
APETOKEN.setMarketingFeePercent(uint256) (#791-793) should emit an event for:
- _marketingFee = marketingFee (#792)
APETOKEN.setLiquidityFeePercent(uint256) (#795-797) should emit an event for:
- _liquidityFee = liquidityFee (#796)
APETOKEN.setMaxBuySellPercent(uint256) (#799-801) should emit an event for:
- _maxTxAmount = _tTotal * maxTxPercent / 10 ** 2 (#800)
Emit an event for critical parameter changes.
Additional information: link
APETOKEN.setMarketingWallet(address).marketingWallet (#787) lacks a zero-check on :
- _marketingWallet = marketingWallet (#788)
Check that the address is not zero.
Additional information: link
Reentrancy in APETOKEN._transfer(address,address,uint256) (#828-865):
External calls:
- swapAndLiquify() (#849)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#914-921)
- (success) = recipient.call{value: amount}() (#312)
- address(_marketingWallet).sendValue(ethAmount - ethFromLiquidity) (#924)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#899-905)
- swapAndSendToFee(sellTokens) (#851)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#899-905)
External calls sending eth:
- swapAndLiquify() (#849)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#914-921)
- (success) = recipient.call{value: amount}() (#312)
- swapAndSendToFee(sellTokens) (#851)
- address(_marketingWallet).transfer(ethToSend) (#872)
State variables written after the call(s):
- swapAndSendToFee(sellTokens) (#851)
- _allowances[owner][spender] = amount (#824)
Reentrancy in APETOKEN.constructor() (#707-723):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#712)
State variables written after the call(s):
- _isExcludedFromFee[owner()] = true (#718)
- _isExcludedFromFee[address(this)] = true (#719)
- _isExcludedFromFee[_marketingWallet] = true (#720)
- uniswapV2Pair = _uniswapV2Pair (#715)
- uniswapV2Router = _uniswapV2Router (#714)
Reentrancy in APETOKEN.swapAndLiquify() (#875-887):
External calls:
- newBalance = swapTokensForEth(half) (#880)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#899-905)
- addLiquidity(otherHalf,newBalance) (#884)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#914-921)
- (success) = recipient.call{value: amount}() (#312)
- address(_marketingWallet).sendValue(ethAmount - ethFromLiquidity) (#924)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#884)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#914-921)
- (success) = recipient.call{value: amount}() (#312)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#884)
- _allowances[owner][spender] = amount (#824)
Reentrancy in APETOKEN.transferFrom(address,address,uint256) (#759-763):
External calls:
- _transfer(sender,recipient,amount) (#760)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#914-921)
- (success) = recipient.call{value: amount}() (#312)
- address(_marketingWallet).sendValue(ethAmount - ethFromLiquidity) (#924)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#899-905)
External calls sending eth:
- _transfer(sender,recipient,amount) (#760)
- address(_marketingWallet).transfer(ethToSend) (#872)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#914-921)
- (success) = recipient.call{value: amount}() (#312)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()] - amount) (#761)
- _allowances[owner][spender] = amount (#824)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in APETOKEN._transfer(address,address,uint256) (#828-865):
External calls:
- swapAndLiquify() (#849)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#914-921)
- (success) = recipient.call{value: amount}() (#312)
- address(_marketingWallet).sendValue(ethAmount - ethFromLiquidity) (#924)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#899-905)
- swapAndSendToFee(sellTokens) (#851)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#899-905)
External calls sending eth:
- swapAndLiquify() (#849)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#914-921)
- (success) = recipient.call{value: amount}() (#312)
- swapAndSendToFee(sellTokens) (#851)
- address(_marketingWallet).transfer(ethToSend) (#872)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#825)
- swapAndSendToFee(sellTokens) (#851)
- Transfer(from,address(this),marketingFee + liquidityFee) (#811)
- transferAmount = _getValues(amount,from) (#860)
- Transfer(from,to,transferAmount) (#864)
Reentrancy in APETOKEN.constructor() (#707-723):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#712)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_tTotal) (#722)
Reentrancy in APETOKEN.swapAndLiquify() (#875-887):
External calls:
- newBalance = swapTokensForEth(half) (#880)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#899-905)
- addLiquidity(otherHalf,newBalance) (#884)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#914-921)
- (success) = recipient.call{value: amount}() (#312)
- address(_marketingWallet).sendValue(ethAmount - ethFromLiquidity) (#924)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#884)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#914-921)
- (success) = recipient.call{value: amount}() (#312)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#825)
- addLiquidity(otherHalf,newBalance) (#884)
- SwapAndLiquify(half,newBalance,otherHalf) (#885)
Reentrancy in APETOKEN.transferFrom(address,address,uint256) (#759-763):
External calls:
- _transfer(sender,recipient,amount) (#760)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#914-921)
- (success) = recipient.call{value: amount}() (#312)
- address(_marketingWallet).sendValue(ethAmount - ethFromLiquidity) (#924)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#899-905)
External calls sending eth:
- _transfer(sender,recipient,amount) (#760)
- address(_marketingWallet).transfer(ethToSend) (#872)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#914-921)
- (success) = recipient.call{value: amount}() (#312)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#825)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()] - amount) (#761)
Apply the check-effects-interactions pattern.
Additional information: link
APETOKEN._transfer(address,address,uint256) (#828-865) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(_lastBuy[to] + _buyCooldown < block.timestamp,Must wait til after coooldown to buy) (#842)
APETOKEN.addLiquidity(uint256,uint256) (#909-925) uses timestamp for comparisons
Dangerous comparisons:
- ethAmount - ethFromLiquidity > 0 (#923)
Avoid relying on block.timestamp.
Additional information: link
Address.isContract(address) (#281-290) uses assembly
- INLINE ASM (#288)
Address._functionCallWithValue(address,bytes,uint256,string) (#374-395) uses assembly
- INLINE ASM (#387-390)
Do not use evm assembly.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#374-395) is never used and should be removed
Address.functionCall(address,bytes) (#334-336) is never used and should be removed
Address.functionCall(address,bytes,string) (#344-346) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#359-361) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#369-372) is never used and should be removed
Address.isContract(address) (#281-290) is never used and should be removed
Context._msgData() (#253-256) is never used and should be removed
SafeMath.add(uint256,uint256) (#116-121) is never used and should be removed
SafeMath.div(uint256,uint256) (#190-192) is never used and should be removed
SafeMath.div(uint256,uint256,string) (#206-212) is never used and should be removed
SafeMath.mod(uint256,uint256) (#226-228) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#242-245) is never used and should be removed
SafeMath.mul(uint256,uint256) (#164-176) is never used and should be removed
SafeMath.sub(uint256,uint256) (#133-135) is never used and should be removed
SafeMath.sub(uint256,uint256,string) (#147-152) is never used and should be removed
Remove unused functions.
Additional information: link
Low level call in Address.sendValue(address,uint256) (#308-314):
- (success) = recipient.call{value: amount}() (#312)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#374-395):
- (success,returndata) = target.call{value: weiValue}(data) (#378)
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() (#498) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#499) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#516) is not in mixedCase
Function IUniswapV2Router01.WETH() (#538) is not in mixedCase
Variable APETOKEN._isBlacklisted (#686) is not in mixedCase
Variable APETOKEN._maxTxAmount (#689) is not in mixedCase
Constant APETOKEN._name (#692) is not in UPPER_CASE_WITH_UNDERSCORES
Constant APETOKEN._symbol (#693) is not in UPPER_CASE_WITH_UNDERSCORES
Constant APETOKEN._decimals (#694) is not in UPPER_CASE_WITH_UNDERSCORES
Variable APETOKEN._marketingFee (#696) is not in mixedCase
Variable APETOKEN._liquidityFee (#697) is not in mixedCase
Variable APETOKEN._marketingWallet (#698) is not in mixedCase
Variable APETOKEN._buyCooldown (#700) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#254)" inContext (#248-257)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in APETOKEN._transfer(address,address,uint256) (#828-865):
External calls:
- swapAndSendToFee(sellTokens) (#851)
- address(_marketingWallet).transfer(ethToSend) (#872)
External calls sending eth:
- swapAndLiquify() (#849)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#914-921)
- (success) = recipient.call{value: amount}() (#312)
- swapAndSendToFee(sellTokens) (#851)
- address(_marketingWallet).transfer(ethToSend) (#872)
State variables written after the call(s):
- _tOwned[from] -= amount (#855)
- transferAmount = _getValues(amount,from) (#860)
- _tOwned[address(this)] += marketingFee + liquidityFee (#810)
- _tOwned[to] += transferAmount (#863)
- swapping = false (#852)
Event emitted after the call(s):
- Transfer(from,address(this),marketingFee + liquidityFee) (#811)
- transferAmount = _getValues(amount,from) (#860)
- Transfer(from,to,transferAmount) (#864)
Reentrancy in APETOKEN.transferFrom(address,address,uint256) (#759-763):
External calls:
- _transfer(sender,recipient,amount) (#760)
- address(_marketingWallet).transfer(ethToSend) (#872)
External calls sending eth:
- _transfer(sender,recipient,amount) (#760)
- address(_marketingWallet).transfer(ethToSend) (#872)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#914-921)
- (success) = recipient.call{value: amount}() (#312)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()] - amount) (#761)
- _allowances[owner][spender] = amount (#824)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#825)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()] - amount) (#761)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#543) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#544)
Prevent variables from having similar names.
Additional information: link
Address.sendValue(address,uint256) (#308-314) uses literals with too many digits:
- recipient = address(0x000000000000000000000000000000000000dEaD) (#310)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
APETOKEN._buyCooldown (#700) should be constant
APETOKEN._tTotal (#688) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#446-449)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#455-459)
name() should be declared external:
- APETOKEN.name() (#725-727)
symbol() should be declared external:
- APETOKEN.symbol() (#729-731)
decimals() should be declared external:
- APETOKEN.decimals() (#733-735)
totalSupply() should be declared external:
- APETOKEN.totalSupply() (#737-739)
transfer(address,uint256) should be declared external:
- APETOKEN.transfer(address,uint256) (#745-748)
allowance(address,address) should be declared external:
- APETOKEN.allowance(address,address) (#750-752)
approve(address,uint256) should be declared external:
- APETOKEN.approve(address,uint256) (#754-757)
transferFrom(address,address,uint256) should be declared external:
- APETOKEN.transferFrom(address,address,uint256) (#759-763)
increaseAllowance(address,uint256) should be declared external:
- APETOKEN.increaseAllowance(address,uint256) (#765-768)
decreaseAllowance(address,uint256) should be declared external:
- APETOKEN.decreaseAllowance(address,uint256) (#770-773)
excludeFromFee(address) should be declared external:
- APETOKEN.excludeFromFee(address) (#775-777)
includeInFee(address) should be declared external:
- APETOKEN.includeInFee(address) (#779-781)
isExcludedFromFee(address) should be declared external:
- APETOKEN.isExcludedFromFee(address) (#816-818)
Use the external attribute for functions never called from the contract.
Additional information: link
Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive. Ignore for presale.
Contract has 15% buy tax and 15% 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.
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 is marked as risky (blacklisted creator, fake name, dead project, etc.)
Additional information: link
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Unable to find Telegram and Twitter accounts