Metakings is an AI-powered fighting universe in which anyone can earn rewards such as tokens and NFTs through competent gameplay and contributions to the ecosystem. Players can engage in combat, gather resources, develop their characters, and establish their own land-based kingdoms.
MetaKings.withdrawFunc(address,address) (MetaKings.sol#69-71) ignores return value by ERC20Token(token).transfer(recipient,ERC20Token(token).balanceOf(address(this))) (MetaKings.sol#70)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Contract creator or owner is blacklisted for past scams
MetaKings._safeTransferBNB(address,uint256) (MetaKings.sol#92-95) sends eth to arbitrary user
Dangerous calls:
- (success) = to.call{value: value}(new bytes(0)) (MetaKings.sol#93)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
ERC20Token._enableFee (ERC20Token.sol#63) is never initialized. It is used in:
- ERC20Token.enableFee() (ERC20Token.sol#143-145)
- ERC20Token._transfer(address,address,uint256) (ERC20Token.sol#283-309)
ERC20Token.whiteList (ERC20Token.sol#67) is never initialized. It is used in:
- ERC20Token._transfer(address,address,uint256) (ERC20Token.sol#283-309)
ERC20Token._transferBurnAddresses (ERC20Token.sol#61) is never initialized. It is used in:
- ERC20Token._transfer(address,address,uint256) (ERC20Token.sol#283-309)
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
Combination 2: Unchecked transfer + Functions that send Ether to arbitraty destination. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
ERC20Token._transfer(address,address,uint256) (ERC20Token.sol#283-309) contains a tautology or contradiction:
- _balances[sender].sub(amount).sub(receiedAmount) < 0 (ERC20Token.sol#299)
Fix the incorrect comparison by changing the value type or the comparison.
Additional information: link
Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains
Contract ownership is not renounced (belongs to a wallet)
MetaKings._writenewCheckpoint(address,uint32,uint256,uint256) (MetaKings.sol#236-257) uses a dangerous strict equality:
- nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber (MetaKings.sol#248)
Don't use strict equality to determine if an account has enough Ether or tokens.
Additional information: link
ERC20Token.constructor(string,string).name (ERC20Token.sol#77) shadows:
- ERC20Token.name() (ERC20Token.sol#101-103) (function)
- IERC20.name() (IERC20.sol#34) (function)
ERC20Token.allowance(address,address).owner (ERC20Token.sol#163) shadows:
- Ownable.owner() (Ownable.sol#50-52) (function)
ERC20Token._approve(address,address,uint256).owner (ERC20Token.sol#360) shadows:
- Ownable.owner() (Ownable.sol#50-52) (function)
ERC20Token.constructor(string,string).symbol (ERC20Token.sol#77) shadows:
- ERC20Token.symbol() (ERC20Token.sol#115-117) (function)
- IERC20.symbol() (IERC20.sol#29) (function)
Rename the local variables that shadow another component.
Additional information: link
MetaKings._movePreviousDelegates(address,address,uint256) (MetaKings.sol#216-234) is never used and should be removed
Address.sendValue(address,uint256) (Address.sol#63-69) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (Address.sol#114-116) is never used and should be removed
SafeMath.sqrt(uint256) (SafeMath.sol#187-198) is never used and should be removed
Address.functionDelegateCall(address,bytes,string) (Address.sol#173-179) is never used and should be removed
MetaKings.safe32(uint256,string) (MetaKings.sol#259-262) is never used and should be removed
MetaKings._delleggate(address,address) (MetaKings.sol#204-214) is never used and should be removed
Address.functionDelegateCall(address,bytes) (Address.sol#163-165) is never used and should be removed
SafeMath.min(uint256,uint256) (SafeMath.sol#182-184) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (SafeMath.sol#173-180) is never used and should be removed
MetaKings._writenewCheckpoint(address,uint32,uint256,uint256) (MetaKings.sol#236-257) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (Address.sol#124-131) is never used and should be removed
Context._msgData() (Context.sol#34-37) is never used and should be removed
Address.functionStaticCall(address,bytes) (Address.sol#139-141) is never used and should be removed
SafeMath.mod(uint256,uint256) (SafeMath.sol#157-159) is never used and should be removed
ERC20Token._burnFrom(address,uint256) (ERC20Token.sol#377-384) is never used and should be removed
Address._verifyCallResult(bool,bytes,string) (Address.sol#181-198) is never used and should be removed
Address.functionCall(address,bytes,string) (Address.sol#99-101) is never used and should be removed
Address.functionStaticCall(address,bytes,string) (Address.sol#149-155) is never used and should be removed
Address.functionCall(address,bytes) (Address.sol#89-91) is never used and should be removed
Remove unused functions.
Additional information: link
ERC20Token.setLockContract(address).lockContract (ERC20Token.sol#259) lacks a zero-check on :
- LOCK_CONTRACT = lockContract (ERC20Token.sol#260)
ERC20Token.dev(address)._devaddr (ERC20Token.sol#86) lacks a zero-check on :
- devaddr = _devaddr (ERC20Token.sol#88)
Check that the address is not zero.
Additional information: link
ERC20Token._cap (ERC20Token.sol#59) is never used in MetaKings (MetaKings.sol#32-274)
Remove unused state variables.
Additional information: link
ERC20Token._cap (ERC20Token.sol#59) should be constant
ERC20Token._enableFee (ERC20Token.sol#63) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
Different versions of Solidity are used:
- Version used: ['0.6.12', '>=0.4.0', '>=0.4.24<0.8.0', '>=0.6.2<0.8.0']
- >=0.6.2<0.8.0 (Address.sol#13)
- >=0.4.0 (Context.sol#13)
- >=0.4.0 (ERC20Token.sol#12)
- >=0.4.0 (IERC20.sol#13)
- 0.6.12 (ILockContract.sol#12)
- 0.6.12 (ISellToken.sol#12)
- >=0.4.24<0.8.0 (Initializable.sol#14)
- 0.6.12 (MetaKings.sol#25)
- >=0.4.0 (Ownable.sol#12)
- >=0.4.0 (SafeMath.sol#13)
Use one Solidity version.
Additional information: link
Low level call in MetaKings._safeTransferBNB(address,uint256) (MetaKings.sol#92-95):
- (success) = to.call{value: value}(new bytes(0)) (MetaKings.sol#93)
Low level call in Address.sendValue(address,uint256) (Address.sol#63-69):
- (success) = recipient.call{value: amount}() (Address.sol#67)
Low level call in Address.functionDelegateCall(address,bytes,string) (Address.sol#173-179):
- (success,returndata) = target.delegatecall(data) (Address.sol#177)
Low level call in Address.functionCallWithValue(address,bytes,uint256,string) (Address.sol#124-131):
- (success,returndata) = target.call{value: value}(data) (Address.sol#129)
Low level call in Address.functionStaticCall(address,bytes,string) (Address.sol#149-155):
- (success,returndata) = target.staticcall(data) (Address.sol#153)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Variable ERC20Token.LOCK_CONTRACT (ERC20Token.sol#66) is not in mixedCase
Parameter ERC20Token.dev(address)._devaddr (ERC20Token.sol#86) is not in mixedCase
Variable MetaKings._delleggates (MetaKings.sol#104) is not in mixedCase
Variable MetaKings.DOMAIN_SEPARATOR (MetaKings.sol#38) is not in mixedCase
Variable MetaKings._nonces (MetaKings.sol#34) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
transferBurnRate() should be declared external:
- ERC20Token.transferBurnRate() (ERC20Token.sol#136-138)
transferFrom(address,address,uint256) should be declared external:
- ERC20Token.transferFrom(address,address,uint256) (ERC20Token.sol#191-203)
totalSupply() should be declared external:
- ERC20Token.totalSupply() (ERC20Token.sol#122-124)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (Ownable.sol#69-72)
decreaseAllowance(address,uint256) should be declared external:
- ERC20Token.decreaseAllowance(address,uint256) (ERC20Token.sol#236-243)
withdrawBNB(address,uint256) should be declared external:
- MetaKings.withdrawBNB(address,uint256) (MetaKings.sol#79-85)
enableFee() should be declared external:
- ERC20Token.enableFee() (ERC20Token.sol#143-145)
symbol() should be declared external:
- ERC20Token.symbol() (ERC20Token.sol#115-117)
dev(address) should be declared external:
- ERC20Token.dev(address) (ERC20Token.sol#86-89)
burn(uint256) should be declared external:
- ERC20Token.burn(uint256) (ERC20Token.sol#264-267)
setLockContract(address) should be declared external:
- ERC20Token.setLockContract(address) (ERC20Token.sol#259-262)
deploy(uint256) should be declared external:
- ERC20Token.deploy(uint256) (ERC20Token.sol#253-257)
increaseAllowance(address,uint256) should be declared external:
- ERC20Token.increaseAllowance(address,uint256) (ERC20Token.sol#217-220)
decimals() should be declared external:
- ERC20Token.decimals() (ERC20Token.sol#108-110)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (Ownable.sol#78-80)
withdrawFunc(address,address) should be declared external:
- MetaKings.withdrawFunc(address,address) (MetaKings.sol#69-71)
approve(address,uint256) should be declared external:
- ERC20Token.approve(address,uint256) (ERC20Token.sol#174-177)
bootswitch() should be declared external:
- MetaKings.bootswitch() (MetaKings.sol#43-62)
allowance(address,address) should be declared external:
- ERC20Token.allowance(address,address) (ERC20Token.sol#163-165)
transfer(address,uint256) should be declared external:
- ERC20Token.transfer(address,uint256) (ERC20Token.sol#155-158)
Use the external attribute for functions never called from the contract.
Additional information: link
Pragma version>=0.6.2<0.8.0 (Address.sol#13) is too complex
Pragma version>=0.4.0 (Ownable.sol#12) allows old versions
Pragma version>=0.4.0 (ERC20Token.sol#12) allows old versions
Pragma version>=0.4.0 (Context.sol#13) allows old versions
Pragma version>=0.4.0 (SafeMath.sol#13) allows old versions
Pragma version>=0.4.0 (IERC20.sol#13) allows old versions
Pragma version>=0.4.24<0.8.0 (Initializable.sol#14) is too complex
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
Redundant expression "this (Context.sol#35)" inContext (Context.sol#25-39)
Remove redundant statements if they congest code but offer no value.
Additional information: link
MetaKings.getChainId() (MetaKings.sol#264-271) uses assembly
- INLINE ASM (MetaKings.sol#268)
Address._verifyCallResult(bool,bytes,string) (Address.sol#181-198) uses assembly
- INLINE ASM (Address.sol#190-193)
Address.isContract(address) (Address.sol#36-45) uses assembly
- INLINE ASM (Address.sol#43)
Do not use evm assembly.
Additional information: link
Average 30d PancakeSwap liquidity is less than $100. Token is either dead or inactive.
Average 30d number of PancakeSwap swaps is less than 1. Token is either dead or inactive.
Token is deployed only at one blockchain
Average 30d PancakeSwap volume is low.
Average PancakeSwap trading volume, liqudity, number of swaps are low. Token seems to be inactive.
Token is marked as scam (rug pull, honeypot, phishing, etc.)
Additional information: link
Token has no active CoinGecko listing / rank
Token has relatively low CoinMarketCap rank
Twitter account link seems to be invalid
Unable to find Discord account