LuckyCoin(FOURLEAF) - Just Stealth launched!
Just launched by safe dev, liquidity is locked!
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
FOURLEAF.swapBack() (#618-667) sends eth to arbitrary user
Dangerous calls:
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#649)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#650)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in FOURLEAF._transferFrom(address,address,uint256) (#553-594):
External calls:
- swapBack() (#563)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#628-634)
- dividendDistributor.deposit{value: amountBNBReflection}() (#644)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#649)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#650)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#657-664)
External calls sending eth:
- swapBack() (#563)
- dividendDistributor.deposit{value: amountBNBReflection}() (#644)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#649)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#650)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#657-664)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#571)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#579)
- finalAmount = takeFee(sender,recipient,amount) (#578)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#608)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.distributeDividend(address) (#239-251) ignores return value by RewardToken.transfer(shareholder,amount) (#245)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Too many vulnerabilities (Unchecked transfer, Reentrancy vulnerability, etc.). High risk of a scam. DYOR & manual audit are advised.
FOURLEAF.swapBack().tmpSuccess (#649) is written in both
(tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#649)
tmpSuccess = false (#653)
FOURLEAF.swapBack().tmpSuccess1 (#650) is written in both
(tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#650)
tmpSuccess1 = false (#654)
Fix or remove the writes.
Additional information: link
Combination 1: Reentrancy vulnerabilities + 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.
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.
Combination 3: Reentrancy vulnerabilities + Unchecked transfer vulnerability. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
FOURLEAF._maxTxAmount (#361) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 3 / 100
FOURLEAF._walletMax (#362) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 4 / 100
FOURLEAF.swapThreshold (#398) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 5 / 2000
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
Pragma version^0.7.4 (#8) allows old versions
solc-0.7.4 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
Low level call in FOURLEAF.swapBack() (#618-667):
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#649)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#650)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Reentrancy in DividendDistributor.distributeDividend(address) (#239-251):
External calls:
- RewardToken.transfer(shareholder,amount) (#245)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised.add(amount) (#247)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#248)
Reentrancy in DividendDistributor.process(uint256) (#210-232):
External calls:
- distributeDividend(shareholders[currentIndex]) (#224)
- RewardToken.transfer(shareholder,amount) (#245)
State variables written after the call(s):
- currentIndex ++ (#229)
Reentrancy in DividendDistributor.setShare(address,uint256) (#173-188):
External calls:
- distributeDividend(shareholder) (#176)
- RewardToken.transfer(shareholder,amount) (#245)
State variables written after the call(s):
- shares[shareholder].amount = amount (#186)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#187)
Apply the check-effects-interactions pattern.
Additional information: link
FOURLEAF.swapBack() (#618-667) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#657-664)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendDistributor.setDistributionCriteria(uint256,uint256) (#168-171) should emit an event for:
- minPeriod = newMinPeriod (#169)
- minDistribution = newMinDistribution (#170)
FOURLEAF.changeFees(uint256,uint256,uint256,uint256) (#510-518) should emit an event for:
- liquidityFee = newLiqFee (#511)
- rewardsFee = newRewardFee (#512)
- totalFee = liquidityFee.add(marketingFee).add(rewardsFee) (#516)
- totalFeeIfSelling = totalFee.add(extraFeeOnSell) (#517)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#338) lacks a zero-check on :
- owner = adr (#339)
FOURLEAF.changeFeeReceivers(address,address,address).newLiquidityReceiver (#520) lacks a zero-check on :
- autoLiquidityReceiver = newLiquidityReceiver (#521)
FOURLEAF.changeFeeReceivers(address,address,address).newMarketingWallet (#520) lacks a zero-check on :
- marketingWallet = newMarketingWallet (#522)
FOURLEAF.changeFeeReceivers(address,address,address).newanothermarketingWallet (#520) lacks a zero-check on :
- anothermarketingWallet = newanothermarketingWallet (#523)
Check that the address is not zero.
Additional information: link
DividendDistributor.distributeDividend(address) (#239-251) has external calls inside a loop: RewardToken.transfer(shareholder,amount) (#245)
Favor pull over push strategy for external calls.
Additional information: link
Reentrancy in FOURLEAF._transferFrom(address,address,uint256) (#553-594):
External calls:
- swapBack() (#563)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#628-634)
- dividendDistributor.deposit{value: amountBNBReflection}() (#644)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#649)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#650)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#657-664)
External calls sending eth:
- swapBack() (#563)
- dividendDistributor.deposit{value: amountBNBReflection}() (#644)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#649)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#650)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#657-664)
State variables written after the call(s):
- launch() (#567)
- launchedAt = block.number (#476)
Reentrancy in FOURLEAF.constructor() (#406-438):
External calls:
- pair = IDEXFactory(router.factory()).createPair(router.WETH(),address(this)) (#409)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = uint256(- 1) (#410)
- _balances[msg.sender] = _totalSupply (#436)
- anothermarketingWallet = 0x445c6d4ac43617433e0F4aa5D65a1FBD68B3D66c (#431)
- autoLiquidityReceiver = msg.sender (#429)
- dividendDistributor = new DividendDistributor(address(router)) (#412)
- isDividendExempt[pair] = true (#422)
- isDividendExempt[address(this)] = true (#424)
- isDividendExempt[DEAD] = true (#425)
- isDividendExempt[ZERO] = true (#426)
- isFeeExempt[msg.sender] = true (#414)
- isFeeExempt[address(this)] = true (#415)
- isFeeExempt[anothermarketingWallet] = true (#416)
- isTxLimitExempt[msg.sender] = true (#418)
- isTxLimitExempt[pair] = true (#419)
- isTxLimitExempt[DEAD] = true (#420)
- marketingWallet = msg.sender (#430)
- totalFee = liquidityFee.add(marketingFee).add(rewardsFee) (#433)
- totalFeeIfSelling = totalFee.add(extraFeeOnSell) (#434)
Reentrancy in DividendDistributor.deposit() (#190-208):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp) (#198-203)
State variables written after the call(s):
- dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares)) (#207)
- totalDividends = totalDividends.add(amount) (#206)
Reentrancy in DividendDistributor.distributeDividend(address) (#239-251):
External calls:
- RewardToken.transfer(shareholder,amount) (#245)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (#246)
Reentrancy in DividendDistributor.setShare(address,uint256) (#173-188):
External calls:
- distributeDividend(shareholder) (#176)
- RewardToken.transfer(shareholder,amount) (#245)
State variables written after the call(s):
- addShareholder(shareholder) (#180)
- shareholderIndexes[shareholder] = shareholders.length (#269)
- removeShareholder(shareholder) (#182)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#275)
- addShareholder(shareholder) (#180)
- shareholders.push(shareholder) (#270)
- removeShareholder(shareholder) (#182)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#274)
- shareholders.pop() (#276)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (#185)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in FOURLEAF._transferFrom(address,address,uint256) (#553-594):
External calls:
- swapBack() (#563)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#628-634)
- dividendDistributor.deposit{value: amountBNBReflection}() (#644)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#649)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#650)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#657-664)
- dividendDistributor.setShare(sender,_balances[sender]) (#583)
- dividendDistributor.setShare(recipient,_balances[recipient]) (#587)
- dividendDistributor.process(distributorGas) (#590)
External calls sending eth:
- swapBack() (#563)
- dividendDistributor.deposit{value: amountBNBReflection}() (#644)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#649)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#650)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#657-664)
Event emitted after the call(s):
- Transfer(sender,recipient,finalAmount) (#592)
Reentrancy in FOURLEAF._transferFrom(address,address,uint256) (#553-594):
External calls:
- swapBack() (#563)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#628-634)
- dividendDistributor.deposit{value: amountBNBReflection}() (#644)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#649)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#650)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#657-664)
External calls sending eth:
- swapBack() (#563)
- dividendDistributor.deposit{value: amountBNBReflection}() (#644)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#649)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#650)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#657-664)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#609)
- finalAmount = takeFee(sender,recipient,amount) (#578)
Reentrancy in FOURLEAF.constructor() (#406-438):
External calls:
- pair = IDEXFactory(router.factory()).createPair(router.WETH(),address(this)) (#409)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#437)
Reentrancy in FOURLEAF.swapBack() (#618-667):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#628-634)
- dividendDistributor.deposit{value: amountBNBReflection}() (#644)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#649)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#650)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#657-664)
External calls sending eth:
- dividendDistributor.deposit{value: amountBNBReflection}() (#644)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#649)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#650)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#657-664)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#665)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.shouldDistribute(address) (#234-237) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#235-236)
Avoid relying on block.timestamp.
Additional information: link
DividendDistributor.process(uint256) (#210-232) has costly operations inside a loop:
- currentIndex = 0 (#221)
DividendDistributor.distributeDividend(address) (#239-251) has costly operations inside a loop:
- totalDistributed = totalDistributed.add(amount) (#244)
DividendDistributor.process(uint256) (#210-232) has costly operations inside a loop:
- currentIndex ++ (#229)
Use a local variable to hold the loop computation result.
Additional information: link
Function IDEXRouter.WETH() (#67) is not in mixedCase
Variable DividendDistributor._token (#124) is not in mixedCase
Variable DividendDistributor.RewardToken (#134) is not in mixedCase
Constant FOURLEAF._name (#351) is not in UPPER_CASE_WITH_UNDERSCORES
Constant FOURLEAF._symbol (#352) is not in UPPER_CASE_WITH_UNDERSCORES
Constant FOURLEAF._decimals (#353) is not in UPPER_CASE_WITH_UNDERSCORES
Variable FOURLEAF.DEAD (#355) is not in mixedCase
Variable FOURLEAF.ZERO (#356) is not in mixedCase
Variable FOURLEAF.RewardToken (#358) is not in mixedCase
Variable FOURLEAF._totalSupply (#360) is not in mixedCase
Variable FOURLEAF._maxTxAmount (#361) is not in mixedCase
Variable FOURLEAF._walletMax (#362) is not in mixedCase
Variable FOURLEAF._balances (#366) is not in mixedCase
Variable FOURLEAF._allowances (#367) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#72) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#73)
Prevent variables from having similar names.
Additional information: link
FOURLEAF.slitherConstructorVariables() (#347-672) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#355)
FOURLEAF.slitherConstructorVariables() (#347-672) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#356)
FOURLEAF.slitherConstructorVariables() (#347-672) uses literals with too many digits:
- _totalSupply = 1000000 * (10 ** _decimals) (#360)
FOURLEAF.slitherConstructorVariables() (#347-672) uses literals with too many digits:
- distributorGas = 300000 (#392)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
FOURLEAF.RewardToken (#358) is never used in FOURLEAF (#347-672)
Remove unused state variables.
Additional information: link
DividendDistributor.dividendsPerShareAccuracyFactor (#145) should be constant
DividendDistributor.routerAddress (#133) should be constant
FOURLEAF.DEAD (#355) should be constant
FOURLEAF.RewardToken (#358) should be constant
FOURLEAF.ZERO (#356) should be constant
FOURLEAF._totalSupply (#360) should be constant
FOURLEAF.routerAddress (#357) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
authorize(address) should be declared external:
- Auth.authorize(address) (#310-312)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#317-319)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#338-342)
getCirculatingSupply() should be declared external:
- FOURLEAF.getCirculatingSupply() (#448-450)
claim() should be declared external:
- FOURLEAF.claim() (#466-469)
tradingStatus(bool) should be declared external:
- FOURLEAF.tradingStatus(bool) (#614-616)
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