Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Contract locking ether found:
Contract COCWorldWar (#1146-1243) has payable functions:
- COCWorldWar.receive() (#1240-1241)
But does not have a function to withdraw the ether
Remove the payable attribute or add a withdraw function.
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.
Not a direct threat, but may indicate unreliable intentions of developer. Both name and ticker of current token are widespread, i.e. common across multiple tokens. This is slightly suspicious
COCWorldWar.constructor(string,string,address,address)._symbol (#1166) shadows:
- BEP20._symbol (#876) (state variable)
Rename the local variables that shadow another component.
Additional information: link
COCWorldWar.setSellFee(uint256) (#1219-1221) should emit an event for:
- sellOperationFee = operationFee (#1220)
Emit an event for critical parameter changes.
Additional information: link
COCWorldWar.constructor(string,string,address,address)._airDropAddress (#1166) lacks a zero-check on :
- airDropAddress = _airDropAddress (#1169)
Check that the address is not zero.
Additional information: link
Reentrancy in COCWorldWar.constructor(string,string,address,address) (#1166-1181):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1172-1173)
State variables written after the call(s):
- _approve(address(this),address(uniswapV2Router),~ uint256(0)) (#1180)
- _allowances[owner][spender] = amount (#1120)
- _excludeFromFee[owner()] = true (#1176)
- _excludeFromFee[address(this)] = true (#1177)
- _excludeFromFee[play2EarnAddress] = true (#1178)
- _excludeFromFee[airDropAddress] = true (#1179)
- uniswapV2Router = _uniswapV2Router (#1174)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in COCWorldWar.constructor(string,string,address,address) (#1166-1181):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1172-1173)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#1121)
- _approve(address(this),address(uniswapV2Router),~ uint256(0)) (#1180)
Apply the check-effects-interactions pattern.
Additional information: link
Address.verifyCallResult(bool,bytes,string) (#713-733) uses assembly
- INLINE ASM (#725-728)
Do not use evm assembly.
Additional information: link
COCWorldWar._transfer(address,address,uint256) (#1192-1213) compares to a boolean constant:
-_excludeFromFee[sender] != true && _excludeFromFee[recipient] != true && (recipient == uniswapV2Pair || sender == uniswapV2Pair) (#1198-1199)
Remove the equality to the boolean constant.
Additional information: link
Different versions of Solidity is used:
- Version used: ['>=0.5.0', '>=0.6.12', '>=0.6.2', '^0.8.0']
- ^0.8.0 (#9)
- >=0.5.0 (#23)
- >=0.6.2 (#45)
- >=0.6.2 (#144)
- ^0.8.0 (#192)
- ^0.8.0 (#292)
- ^0.8.0 (#521)
- ^0.8.0 (#740)
- ^0.8.0 (#766)
- ^0.8.0 (#839)
- >=0.6.12 (#1143)
Use one Solidity version.
Additional information: link
SafeMath.trySub(uint256,uint256) (#323-328) is never used and should be removed
Remove unused functions.
Additional information: link
solc-0.8.4 is not recommended for deployment
Deploy with any of the following Solidity versions: 0.5.16 - 0.5.17, 0.6.11 - 0.6.12, 0.7.5 - 0.7.6 Use a simple pragma version that allows any of these versions. Consider using the latest version of Solidity for testing.
Additional information: link
Low level call in Address.functionDelegateCall(address,bytes,string) (#696-705):
- (success,returndata) = target.delegatecall(data) (#703)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Variable COCWorldWar.BP (#1149) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#54) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#55)
Prevent variables from having similar names.
Additional information: link
decreaseAllowance(address,uint256) should be declared external:
- BEP20.decreaseAllowance(address,uint256) (#1025-1032)
Use the external attribute for functions never called from the contract.
Additional information: link
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
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 PancakeSwap trading pair to compute liquidity.
Unable to find PancakeSwap trading pair to compute volume.
Unable to find PancakeSwap trading pair to compute number of swaps.
Unable to find website, listings and other project-related information
Young tokens have high risks of price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Unable to find Telegram and Twitter accounts