Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Smoking.swapBack() (#647-696) sends eth to arbitrary user
Dangerous calls:
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#678)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#679)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in Smoking._transferFrom(address,address,uint256) (#569-608):
External calls:
- swapBack() (#577)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#657-663)
- dividendDistributor.deposit{value: amountBNBReflection}() (#673)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#678)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#679)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#686-693)
External calls sending eth:
- swapBack() (#577)
- dividendDistributor.deposit{value: amountBNBReflection}() (#673)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#678)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#679)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#686-693)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#585)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#593)
- finalAmount = takeFee(sender,recipient,amount) (#592)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#622)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.distributeDividend(address) (#243-255) ignores return value by RewardToken.transfer(shareholder,amount) (#249)
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.
Smoking.swapBack().tmpSuccess (#678) is written in both
(tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#678)
tmpSuccess = false (#682)
Smoking.swapBack().tmpSuccess1 (#679) is written in both
(tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#679)
tmpSuccess1 = false (#683)
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.
Reentrancy in DividendDistributor.distributeDividend(address) (#243-255):
External calls:
- RewardToken.transfer(shareholder,amount) (#249)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised.add(amount) (#251)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#252)
Reentrancy in DividendDistributor.process(uint256) (#214-236):
External calls:
- distributeDividend(shareholders[currentIndex]) (#228)
- RewardToken.transfer(shareholder,amount) (#249)
State variables written after the call(s):
- currentIndex ++ (#233)
Reentrancy in DividendDistributor.setShare(address,uint256) (#177-192):
External calls:
- distributeDividend(shareholder) (#180)
- RewardToken.transfer(shareholder,amount) (#249)
State variables written after the call(s):
- shares[shareholder].amount = amount (#190)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#191)
Apply the check-effects-interactions pattern.
Additional information: link
Smoking.swapBack() (#647-696) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#686-693)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendDistributor.setDistributionCriteria(uint256,uint256) (#172-175) should emit an event for:
- minPeriod = newMinPeriod (#173)
- minDistribution = newMinDistribution (#174)
Smoking.changeFees(uint256,uint256,uint256,uint256) (#526-534) should emit an event for:
- liquidityFee = newLiqFee (#527)
- rewardsFee = newRewardFee (#528)
- totalFee = liquidityFee.add(marketingFee).add(rewardsFee) (#532)
- totalFeeIfSelling = totalFee.add(extraFeeOnSell) (#533)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#354) lacks a zero-check on :
- owner = adr (#355)
Smoking.changeFeeReceivers(address,address,address).newLiquidityReceiver (#536) lacks a zero-check on :
- autoLiquidityReceiver = newLiquidityReceiver (#537)
Smoking.changeFeeReceivers(address,address,address).newMarketingWallet (#536) lacks a zero-check on :
- marketingWallet = newMarketingWallet (#538)
Smoking.changeFeeReceivers(address,address,address).newanothermarketingWallet (#536) lacks a zero-check on :
- anothermarketingWallet = newanothermarketingWallet (#539)
Check that the address is not zero.
Additional information: link
DividendDistributor.distributeDividend(address) (#243-255) has external calls inside a loop: RewardToken.transfer(shareholder,amount) (#249)
Favor pull over push strategy for external calls.
Additional information: link
Reentrancy in Smoking._transferFrom(address,address,uint256) (#569-608):
External calls:
- swapBack() (#577)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#657-663)
- dividendDistributor.deposit{value: amountBNBReflection}() (#673)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#678)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#679)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#686-693)
External calls sending eth:
- swapBack() (#577)
- dividendDistributor.deposit{value: amountBNBReflection}() (#673)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#678)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#679)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#686-693)
State variables written after the call(s):
- launch() (#581)
- launchedAt = block.number (#492)
Reentrancy in Smoking.constructor() (#422-454):
External calls:
- pair = IDEXFactory(router.factory()).createPair(router.WETH(),address(this)) (#425)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = uint256(- 1) (#426)
- _balances[msg.sender] = _totalSupply (#452)
- anothermarketingWallet = 0x4055680261a41BDAAed0D5593B7d23cF5f23822C (#447)
- autoLiquidityReceiver = msg.sender (#445)
- dividendDistributor = new DividendDistributor(address(router)) (#428)
- isDividendExempt[pair] = true (#438)
- isDividendExempt[address(this)] = true (#440)
- isDividendExempt[DEAD] = true (#441)
- isDividendExempt[ZERO] = true (#442)
- isFeeExempt[msg.sender] = true (#430)
- isFeeExempt[address(this)] = true (#431)
- isFeeExempt[anothermarketingWallet] = true (#432)
- isTxLimitExempt[msg.sender] = true (#434)
- isTxLimitExempt[pair] = true (#435)
- isTxLimitExempt[DEAD] = true (#436)
- marketingWallet = msg.sender (#446)
- totalFee = liquidityFee.add(marketingFee).add(rewardsFee) (#449)
- totalFeeIfSelling = totalFee.add(extraFeeOnSell) (#450)
Reentrancy in DividendDistributor.deposit() (#194-212):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp) (#202-207)
State variables written after the call(s):
- dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares)) (#211)
- totalDividends = totalDividends.add(amount) (#210)
Reentrancy in DividendDistributor.distributeDividend(address) (#243-255):
External calls:
- RewardToken.transfer(shareholder,amount) (#249)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (#250)
Reentrancy in DividendDistributor.setShare(address,uint256) (#177-192):
External calls:
- distributeDividend(shareholder) (#180)
- RewardToken.transfer(shareholder,amount) (#249)
State variables written after the call(s):
- addShareholder(shareholder) (#184)
- shareholderIndexes[shareholder] = shareholders.length (#273)
- removeShareholder(shareholder) (#186)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#279)
- addShareholder(shareholder) (#184)
- shareholders.push(shareholder) (#274)
- removeShareholder(shareholder) (#186)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#278)
- shareholders.pop() (#280)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (#189)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Smoking._transferFrom(address,address,uint256) (#569-608):
External calls:
- swapBack() (#577)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#657-663)
- dividendDistributor.deposit{value: amountBNBReflection}() (#673)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#678)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#679)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#686-693)
- dividendDistributor.setShare(sender,_balances[sender]) (#597)
- dividendDistributor.setShare(recipient,_balances[recipient]) (#601)
- dividendDistributor.process(distributorGas) (#604)
External calls sending eth:
- swapBack() (#577)
- dividendDistributor.deposit{value: amountBNBReflection}() (#673)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#678)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#679)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#686-693)
Event emitted after the call(s):
- Transfer(sender,recipient,finalAmount) (#606)
Reentrancy in Smoking._transferFrom(address,address,uint256) (#569-608):
External calls:
- swapBack() (#577)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#657-663)
- dividendDistributor.deposit{value: amountBNBReflection}() (#673)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#678)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#679)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#686-693)
External calls sending eth:
- swapBack() (#577)
- dividendDistributor.deposit{value: amountBNBReflection}() (#673)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#678)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#679)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#686-693)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#623)
- finalAmount = takeFee(sender,recipient,amount) (#592)
Reentrancy in Smoking.constructor() (#422-454):
External calls:
- pair = IDEXFactory(router.factory()).createPair(router.WETH(),address(this)) (#425)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#453)
Reentrancy in Smoking.swapBack() (#647-696):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#657-663)
- dividendDistributor.deposit{value: amountBNBReflection}() (#673)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#678)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#679)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#686-693)
External calls sending eth:
- dividendDistributor.deposit{value: amountBNBReflection}() (#673)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#678)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#679)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#686-693)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#694)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.shouldDistribute(address) (#238-241) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#239-240)
Avoid relying on block.timestamp.
Additional information: link
DividendDistributor.process(uint256) (#214-236) has costly operations inside a loop:
- currentIndex = 0 (#225)
DividendDistributor.distributeDividend(address) (#243-255) has costly operations inside a loop:
- totalDistributed = totalDistributed.add(amount) (#248)
DividendDistributor.process(uint256) (#214-236) has costly operations inside a loop:
- currentIndex ++ (#233)
Use a local variable to hold the loop computation result.
Additional information: link
Smoking._maxTxAmount (#377) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 1 / 100
Smoking._walletMax (#378) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 8 / 100
Smoking.swapThreshold (#414) 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 (#12) 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 Smoking.swapBack() (#647-696):
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#678)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#679)
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() (#71) is not in mixedCase
Variable DividendDistributor._token (#128) is not in mixedCase
Variable DividendDistributor.RewardToken (#138) is not in mixedCase
Function Smoking.Antibot(address) (#635-639) is not in mixedCase
Parameter Smoking.Antibot(address)._user (#635) is not in mixedCase
Parameter Smoking.removeFrombot(address)._user (#641) is not in mixedCase
Constant Smoking._name (#367) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Smoking._symbol (#368) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Smoking._decimals (#369) is not in UPPER_CASE_WITH_UNDERSCORES
Variable Smoking.DEAD (#371) is not in mixedCase
Variable Smoking.ZERO (#372) is not in mixedCase
Variable Smoking.RewardToken (#374) is not in mixedCase
Variable Smoking._totalSupply (#376) is not in mixedCase
Variable Smoking._maxTxAmount (#377) is not in mixedCase
Variable Smoking._walletMax (#378) is not in mixedCase
Variable Smoking._balances (#382) is not in mixedCase
Variable Smoking._allowances (#383) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#76) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#77)
Prevent variables from having similar names.
Additional information: link
Smoking.slitherConstructorVariables() (#363-701) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#371)
Smoking.slitherConstructorVariables() (#363-701) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#372)
Smoking.slitherConstructorVariables() (#363-701) uses literals with too many digits:
- _totalSupply = 100000000 * (10 ** _decimals) (#376)
Smoking.slitherConstructorVariables() (#363-701) uses literals with too many digits:
- distributorGas = 300000 (#408)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
Smoking.RewardToken (#374) is never used in Smoking (#363-701)
Remove unused state variables.
Additional information: link
DividendDistributor.dividendsPerShareAccuracyFactor (#149) should be constant
DividendDistributor.routerAddress (#137) should be constant
Smoking.DEAD (#371) should be constant
Smoking.RewardToken (#374) should be constant
Smoking.ZERO (#372) should be constant
Smoking.routerAddress (#373) 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) (#314-316)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#321-323)
renounceOwnership() should be declared external:
- Auth.renounceOwnership() (#346-349)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#354-358)
getCirculatingSupply() should be declared external:
- Smoking.getCirculatingSupply() (#464-466)
claim() should be declared external:
- Smoking.claim() (#482-485)
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 Telegram and Twitter accounts