Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
TestToken.allowance(address,address).owner (#580) shadows:
- Ownable.owner() (#62-64) (function)
TestToken._approve(address,address,uint256).owner (#718) shadows:
- Ownable.owner() (#62-64) (function)
Rename the local variables that shadow another component.
Additional information: link
Reentrancy in TestToken.constructor() (#466-489):
External calls:
- pancakePair = IPancakeFactory(pancakeRouter.factory()).createPair(address(this),pancakeRouter.WETH()) (#480-481)
State variables written after the call(s):
- _isExchange[address(pancakeRouter)] = true (#483)
- _isExchange[pancakePair] = true (#485)
- _isExchange[_msgSender()] = true (#487)
- _whiteList[address(pancakeRouter)] = true (#482)
- _whiteList[pancakePair] = true (#484)
- _whiteList[_msgSender()] = true (#486)
Apply the check-effects-interactions pattern.
Additional information: link
Context._msgData() (#28-30) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version^0.8.0 (#11) allows old versions
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
Function IPancakePair.DOMAIN_SEPARATOR() (#235) is not in mixedCase
Function IPancakePair.PERMIT_TYPEHASH() (#236) is not in mixedCase
Function IPancakePair.MINIMUM_LIQUIDITY() (#253) is not in mixedCase
Function IPancakeRouter01.WETH() (#274) is not in mixedCase
Function TestToken._isWhiteListed(address) (#492-494) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IPancakeRouter01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#279) is too similar to IPancakeRouter01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#280)
Prevent variables from having similar names.
Additional information: link
TestToken.constructor() (#466-489) uses literals with too many digits:
- _totalSupply = 1000000 * 10 ** uint256(_decimals) (#470)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#81-83)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#89-92)
_isWhiteListed(address) should be declared external:
- TestToken._isWhiteListed(address) (#492-494)
addToWhiteList(address) should be declared external:
- TestToken.addToWhiteList(address) (#496-499)
removeFromWhiteList(address) should be declared external:
- TestToken.removeFromWhiteList(address) (#501-504)
addToExchanges(address) should be declared external:
- TestToken.addToExchanges(address) (#507-510)
removeFromExchanges(address) should be declared external:
- TestToken.removeFromExchanges(address) (#512-515)
name() should be declared external:
- TestToken.name() (#521-523)
symbol() should be declared external:
- TestToken.symbol() (#529-531)
decimals() should be declared external:
- TestToken.decimals() (#546-548)
totalSupply() should be declared external:
- TestToken.totalSupply() (#553-555)
balanceOf(address) should be declared external:
- TestToken.balanceOf(address) (#560-562)
transfer(address,uint256) should be declared external:
- TestToken.transfer(address,uint256) (#572-575)
allowance(address,address) should be declared external:
- TestToken.allowance(address,address) (#580-582)
approve(address,uint256) should be declared external:
- TestToken.approve(address,uint256) (#591-594)
transferFrom(address,address,uint256) should be declared external:
- TestToken.transferFrom(address,address,uint256) (#609-623)
increaseAllowance(address,uint256) should be declared external:
- TestToken.increaseAllowance(address,uint256) (#637-640)
decreaseAllowance(address,uint256) should be declared external:
- TestToken.decreaseAllowance(address,uint256) (#656-664)
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