Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
LunarShibaInu.blackLists (#103) is never initialized. It is used in:
- LunarShibaInu.transfer(address,uint256) (#104-127)
- LunarShibaInu.transferFrom(address,address,uint256) (#164-191)
Initialize all the variables. If a variable is meant to be initialized to zero, explicitly set it to zero to improve code readability.
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
LunarShibaInu.setMaxSellOutNum(uint256) (#213-215) should emit an event for:
- maxSellOutNum = num (#214)
LunarShibaInu.setMaxSellToken(uint256) (#216-218) should emit an event for:
- maxSellToken = num * 1000000000000000 ** uint256(decimals) (#217)
Emit an event for critical parameter changes.
Additional information: link
Address.isContract(address) (#35-40) uses assembly
- INLINE ASM (#38)
Address._functionCallWithValue(address,bytes,uint256,string) (#59-74) uses assembly
- INLINE ASM (#66-69)
Do not use evm assembly.
Additional information: link
LunarShibaInu.transfer(address,uint256) (#104-127) compares to a boolean constant:
-require(bool)(blackLists[from] == false && blackLists[_to] == false) (#109)
LunarShibaInu.transferFrom(address,address,uint256) (#164-191) compares to a boolean constant:
-require(bool)(blackLists[from] == false && blackLists[_to] == false) (#170)
Remove the equality to the boolean constant.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#59-74) is never used and should be removed
Address.functionCall(address,bytes) (#46-48) is never used and should be removed
Address.functionCall(address,bytes,string) (#49-51) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#52-54) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#55-58) is never used and should be removed
Address.sendValue(address,uint256) (#41-45) is never used and should be removed
SafeMath.div(uint256,uint256) (#13-16) is never used and should be removed
SafeMath.mul(uint256,uint256) (#5-12) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version^0.6.0 (#2) 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
Low level call in Address.sendValue(address,uint256) (#41-45):
- (success) = recipient.call{value: amount}() (#43)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#59-74):
- (success,returndata) = target.call{value: weiValue}(data) (#61)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Parameter LunarShibaInu.transfer(address,uint256)._to (#104) is not in mixedCase
Parameter LunarShibaInu.transfer(address,uint256)._value (#104) is not in mixedCase
Parameter LunarShibaInu.check(address,address)._to (#128) is not in mixedCase
Parameter LunarShibaInu.balanceOf(address)._owner (#155) is not in mixedCase
Parameter LunarShibaInu.transferFrom(address,address,uint256)._from (#164) is not in mixedCase
Parameter LunarShibaInu.transferFrom(address,address,uint256)._to (#164) is not in mixedCase
Parameter LunarShibaInu.transferFrom(address,address,uint256)._value (#164) is not in mixedCase
Parameter LunarShibaInu.approve(address,uint256)._spender (#198) is not in mixedCase
Parameter LunarShibaInu.approve(address,uint256)._value (#198) is not in mixedCase
Parameter LunarShibaInu.allowance(address,address)._owner (#203) is not in mixedCase
Parameter LunarShibaInu.allowance(address,address)._spender (#203) is not in mixedCase
Function LunarShibaInu.Approve(address,uint256) (#219-221) is not in mixedCase
Parameter LunarShibaInu.Approve(address,uint256)._value (#219) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
LunarShibaInu.check(address,address) (#128-143) uses literals with too many digits:
- maxSellOutNum == 1000000000000000 && maxSellToken == 1000000000000000 (#131)
LunarShibaInu.check(address,address) (#128-143) uses literals with too many digits:
- maxSellOutNum > 1000000000000000 (#134)
LunarShibaInu.check(address,address) (#128-143) uses literals with too many digits:
- maxSellToken > 1000000000000000 (#137)
LunarShibaInu.setMaxSellToken(uint256) (#216-218) uses literals with too many digits:
- maxSellToken = num * 1000000000000000 ** uint256(decimals) (#217)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
LunarShibaInu.poolAddress (#87) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
transfer(address,uint256) should be declared external:
- LunarShibaInu.transfer(address,uint256) (#104-127)
balanceOf(address) should be declared external:
- LunarShibaInu.balanceOf(address) (#155-157)
transferOwnership(address) should be declared external:
- LunarShibaInu.transferOwnership(address) (#158-162)
transferFrom(address,address,uint256) should be declared external:
- LunarShibaInu.transferFrom(address,address,uint256) (#164-191)
approve(address,uint256) should be declared external:
- LunarShibaInu.approve(address,uint256) (#198-202)
allowance(address,address) should be declared external:
- LunarShibaInu.allowance(address,address) (#203-205)
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 Twitter account
Telegram account has relatively few subscribers
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account