We are building the first MultiChain Jackpot game.
LuckyCash is developing a multichain jackpot game with a chance for everyone to win in one way or an other. Our focus is to develop fairness in games and competitions where every player and entrant has better win odds while providing a solid rewards strategy for token holders.
A fully permissionless DeFi-powered play-to-earn DApp!
Our goal is to build with our partners the infrastructure that allows official lotteries to be more circular, with near-zero operating and maintenance cost, in a format designed for the blockchain age ensuring both traditional lottery players and blockchain-enthusiasts enjoy the future, today, while empowering players and maintaining the traditional elements.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
LuckyCash.swapBack() (#357-402) sends eth to arbitrary user
Dangerous calls:
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#385)
- (tmpSuccess,None) = address(LotteryFeeReceiver).call{gas: 30000,value: amountBNBLottery}() (#386)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBdevFee}() (#387)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in LuckyCash._transferFrom(address,address,uint256) (#277-308):
External calls:
- swapBack() (#298)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#368-374)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#385)
- (tmpSuccess,None) = address(LotteryFeeReceiver).call{gas: 30000,value: amountBNBLottery}() (#386)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBdevFee}() (#387)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#392-399)
External calls sending eth:
- swapBack() (#298)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#385)
- (tmpSuccess,None) = address(LotteryFeeReceiver).call{gas: 30000,value: amountBNBLottery}() (#386)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBdevFee}() (#387)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#392-399)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#301)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#304)
- amountReceived = takeFee(sender,amount,recipient) (#303)
- _balances[address(this)] = _balances[address(this)].add(contractTokens) (#339)
- _balances[utilityFeeReceiver] = _balances[utilityFeeReceiver].add(utilityTokens) (#340)
Apply the check-effects-interactions pattern.
Additional information: link
Contract ownership is not renounced (belongs to a wallet)
LuckyCash.swapBack().tmpSuccess (#385) is written in both
(tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#385)
(tmpSuccess,None) = address(LotteryFeeReceiver).call{gas: 30000,value: amountBNBLottery}() (#386)
LuckyCash.swapBack().tmpSuccess (#385) is written in both
(tmpSuccess,None) = address(LotteryFeeReceiver).call{gas: 30000,value: amountBNBLottery}() (#386)
(tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBdevFee}() (#387)
LuckyCash.swapBack().tmpSuccess (#385) is written in both
(tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBdevFee}() (#387)
tmpSuccess = false (#389)
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.
LuckyCash.takeFee(address,uint256,address) (#325-348) performs a multiplication on the result of a division:
-feeAmount = amount.mul(totalFee).mul(multiplier).div(feeDenominator * 100) (#334)
-utilityTokens = feeAmount.mul(utilityFee).div(totalFee) (#336)
Consider ordering multiplication before division.
Additional information: link
LuckyCash.manage_WalletLimitExempt(address[],bool).i (#462) is a local variable never initialized
LuckyCash.manage_TxLimitExempt(address[],bool).i (#455) is a local variable never initialized
LuckyCash.manage_blacklist(address[],bool).i (#441) is a local variable never initialized
LuckyCash.manage_FeeExempt(address[],bool).i (#448) 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
LuckyCash.swapBack() (#357-402) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#392-399)
Ensure that all the return values of the function calls are used.
Additional information: link
LuckyCash.setMaxTxPercent_base1000(uint256) (#408-410) should emit an event for:
- _maxTxAmount = (_totalSupply * maxTXPercentage_base1000) / 1000 (#409)
LuckyCash.setMaxTxAbsolute(uint256) (#412-414) should emit an event for:
- _maxTxAmount = amount (#413)
LuckyCash.setMultipliers(uint256,uint256,uint256) (#421-425) should emit an event for:
- sellMultiplier = _sell (#422)
- buyMultiplier = _buy (#423)
- transferMultiplier = _trans (#424)
LuckyCash.setFees(uint256,uint256,uint256,uint256,uint256,uint256) (#480-489) should emit an event for:
- liquidityFee = _liquidityFee (#481)
- devFee = _devFee (#482)
- marketingFee = _marketingFee (#483)
- LotteryFee = _LotteryFee (#484)
- utilityFee = _utilityFee (#485)
- totalFee = _liquidityFee.add(_devFee).add(_marketingFee).add(_LotteryFee).add(_utilityFee) (#486)
- feeDenominator = _feeDenominator (#487)
LuckyCash.setSwapBackSettings(bool,uint256) (#499-502) should emit an event for:
- swapThreshold = _amount (#501)
LuckyCash.setTargetLiquidity(uint256,uint256) (#504-507) should emit an event for:
- targetLiquidity = _target (#505)
- targetLiquidityDenominator = _denominator (#506)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#99) lacks a zero-check on :
- owner = adr (#100)
LuckyCash.setFeeReceivers(address,address,address,address,address)._autoLiquidityReceiver (#491) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (#492)
LuckyCash.setFeeReceivers(address,address,address,address,address)._marketingFeeReceiver (#491) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#493)
LuckyCash.setFeeReceivers(address,address,address,address,address)._LotteryFeeReceiver (#491) lacks a zero-check on :
- LotteryFeeReceiver = _LotteryFeeReceiver (#494)
LuckyCash.setFeeReceivers(address,address,address,address,address)._utilityFeeReceiver (#491) lacks a zero-check on :
- utilityFeeReceiver = _utilityFeeReceiver (#495)
LuckyCash.setFeeReceivers(address,address,address,address,address)._devFeeReceiver (#491) lacks a zero-check on :
- devFeeReceiver = _devFeeReceiver (#496)
Check that the address is not zero.
Additional information: link
Reentrancy in LuckyCash.constructor() (#218-243):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#220)
State variables written after the call(s):
- LotteryFeeReceiver = 0xd3D2E0eCe59f768baE205d42E5908EbAe9949D3C (#226)
- _allowances[address(this)][address(router)] = type()(uint256).max (#222)
- _balances[msg.sender] = _totalSupply (#241)
- autoLiquidityReceiver = 0x375bC77B4E53980659Ef2D78cEA454b87584fBaE (#224)
- devFeeReceiver = 0x375bC77B4E53980659Ef2D78cEA454b87584fBaE (#227)
- isFeeExempt[msg.sender] = true (#230)
- isTxLimitExempt[msg.sender] = true (#232)
- isTxLimitExempt[DEAD] = true (#233)
- isTxLimitExempt[ZERO] = true (#234)
- isWalletLimitExempt[msg.sender] = true (#236)
- isWalletLimitExempt[address(this)] = true (#237)
- isWalletLimitExempt[DEAD] = true (#238)
- isWalletLimitExempt[utilityFeeReceiver] = true (#239)
- marketingFeeReceiver = 0xD2423F5b4aF9f1a16fd200a53B5fd5192B405Ab4 (#225)
- utilityFeeReceiver = 0x375bC77B4E53980659Ef2D78cEA454b87584fBaE (#228)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in LuckyCash._transferFrom(address,address,uint256) (#277-308):
External calls:
- swapBack() (#298)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#368-374)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#385)
- (tmpSuccess,None) = address(LotteryFeeReceiver).call{gas: 30000,value: amountBNBLottery}() (#386)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBdevFee}() (#387)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#392-399)
External calls sending eth:
- swapBack() (#298)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#385)
- (tmpSuccess,None) = address(LotteryFeeReceiver).call{gas: 30000,value: amountBNBLottery}() (#386)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBdevFee}() (#387)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#392-399)
Event emitted after the call(s):
- Transfer(sender,address(this),contractTokens) (#341)
- amountReceived = takeFee(sender,amount,recipient) (#303)
- Transfer(sender,utilityFeeReceiver,utilityTokens) (#344)
- amountReceived = takeFee(sender,amount,recipient) (#303)
- Transfer(sender,recipient,amountReceived) (#306)
Reentrancy in LuckyCash.constructor() (#218-243):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#220)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#242)
Reentrancy in LuckyCash.swapBack() (#357-402):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#368-374)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#385)
- (tmpSuccess,None) = address(LotteryFeeReceiver).call{gas: 30000,value: amountBNBLottery}() (#386)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBdevFee}() (#387)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#392-399)
External calls sending eth:
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#385)
- (tmpSuccess,None) = address(LotteryFeeReceiver).call{gas: 30000,value: amountBNBLottery}() (#386)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBdevFee}() (#387)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#392-399)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#400)
Apply the check-effects-interactions pattern.
Additional information: link
LuckyCash._maxTxAmount (#173) is set pre-construction with a non-constant function or state variable:
- _totalSupply / 100
LuckyCash._maxWalletToken (#174) is set pre-construction with a non-constant function or state variable:
- _totalSupply / 50
LuckyCash.totalFee (#191) is set pre-construction with a non-constant function or state variable:
- devFee + marketingFee + liquidityFee + LotteryFee + utilityFee
LuckyCash.swapThreshold (#214) is set pre-construction with a non-constant function or state variable:
- _totalSupply / 1000
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.8.9 (#6) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
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 LuckyCash.swapBack() (#357-402):
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#385)
- (tmpSuccess,None) = address(LotteryFeeReceiver).call{gas: 30000,value: amountBNBLottery}() (#386)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBdevFee}() (#387)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IDEXRouter.WETH() (#114) is not in mixedCase
Function LuckyCash.setMaxWalletPercent_base1000(uint256) (#405-407) is not in mixedCase
Parameter LuckyCash.setMaxWalletPercent_base1000(uint256).maxWallPercent_base1000 (#405) is not in mixedCase
Function LuckyCash.setMaxTxPercent_base1000(uint256) (#408-410) is not in mixedCase
Parameter LuckyCash.setMaxTxPercent_base1000(uint256).maxTXPercentage_base1000 (#408) is not in mixedCase
Parameter LuckyCash.setMultipliers(uint256,uint256,uint256)._buy (#421) is not in mixedCase
Parameter LuckyCash.setMultipliers(uint256,uint256,uint256)._sell (#421) is not in mixedCase
Parameter LuckyCash.setMultipliers(uint256,uint256,uint256)._trans (#421) is not in mixedCase
Parameter LuckyCash.tradingStatus(bool)._status (#427) is not in mixedCase
Function LuckyCash.tradingStatus_antibot(bool) (#431-433) is not in mixedCase
Parameter LuckyCash.tradingStatus_antibot(bool)._status (#431) is not in mixedCase
Function LuckyCash.manage_blacklist_status(bool) (#435-437) is not in mixedCase
Parameter LuckyCash.manage_blacklist_status(bool)._status (#435) is not in mixedCase
Function LuckyCash.manage_blacklist(address[],bool) (#439-444) is not in mixedCase
Function LuckyCash.manage_FeeExempt(address[],bool) (#446-451) is not in mixedCase
Function LuckyCash.manage_TxLimitExempt(address[],bool) (#453-458) is not in mixedCase
Function LuckyCash.manage_WalletLimitExempt(address[],bool) (#460-465) is not in mixedCase
Parameter LuckyCash.setFees(uint256,uint256,uint256,uint256,uint256,uint256)._liquidityFee (#480) is not in mixedCase
Parameter LuckyCash.setFees(uint256,uint256,uint256,uint256,uint256,uint256)._devFee (#480) is not in mixedCase
Parameter LuckyCash.setFees(uint256,uint256,uint256,uint256,uint256,uint256)._marketingFee (#480) is not in mixedCase
Parameter LuckyCash.setFees(uint256,uint256,uint256,uint256,uint256,uint256)._LotteryFee (#480) is not in mixedCase
Parameter LuckyCash.setFees(uint256,uint256,uint256,uint256,uint256,uint256)._utilityFee (#480) is not in mixedCase
Parameter LuckyCash.setFees(uint256,uint256,uint256,uint256,uint256,uint256)._feeDenominator (#480) is not in mixedCase
Parameter LuckyCash.setFeeReceivers(address,address,address,address,address)._autoLiquidityReceiver (#491) is not in mixedCase
Parameter LuckyCash.setFeeReceivers(address,address,address,address,address)._marketingFeeReceiver (#491) is not in mixedCase
Parameter LuckyCash.setFeeReceivers(address,address,address,address,address)._LotteryFeeReceiver (#491) is not in mixedCase
Parameter LuckyCash.setFeeReceivers(address,address,address,address,address)._utilityFeeReceiver (#491) is not in mixedCase
Parameter LuckyCash.setFeeReceivers(address,address,address,address,address)._devFeeReceiver (#491) is not in mixedCase
Parameter LuckyCash.setSwapBackSettings(bool,uint256)._enabled (#499) is not in mixedCase
Parameter LuckyCash.setSwapBackSettings(bool,uint256)._amount (#499) is not in mixedCase
Parameter LuckyCash.setTargetLiquidity(uint256,uint256)._target (#504) is not in mixedCase
Parameter LuckyCash.setTargetLiquidity(uint256,uint256)._denominator (#504) is not in mixedCase
Variable LuckyCash.WBNB (#163) is not in mixedCase
Variable LuckyCash.DEAD (#164) is not in mixedCase
Variable LuckyCash.ZERO (#165) is not in mixedCase
Constant LuckyCash._name (#167) is not in UPPER_CASE_WITH_UNDERSCORES
Constant LuckyCash._symbol (#168) is not in UPPER_CASE_WITH_UNDERSCORES
Constant LuckyCash._decimals (#169) is not in UPPER_CASE_WITH_UNDERSCORES
Variable LuckyCash._totalSupply (#171) is not in mixedCase
Variable LuckyCash._maxTxAmount (#173) is not in mixedCase
Variable LuckyCash._maxWalletToken (#174) is not in mixedCase
Variable LuckyCash._balances (#176) is not in mixedCase
Variable LuckyCash._allowances (#177) is not in mixedCase
Variable LuckyCash.LotteryFee (#188) is not in mixedCase
Variable LuckyCash.LotteryFeeReceiver (#200) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#119) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#120)
Prevent variables from having similar names.
Additional information: link
LuckyCash.slitherConstructorVariables() (#160-542) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#164)
LuckyCash.slitherConstructorVariables() (#160-542) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#165)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
LuckyCash.DEAD (#164) should be constant
LuckyCash.WBNB (#163) should be constant
LuckyCash.ZERO (#165) should be constant
LuckyCash._totalSupply (#171) 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) (#83-85)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#87-89)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#99-103)
Use the external attribute for functions never called from the contract.
Additional information: link
Contract has 9% buy tax and 28% sell tax.
Taxes are suspiciously high (over 10%) and contract ownership is not renounced. Token has a high risk of becoming a honeypot.
Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive. Ignore for presale.
Average 30d PancakeSwap liquidity is low.
Average 30d PancakeSwap volume is low.
Average 30d number of PancakeSwap swaps is low.
Token is deployed only at one blockchain
Token has only one trading pair
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/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 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
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Twitter account has less than 100 followers
Telegram account has relatively few subscribers
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account
Twitter account has few posts