Overlord is a NFT-based mobile role playing game. It is built on the Binance Smart Chain (BSC) platform bringing the concept of play to earn (p2e) to users.
Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains
Contract locking ether found:
Contract Overlord (#931-1128) has payable functions:
- Overlord.receive() (#1094)
But does not have a function to withdraw the ether
Remove the payable attribute or add a withdraw function.
Additional information: link
Contract ownership is not renounced (belongs to a wallet)
Overlord.setFarmers(address) (#992-995) should emit an event for:
- farmer = _farmer (#994)
Emit an event for critical parameter changes.
Additional information: link
Overlord._transfer(address,address,uint256) (#1056-1084) uses timestamp for comparisons
Dangerous comparisons:
- antiWhaleTime > block.timestamp && amount > antiWhaleAmount && whales[sender] (#1062-1064)
Avoid relying on block.timestamp.
Additional information: link
Different versions of Solidity is used:
- Version used: ['>=0.6.0<0.8.0', '^0.7.6']
- >=0.6.0<0.8.0 (#12)
- >=0.6.0<0.8.0 (#88)
- ^0.7.6 (#111)
- >=0.6.0<0.8.0 (#349)
- >=0.6.0<0.8.0 (#415)
- >=0.6.0<0.8.0 (#628)
- ^0.7.6 (#929)
Use one Solidity version.
Additional information: link
Overlord.capGame (#940) is set pre-construction with a non-constant function or state variable:
- maxSupply.div(100).mul(20)
Overlord.capFarm (#941) is set pre-construction with a non-constant function or state variable:
- maxSupply.div(100).mul(20)
Remove any initialization of state variables via non-constant state variables or function calls. If variables must be set upon contract deployment, locate initialization in the constructor instead.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#399-402)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#408-412)
name() should be declared external:
- ERC20.name() (#685-687)
symbol() should be declared external:
- ERC20.symbol() (#693-695)
decimals() should be declared external:
- ERC20.decimals() (#710-712)
totalSupply() should be declared external:
- ERC20.totalSupply() (#717-719)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#736-739)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#744-746)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#755-758)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#773-777)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#791-794)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#810-813)
setGamers(address,bool) should be declared external:
- Overlord.setGamers(address,bool) (#986-990)
setFarmers(address) should be declared external:
- Overlord.setFarmers(address) (#992-995)
setBossCallers(address,bool) should be declared external:
- Overlord.setBossCallers(address,bool) (#997-1001)
setTransferFeeRate(uint256,uint256) should be declared external:
- Overlord.setTransferFeeRate(uint256,uint256) (#1003-1011)
setMinTokensBeforeSwap(uint256) should be declared external:
- Overlord.setMinTokensBeforeSwap(uint256) (#1013-1016)
burn(uint256) should be declared external:
- Overlord.burn(uint256) (#1046-1048)
sweepTokenForBosses() should be declared external:
- Overlord.sweepTokenForBosses() (#1086-1091)
Use the external attribute for functions never called from the contract.
Additional information: link
Overlord.slitherConstructorVariables() (#931-1128) performs a multiplication on the result of a division:
-capGame = maxSupply.div(100).mul(20) (#940)
Overlord.slitherConstructorVariables() (#931-1128) performs a multiplication on the result of a division:
-capFarm = maxSupply.div(100).mul(20) (#941)
Consider ordering multiplication before division.
Additional information: link
Overlord.constructor(string,string).name (#957) shadows:
- ERC20.name() (#685-687) (function)
Overlord.constructor(string,string).symbol (#957) shadows:
- ERC20.symbol() (#693-695) (function)
Rename the local variables that shadow another component.
Additional information: link
Overlord.setTransferFeeRate(uint256,uint256) (#1003-1011) should emit an event for:
- sellFeeRate = _sellFeeRate (#1009)
- buyFeeRate = _buyFeeRate (#1010)
Overlord.setMinTokensBeforeSwap(uint256) (#1013-1016) should emit an event for:
- tokenForBosses = _tokenForBosses (#1015)
Overlord.antiWhale(uint256) (#1119-1126) should emit an event for:
- antiWhaleAmount = amount (#1123)
Emit an event for critical parameter changes.
Additional information: link
Reentrancy in Overlord.constructor(string,string) (#957-969):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#964-965)
State variables written after the call(s):
- addressForBosses = _msgSender() (#968)
- uniswapV2Router = _uniswapV2Router (#966)
Apply the check-effects-interactions pattern.
Additional information: link
Context._msgData() (#105-108) is never used and should be removed
ERC20._setupDecimals(uint8) (#908-910) is never used and should be removed
SafeMath.div(uint256,uint256,string) (#602-605) is never used and should be removed
SafeMath.mod(uint256,uint256) (#564-567) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#622-625) is never used and should be removed
SafeMath.tryAdd(uint256,uint256) (#436-440) is never used and should be removed
SafeMath.tryDiv(uint256,uint256) (#472-475) is never used and should be removed
SafeMath.tryMod(uint256,uint256) (#482-485) is never used and should be removed
SafeMath.tryMul(uint256,uint256) (#457-465) is never used and should be removed
SafeMath.trySub(uint256,uint256) (#447-450) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version>=0.6.0<0.8.0 (#12) is too complex
Pragma version>=0.6.0<0.8.0 (#88) is too complex
Pragma version>=0.6.0<0.8.0 (#349) is too complex
Pragma version>=0.6.0<0.8.0 (#415) is too complex
Pragma version>=0.6.0<0.8.0 (#628) 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
Function IUniswapV2Router01.WETH() (#146) is not in mixedCase
Parameter Overlord.setGamers(address,bool)._gamer (#986) is not in mixedCase
Parameter Overlord.setGamers(address,bool)._status (#986) is not in mixedCase
Parameter Overlord.setFarmers(address)._farmer (#992) is not in mixedCase
Parameter Overlord.setBossCallers(address,bool)._caller (#997) is not in mixedCase
Parameter Overlord.setBossCallers(address,bool)._status (#997) is not in mixedCase
Parameter Overlord.setTransferFeeRate(uint256,uint256)._sellFeeRate (#1003) is not in mixedCase
Parameter Overlord.setTransferFeeRate(uint256,uint256)._buyFeeRate (#1003) is not in mixedCase
Parameter Overlord.setMinTokensBeforeSwap(uint256)._tokenForBosses (#1013) is not in mixedCase
Parameter Overlord.setWhales(address)._whales (#1050) is not in mixedCase
Parameter Overlord.setAddressForBosses(address)._addressForBosses (#1113) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#106)" inContext (#100-109)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Overlord.antiWhaleDuration (#947) should be constant
Overlord.maxSupply (#939) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#151) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#152)
Prevent variables from having similar names.
Additional information: link
Average PancakeSwap trading volume, liqudity, number of swaps are low. Token seems to be inactive.
Contract has 3% buy tax and 7% sell tax.
Taxes are low but contract ownership is not renounced. Token has a high risk of becoming a honeypot.
Average 30d PancakeSwap volume is low.
Average 30d number of PancakeSwap swaps is low.
Token is deployed only at one blockchain
Token is marked as risky (blacklisted creator, fake name, dead project, etc.)
Additional information: link
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Token has relatively low CoinMarketCap rank
Young tokens have high risks of price dump / death
Last post in Twitter was more than 30 days ago
Unable to find Youtube account
Unable to find Blog account (Reddit or Medium)