Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
LossLessCasinoToken.swapBack() (#591-635) sends eth to arbitrary user
Dangerous calls:
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#619)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in LossLessCasinoToken._transferFrom(address,address,uint256) (#485-534):
External calls:
- swapBack() (#513)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#602-608)
- distributor.deposit{value: amountBNBReflection}() (#618)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#619)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#625-632)
External calls sending eth:
- swapBack() (#513)
- distributor.deposit{value: amountBNBReflection}() (#618)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#619)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#625-632)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#516)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#519)
- amountReceived = takeFee(sender,amount) (#518)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#554)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.distributeDividend(address) (#313-324) ignores return value by LTC.transfer(shareholder,amount) (#319)
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.
LossLessCasinoToken.swapBack().tmpSuccess (#619) is written in both
(tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#619)
tmpSuccess = false (#622)
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.
Contract ticker (LossLessCasinoToken) has length of 19 chars.
Not a direct threat, but may indicate unreliable intentions of developer.
Reentrancy in DividendDistributor.distributeDividend(address) (#313-324):
External calls:
- LTC.transfer(shareholder,amount) (#319)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised.add(amount) (#321)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#322)
Reentrancy in DividendDistributor.process(uint256) (#282-306):
External calls:
- distributeDividend(shareholders[currentIndex]) (#298)
- LTC.transfer(shareholder,amount) (#319)
State variables written after the call(s):
- currentIndex ++ (#303)
Reentrancy in DividendDistributor.setShare(address,uint256) (#246-260):
External calls:
- distributeDividend(shareholder) (#248)
- LTC.transfer(shareholder,amount) (#319)
State variables written after the call(s):
- shares[shareholder].amount = amount (#258)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#259)
Apply the check-effects-interactions pattern.
Additional information: link
LossLessCasinoToken.swapBack() (#591-635) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#625-632)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendDistributor.setDistributionCriteria(uint256,uint256) (#241-244) should emit an event for:
- minPeriod = _minPeriod (#242)
- minDistribution = _minDistribution (#243)
LossLessCasinoToken.setTxLimit(uint256) (#638-640) should emit an event for:
- _maxTxAmount = amount (#639)
LossLessCasinoToken.setFees(uint256,uint256,uint256,uint256) (#664-671) should emit an event for:
- liquidityFee = _liquidityFee (#665)
- reflectionFee = _reflectionFee (#666)
- marketingFee = _marketingFee (#667)
- totalFee = _liquidityFee.add(_reflectionFee).add(_marketingFee) (#668)
- feeDenominator = _feeDenominator (#669)
LossLessCasinoToken.setSwapBackSettings(bool,uint256) (#678-681) should emit an event for:
- swapThreshold = _amount (#680)
LossLessCasinoToken.setTargetLiquidity(uint256,uint256) (#683-686) should emit an event for:
- targetLiquidity = _target (#684)
- targetLiquidityDenominator = _denominator (#685)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#118) lacks a zero-check on :
- owner = adr (#119)
LossLessCasinoToken.setFeeReceivers(address,address)._autoLiquidityReceiver (#673) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (#674)
LossLessCasinoToken.setFeeReceivers(address,address)._marketingFeeReceiver (#673) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#675)
Check that the address is not zero.
Additional information: link
DividendDistributor.distributeDividend(address) (#313-324) has external calls inside a loop: LTC.transfer(shareholder,amount) (#319)
LossLessCasinoToken.airdrop(address,address[],uint256[]) (#718-741) has external calls inside a loop: distributor.setShare(addresses[i_scope_0],_balances[addresses[i_scope_0]]) (#733)
Favor pull over push strategy for external calls.
Additional information: link
Reentrancy in LossLessCasinoToken.constructor() (#415-446):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#418)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = uint256(- 1) (#419)
- _balances[msg.sender] = _totalSupply (#444)
- autoLiquidityReceiver = DEAD (#441)
- distributor = new DividendDistributor(address(router)) (#421)
- isDividendExempt[pair] = true (#436)
- isDividendExempt[address(this)] = true (#437)
- isDividendExempt[DEAD] = true (#438)
- isFeeExempt[msg.sender] = true (#423)
- isTimelockExempt[msg.sender] = true (#427)
- isTimelockExempt[DEAD] = true (#428)
- isTimelockExempt[address(this)] = true (#429)
- isTxLimitExempt[msg.sender] = true (#424)
- marketingFeeReceiver = msg.sender (#442)
Reentrancy in DividendDistributor.deposit() (#262-280):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp) (#269-274)
State variables written after the call(s):
- dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares)) (#279)
- totalDividends = totalDividends.add(amount) (#278)
Reentrancy in DividendDistributor.distributeDividend(address) (#313-324):
External calls:
- LTC.transfer(shareholder,amount) (#319)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (#320)
Reentrancy in DividendDistributor.setShare(address,uint256) (#246-260):
External calls:
- distributeDividend(shareholder) (#248)
- LTC.transfer(shareholder,amount) (#319)
State variables written after the call(s):
- addShareholder(shareholder) (#252)
- shareholderIndexes[shareholder] = shareholders.length (#346)
- removeShareholder(shareholder) (#254)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#352)
- addShareholder(shareholder) (#252)
- shareholders.push(shareholder) (#347)
- removeShareholder(shareholder) (#254)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#351)
- shareholders.pop() (#353)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (#257)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in LossLessCasinoToken._transferFrom(address,address,uint256) (#485-534):
External calls:
- swapBack() (#513)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#602-608)
- distributor.deposit{value: amountBNBReflection}() (#618)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#619)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#625-632)
- distributor.setShare(sender,_balances[sender]) (#523)
- distributor.setShare(recipient,_balances[recipient]) (#527)
- distributor.process(distributorGas) (#530)
External calls sending eth:
- swapBack() (#513)
- distributor.deposit{value: amountBNBReflection}() (#618)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#619)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#625-632)
Event emitted after the call(s):
- Transfer(sender,recipient,amountReceived) (#532)
Reentrancy in LossLessCasinoToken._transferFrom(address,address,uint256) (#485-534):
External calls:
- swapBack() (#513)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#602-608)
- distributor.deposit{value: amountBNBReflection}() (#618)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#619)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#625-632)
External calls sending eth:
- swapBack() (#513)
- distributor.deposit{value: amountBNBReflection}() (#618)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#619)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#625-632)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#555)
- amountReceived = takeFee(sender,amount) (#518)
Reentrancy in LossLessCasinoToken.constructor() (#415-446):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#418)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#445)
Reentrancy in LossLessCasinoToken.swapBack() (#591-635):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#602-608)
- distributor.deposit{value: amountBNBReflection}() (#618)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#619)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#625-632)
External calls sending eth:
- distributor.deposit{value: amountBNBReflection}() (#618)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#619)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#625-632)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#633)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.shouldDistribute(address) (#308-311) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#309-310)
LossLessCasinoToken._transferFrom(address,address,uint256) (#485-534) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(cooldownTimer[recipient] < block.timestamp,Please wait for cooldown between buys) (#504)
Avoid relying on block.timestamp.
Additional information: link
DividendDistributor.process(uint256) (#282-306) has costly operations inside a loop:
- currentIndex = 0 (#294)
DividendDistributor.distributeDividend(address) (#313-324) has costly operations inside a loop:
- totalDistributed = totalDistributed.add(amount) (#318)
DividendDistributor.process(uint256) (#282-306) has costly operations inside a loop:
- currentIndex ++ (#303)
Use a local variable to hold the loop computation result.
Additional information: link
LossLessCasinoToken._maxTxAmount (#370) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 1 / 100
LossLessCasinoToken._maxWalletToken (#373) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 3) / 100
LossLessCasinoToken.swapThreshold (#411) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 10 / 10000
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 (#1) allows old versions
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 LossLessCasinoToken.swapBack() (#591-635):
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#619)
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() (#133) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minPeriod (#241) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minDistribution (#241) is not in mixedCase
Variable DividendDistributor._token (#189) is not in mixedCase
Variable DividendDistributor.LTC (#197) is not in mixedCase
Variable DividendDistributor.WBNB (#198) is not in mixedCase
Parameter LossLessCasinoToken.tradingStatus(bool)._status (#574) is not in mixedCase
Parameter LossLessCasinoToken.cooldownEnabled(bool,uint8)._status (#579) is not in mixedCase
Parameter LossLessCasinoToken.cooldownEnabled(bool,uint8)._interval (#579) is not in mixedCase
Parameter LossLessCasinoToken.setIsBlacklisted(address[],bool)._wallets (#585) is not in mixedCase
Parameter LossLessCasinoToken.setIsBlacklisted(address[],bool)._bool (#585) is not in mixedCase
Parameter LossLessCasinoToken.setFees(uint256,uint256,uint256,uint256)._liquidityFee (#664) is not in mixedCase
Parameter LossLessCasinoToken.setFees(uint256,uint256,uint256,uint256)._reflectionFee (#664) is not in mixedCase
Parameter LossLessCasinoToken.setFees(uint256,uint256,uint256,uint256)._marketingFee (#664) is not in mixedCase
Parameter LossLessCasinoToken.setFees(uint256,uint256,uint256,uint256)._feeDenominator (#664) is not in mixedCase
Parameter LossLessCasinoToken.setFeeReceivers(address,address)._autoLiquidityReceiver (#673) is not in mixedCase
Parameter LossLessCasinoToken.setFeeReceivers(address,address)._marketingFeeReceiver (#673) is not in mixedCase
Parameter LossLessCasinoToken.setSwapBackSettings(bool,uint256)._enabled (#678) is not in mixedCase
Parameter LossLessCasinoToken.setSwapBackSettings(bool,uint256)._amount (#678) is not in mixedCase
Parameter LossLessCasinoToken.setTargetLiquidity(uint256,uint256)._target (#683) is not in mixedCase
Parameter LossLessCasinoToken.setTargetLiquidity(uint256,uint256)._denominator (#683) is not in mixedCase
Parameter LossLessCasinoToken.setDistributionCriteria(uint256,uint256)._minPeriod (#688) is not in mixedCase
Parameter LossLessCasinoToken.setDistributionCriteria(uint256,uint256)._minDistribution (#688) is not in mixedCase
Parameter LossLessCasinoToken.isBlacklisted(address)._wallet (#701) is not in mixedCase
Variable LossLessCasinoToken.LTC (#360) is not in mixedCase
Variable LossLessCasinoToken.WBNB (#361) is not in mixedCase
Variable LossLessCasinoToken.DEAD (#362) is not in mixedCase
Variable LossLessCasinoToken.ZERO (#363) is not in mixedCase
Constant LossLessCasinoToken._name (#365) is not in UPPER_CASE_WITH_UNDERSCORES
Constant LossLessCasinoToken._symbol (#366) is not in UPPER_CASE_WITH_UNDERSCORES
Constant LossLessCasinoToken._decimals (#367) is not in UPPER_CASE_WITH_UNDERSCORES
Variable LossLessCasinoToken._totalSupply (#369) is not in mixedCase
Variable LossLessCasinoToken._maxTxAmount (#370) is not in mixedCase
Variable LossLessCasinoToken._maxWalletToken (#373) is not in mixedCase
Variable LossLessCasinoToken._balances (#375) is not in mixedCase
Variable LossLessCasinoToken._allowances (#376) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#138) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#139)
Prevent variables from having similar names.
Additional information: link
LossLessCasinoToken.slitherConstructorVariables() (#357-745) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#362)
LossLessCasinoToken.slitherConstructorVariables() (#357-745) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#363)
LossLessCasinoToken.slitherConstructorVariables() (#357-745) uses literals with too many digits:
- distributorGas = 500000 (#403)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
LossLessCasinoToken.LTC (#360) is never used in LossLessCasinoToken (#357-745)
Remove unused state variables.
Additional information: link
DividendDistributor.WBNB (#198) should be constant
DividendDistributor.dividendsPerShareAccuracyFactor (#211) should be constant
LossLessCasinoToken.DEAD (#362) should be constant
LossLessCasinoToken.LTC (#360) should be constant
LossLessCasinoToken.WBNB (#361) should be constant
LossLessCasinoToken.ZERO (#363) should be constant
LossLessCasinoToken._totalSupply (#369) should be constant
LossLessCasinoToken.launchedAt (#399) 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) (#90-92)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#97-99)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#118-122)
tradingStatus(bool) should be declared external:
- LossLessCasinoToken.tradingStatus(bool) (#574-576)
cooldownEnabled(bool,uint8) should be declared external:
- LossLessCasinoToken.cooldownEnabled(bool,uint8) (#579-582)
setIsBlacklisted(address[],bool) should be declared external:
- LossLessCasinoToken.setIsBlacklisted(address[],bool) (#585-589)
isBlacklisted(address) should be declared external:
- LossLessCasinoToken.isBlacklisted(address) (#701-703)
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