LEGO WORLD is a Metaverse business strategy game; Earn tokens by operating their own Metaverse; Game modes include: story mode, financial mode, real estate mode, farm mode and cultivation mode; A total of 21 characters in the main line are going to create the LEGO world. LLEGO is based on the BSC chain to open the LEGO world NFT hero component, and the heroes will enter the LEGO game through the game coupon NFT to start playing and earn mo
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
LEGO._transfer(address,address,uint256) (#422-473) performs a multiplication on the result of a division:
-share = amount.div(100) (#451)
-noBurn = _burn(share.mul(4)) (#453)
LEGO._transfer(address,address,uint256) (#422-473) performs a multiplication on the result of a division:
-share = amount.div(100) (#451)
-_balances[recipient] = _balances[recipient].add(share.mul(88).add(noBurn)) (#455-457)
LEGO._transfer(address,address,uint256) (#422-473) performs a multiplication on the result of a division:
-share = amount.div(100) (#451)
-Transfer(sender,recipient,share.mul(88).add(noBurn)) (#458)
LEGO._transfer(address,address,uint256) (#422-473) performs a multiplication on the result of a division:
-share = amount.div(100) (#451)
-_balances[marketAddress] = _balances[marketAddress].add(share.mul(2)) (#460-462)
LEGO._transfer(address,address,uint256) (#422-473) performs a multiplication on the result of a division:
-share = amount.div(100) (#451)
-Transfer(sender,marketAddress,share.mul(2)) (#463)
LEGO._transfer(address,address,uint256) (#422-473) performs a multiplication on the result of a division:
-share = amount.div(100) (#451)
-_balances[rewardAddress] = _balances[rewardAddress].add(share.mul(6)) (#465-467)
LEGO._transfer(address,address,uint256) (#422-473) performs a multiplication on the result of a division:
-share = amount.div(100) (#451)
-Transfer(sender,rewardAddress,share.mul(6)) (#468)
Consider ordering multiplication before division.
Additional information: link
LEGO.allowance(address,address).owner (#342) shadows:
- Ownable.owner() (#244-246) (function)
LEGO._approve(address,address,uint256).owner (#404) shadows:
- Ownable.owner() (#244-246) (function)
Rename the local variables that shadow another component.
Additional information: link
LEGO.setTxlimitByBnb(uint256) (#500-502) should emit an event for:
- txlimitByBnb = _txLimitByBnb (#501)
LEGO.setStartTime(uint256) (#520-522) should emit an event for:
- startTime = _startTime (#521)
LEGO.setLimitTime(uint256) (#524-526) should emit an event for:
- limitTime = _limitTime (#525)
Emit an event for critical parameter changes.
Additional information: link
LEGO.setMarketAddress(address)._marketAddress (#496) lacks a zero-check on :
- marketAddress = _marketAddress (#497)
LEGO.setRewardAddress(address)._rewardAddress (#504) lacks a zero-check on :
- rewardAddress = _rewardAddress (#505)
LEGO.setPair(address).pair (#528) lacks a zero-check on :
- _pair = pair (#529)
Check that the address is not zero.
Additional information: link
Reentrancy in LEGO.constructor() (#302-314):
External calls:
- _pair = IPancakeFactory(router.factory()).createPair(address(this),router.WETH()) (#307-310)
State variables written after the call(s):
- isExcludedFromFee[owner()] = true (#311)
- isExcludedFromFee[marketAddress] = true (#312)
- isExcludedFromFee[address(this)] = true (#313)
Apply the check-effects-interactions pattern.
Additional information: link
LEGO._transfer(address,address,uint256) (#422-473) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp > startTime,Not yet open) (#431)
- block.timestamp < limitTime (#433)
Avoid relying on block.timestamp.
Additional information: link
SafeMath.mod(uint256,uint256) (#57-59) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#61-68) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version^0.8.0 (#2) allows old versions
solc-0.8.0 is not recommended for deployment
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 IPancakeRouter.WETH() (#125) is not in mixedCase
Parameter LEGO.setMarketAddress(address)._marketAddress (#496) is not in mixedCase
Parameter LEGO.setTxlimitByBnb(uint256)._txLimitByBnb (#500) is not in mixedCase
Parameter LEGO.setRewardAddress(address)._rewardAddress (#504) is not in mixedCase
Parameter LEGO.setStartTime(uint256)._startTime (#520) is not in mixedCase
Parameter LEGO.setLimitTime(uint256)._limitTime (#524) is not in mixedCase
Variable LEGO._router (#286) is not in mixedCase
Variable LEGO._pair (#290) is not in mixedCase
Variable LEGO._maxTxAmount (#292) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IPancakeRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#130) is too similar to IPancakeRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#131)
Prevent variables from having similar names.
Additional information: link
LEGO.slitherConstructorVariables() (#268-559) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#282)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
LEGO._router (#286) should be constant
LEGO.finalSupply (#296) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
waiveOwnership() should be declared external:
- Ownable.waiveOwnership() (#253-256)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#258-265)
name() should be declared external:
- LEGO.name() (#316-318)
symbol() should be declared external:
- LEGO.symbol() (#320-322)
decimals() should be declared external:
- LEGO.decimals() (#324-326)
totalSupply() should be declared external:
- LEGO.totalSupply() (#328-330)
transfer(address,uint256) should be declared external:
- LEGO.transfer(address,uint256) (#332-340)
allowance(address,address) should be declared external:
- LEGO.allowance(address,address) (#342-350)
approve(address,uint256) should be declared external:
- LEGO.approve(address,uint256) (#352-360)
transferFrom(address,address,uint256) should be declared external:
- LEGO.transferFrom(address,address,uint256) (#362-377)
balanceOf(address) should be declared external:
- LEGO.balanceOf(address) (#412-420)
setIsExcludedFromFee(address,bool) should be declared external:
- LEGO.setIsExcludedFromFee(address,bool) (#489-494)
setMarketAddress(address) should be declared external:
- LEGO.setMarketAddress(address) (#496-498)
setTxlimitByBnb(uint256) should be declared external:
- LEGO.setTxlimitByBnb(uint256) (#500-502)
setRewardAddress(address) should be declared external:
- LEGO.setRewardAddress(address) (#504-506)
addswapDKList(address[]) should be declared external:
- LEGO.addswapDKList(address[]) (#508-512)
delswapDKList(address[]) should be declared external:
- LEGO.delswapDKList(address[]) (#514-518)
setStartTime(uint256) should be declared external:
- LEGO.setStartTime(uint256) (#520-522)
setLimitTime(uint256) should be declared external:
- LEGO.setLimitTime(uint256) (#524-526)
setPair(address) should be declared external:
- LEGO.setPair(address) (#528-530)
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 on CoinGecko
Additional information: link
Unable to find token on CoinMarketCap
Additional information: link
Unable to find token contract audit
Unable to verify that token and website are owned by the same team (no listings + unable to find contract on website)
Unable to verify token contract address on the website
Unable to find audit link on the website
Unable to find whitepaper link on the website
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
Young tokens have high risks of price dump / death
Unable to find Youtube account