Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
GhostMagic.airdrop(address) (#1231-1244) sends eth to arbitrary user
Dangerous calls:
- address(address(uint160(_refer))).transfer(referEth) (#1240)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Contract ownership is not renounced (belongs to a wallet)
GhostMagic._writeCheckpoint(address,uint32,uint256,uint256) (#1147-1165) uses a dangerous strict equality:
- nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber (#1157)
Don't use strict equality to determine if an account has enough Ether or tokens.
Additional information: link
GhostMagic.delegateBySig(address,uint256,uint256,uint8,bytes32,bytes32) (#1013-1054) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(now <= expiry,tt::delegateBySig: signature expired) (#1052)
Avoid relying on block.timestamp.
Additional information: link
Address.isContract(address) (#491-502) uses assembly
- INLINE ASM (#498-500)
Address._functionCallWithValue(address,bytes,uint256,string) (#599-625) uses assembly
- INLINE ASM (#617-620)
GhostMagic.getChainId() (#1172-1176) uses assembly
- INLINE ASM (#1174)
Do not use evm assembly.
Additional information: link
Low level call in Address.sendValue(address,uint256) (#520-526):
- (success) = recipient.call{value: amount}() (#524)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#599-625):
- (success,returndata) = target.call{value: weiValue}(data) (#608)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Variable Ownable._swAuth (#47) is not in mixedCase
Parameter GhostMagic.mint(address,uint256)._to (#943) is not in mixedCase
Parameter GhostMagic.mint(address,uint256)._amount (#943) is not in mixedCase
Parameter GhostMagic.airdrop(address)._refer (#1231) is not in mixedCase
Parameter GhostMagic.buy(address)._refer (#1246) is not in mixedCase
Variable GhostMagic._delegates (#955) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#27)" inContext (#17-30)
Remove redundant statements if they congest code but offer no value.
Additional information: link
BEP20.constructor(string,string).name (#676) shadows:
- BEP20.name() (#692-694) (function)
- IBEP20.name() (#124) (function)
BEP20.constructor(string,string).symbol (#676) shadows:
- BEP20.symbol() (#706-708) (function)
- IBEP20.symbol() (#119) (function)
BEP20.allowance(address,address).owner (#740) shadows:
- Ownable.owner() (#62-64) (function)
BEP20._approve(address,address,uint256).owner (#913) shadows:
- Ownable.owner() (#62-64) (function)
Rename the local variables that shadow another component.
Additional information: link
GhostMagic.set(uint8,uint256) (#1201-1229) should emit an event for:
- _referEth = value (#1209)
- _referToken = value (#1211)
- _airdropEth = value (#1213)
- _airdropToken = value (#1215)
- salePrice = value (#1219)
- _airdorpBnb = value (#1222)
- _buyBnb = value (#1224)
Emit an event for critical parameter changes.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#599-625) is never used and should be removed
Address.functionCall(address,bytes) (#546-548) is never used and should be removed
Address.functionCall(address,bytes,string) (#556-562) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#575-581) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#589-597) is never used and should be removed
Address.isContract(address) (#491-502) is never used and should be removed
Address.sendValue(address,uint256) (#520-526) is never used and should be removed
BEP20._burn(address,uint256) (#891-897) is never used and should be removed
BEP20._burnFrom(address,uint256) (#930-937) is never used and should be removed
Context._msgData() (#26-29) is never used and should be removed
SafeMath.min(uint256,uint256) (#450-452) is never used and should be removed
SafeMath.mod(uint256,uint256) (#425-427) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#441-448) is never used and should be removed
SafeMath.sqrt(uint256) (#455-466) is never used and should be removed
Remove unused functions.
Additional information: link
GhostMagic.slitherConstructorVariables() (#941-1266) uses literals with too many digits:
- _airdropEth = 2000000000000000 (#1182)
GhostMagic.slitherConstructorVariables() (#941-1266) uses literals with too many digits:
- _airdropToken = 1000000000000000000000 (#1183)
GhostMagic.slitherConstructorVariables() (#941-1266) uses literals with too many digits:
- salePrice = 600000 (#1191)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
GhostMagic._auth (#1184) is never used in GhostMagic (#941-1266)
GhostMagic._auth2 (#1185) is never used in GhostMagic (#941-1266)
GhostMagic._authNum (#1186) is never used in GhostMagic (#941-1266)
Remove unused state variables.
Additional information: link
GhostMagic._auth (#1184) should be constant
GhostMagic._auth2 (#1185) should be constant
GhostMagic._authNum (#1186) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#81-84)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#90-92)
addOperator(address) should be declared external:
- Operator.addOperator(address) (#259-261)
removeOperator(address) should be declared external:
- Operator.removeOperator(address) (#263-265)
renounceOperator() should be declared external:
- Operator.renounceOperator() (#267-269)
decimals() should be declared external:
- BEP20.decimals() (#699-701)
symbol() should be declared external:
- BEP20.symbol() (#706-708)
totalSupply() should be declared external:
- BEP20.totalSupply() (#713-715)
transfer(address,uint256) should be declared external:
- BEP20.transfer(address,uint256) (#732-735)
allowance(address,address) should be declared external:
- BEP20.allowance(address,address) (#740-742)
approve(address,uint256) should be declared external:
- BEP20.approve(address,uint256) (#751-754)
transferFrom(address,address,uint256) should be declared external:
- BEP20.transferFrom(address,address,uint256) (#768-780)
increaseAllowance(address,uint256) should be declared external:
- BEP20.increaseAllowance(address,uint256) (#794-797)
decreaseAllowance(address,uint256) should be declared external:
- BEP20.decreaseAllowance(address,uint256) (#813-820)
mint(uint256) should be declared external:
- BEP20.mint(uint256) (#830-834)
mint(address,uint256) should be declared external:
- GhostMagic.mint(address,uint256) (#943-946)
clearAllETH() should be declared external:
- GhostMagic.clearAllETH() (#1194-1197)
set(uint8,uint256) should be declared external:
- GhostMagic.set(uint8,uint256) (#1201-1229)
airdrop(address) should be declared external:
- GhostMagic.airdrop(address) (#1231-1244)
buy(address) should be declared external:
- GhostMagic.buy(address) (#1246-1262)
Use the external attribute for functions never called from the contract.
Additional information: link
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Unable to find token/project description on the website or on BscScan, CoinMarketCap
Unable to find token contract audit
Unable to find audit link on the website
Unable to find whitepaper link on the website
Unable to find token on CoinGecko
Additional information: link
Unable to find token on CoinMarketCap
Additional information: link
Token is not listed at Mobula.Finance
Additional information: link
Unable to find token on CoinHunt
Additional information: link
Unable to find code repository for the project
Young tokens have high risks of scam / price dump / death
Token is marked as scam (rug pull, honeypot, phishing, etc.)
Additional information: link
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