LuckyToken is a BSC provably fair casino.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
LuckyToken.addLiquidity(uint256,uint256) (#1783-1798) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1789-1796)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (#940-965):
External calls:
- (success) = user.call{gas: 3000,value: _withdrawableDividend}() (#948)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (#951)
Apply the check-effects-interactions pattern.
Additional information: link
LuckyToken.holderBNBUsedForBuyBacks (#1248) is never initialized. It is used in:
- LuckyToken.getBNBAvailableForHolderBuyBack(address) (#1618-1620)
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 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.
Variable 'LuckyToken._transfer(address,address,uint256).claims (#1720)' in LuckyToken._transfer(address,address,uint256) (#1649-1726) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1721)
Move all variable declarations prior to any usage of the variable, and ensure that reaching a variable declaration does not depend on some conditional if it is used unconditionally.
Additional information: link
Reentrancy in DividendPayingToken.swapETHForTokens(address,uint256) (#813-854):
External calls:
- swapRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(1,path,address(recipient),block.timestamp + 360) (#832-842)
- (success) = recipient.call{gas: 3000,value: ethAmount}() (#846)
State variables written after the call(s):
- withdrawnDividends[recipient] = withdrawnDividends[recipient].sub(ethAmount) (#849)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in LuckyToken.updateDividendTracker(address) (#1409-1425):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1416)
- newDividendTracker.excludeFromDividends(address(this)) (#1417)
- newDividendTracker.excludeFromDividends(owner()) (#1418)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1419)
- newDividendTracker.excludeFromDividends(address(0xdead)) (#1420)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (#1422)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in LuckyToken.updateDividendTracker(address) (#1409-1425):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1416)
- newDividendTracker.excludeFromDividends(address(this)) (#1417)
- newDividendTracker.excludeFromDividends(owner()) (#1418)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1419)
- newDividendTracker.excludeFromDividends(address(0xdead)) (#1420)
State variables written after the call(s):
- dividendTracker = newDividendTracker (#1424)
Apply the check-effects-interactions pattern.
Additional information: link
DividendPayingToken.swapETHForTokens(address,uint256).swapSuccess (#818) is a local variable never initialized
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
LuckyToken.addLiquidity(uint256,uint256) (#1783-1798) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1789-1796)
Ensure that all the return values of the function calls are used.
Additional information: link
LuckyToken.constructor().totalSupply (#1349) shadows:
- ERC20.totalSupply() (#532-534) (function)
- IERC20.totalSupply() (#99) (function)
Rename the local variables that shadow another component.
Additional information: link
LuckyToken.updateFees(uint256,uint256,uint256) (#1494-1500) should emit an event for:
- operationsFee = _operationsFee (#1495)
- rewardsFee = _rewardsFee (#1496)
- liquidityFee = _liquidityFee (#1497)
- totalFees = operationsFee + rewardsFee + liquidityFee (#1498)
Emit an event for critical parameter changes.
Additional information: link
LuckyToken.airdropToWallets(address[],uint256[]) (#1468-1476) has external calls inside a loop: dividendTracker.setBalance(address(wallet),balanceOf(wallet)) (#1474)
Favor pull over push strategy for external calls.
Additional information: link
DividendTracker.canAutoClaim(uint256) (#2001-2007) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#2002)
- block.timestamp.sub(lastClaimTime) >= claimWait (#2006)
Avoid relying on block.timestamp.
Additional information: link
LuckyToken.isContract(address) (#1533-1542) uses assembly
- INLINE ASM (#1540)
Do not use evm assembly.
Additional information: link
DividendPayingToken.setRewardToken(address,address,address) (#873-891) compares to a boolean constant:
-userHasCustomRewardToken[holder] == true (#874)
Remove the equality to the boolean constant.
Additional information: link
SafeMathInt.mul(int256,int256) (#261-268) is never used and should be removed
Remove unused functions.
Additional information: link
solc-0.8.9 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 LuckyToken.recoverExcess(uint256) (#1801-1807):
- (success) = address(operationsWallet).call{value: amount}() (#1803)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Parameter DividendTracker.getAccount(address)._account (#1937) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#34)" inContext (#28-37)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#941) is too similar to DividendTracker.getAccount(address).withdrawableDividends (#1942)
Prevent variables from having similar names.
Additional information: link
DividendTracker.getAccountAtIndex(uint256) (#1982-1999) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (#1993)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
SafeMathInt.MAX_INT256 (#256) is never used in SafeMathInt (#254-312)
Remove unused state variables.
Additional information: link
LuckyToken.sellFeeIncreaseFactor (#1271) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
size(IterableMapping.Map) should be declared external:
- IterableMapping.size(IterableMapping.Map) (#1836-1838)
Use the external attribute for functions never called from the contract.
Additional information: link
Average 30d PancakeSwap volume is low.
Average PancakeSwap trading volume, liqudity, number of swaps are low. Token seems to be inactive.
Token is deployed only at one blockchain
Token has only one trading pair
Unable to find PancakeSwap trading pair to compute liquidity.
Unable to find PancakeSwap trading pair to compute number of swaps.
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 Twitter link on the website
Unable to find token on CoinHunt
Additional information: link
Unable to find code repository for the project
Young tokens have high risks of price dump / death
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of price dump / death
Token has relatively low CoinGecko rank
Token has relatively low CoinMarketCap rank
Twitter account link seems to be invalid
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account