Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
LP.swapBack() (#625-674) sends eth to arbitrary user
Dangerous calls:
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#656)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#657)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in LP._transferFrom(address,address,uint256) (#560-601):
External calls:
- swapBack() (#570)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#635-641)
- dividendDistributor.deposit{value: amountBNBReflection}() (#651)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#656)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#657)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#664-671)
External calls sending eth:
- swapBack() (#570)
- dividendDistributor.deposit{value: amountBNBReflection}() (#651)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#656)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#657)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#664-671)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#578)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#586)
- finalAmount = takeFee(sender,recipient,amount) (#585)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#615)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.distributeDividend(address) (#246-258) ignores return value by RewardToken.transfer(shareholder,amount) (#252)
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.
LP.swapBack().tmpSuccess (#656) is written in both
(tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#656)
tmpSuccess = false (#660)
LP.swapBack().tmpSuccess1 (#657) is written in both
(tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#657)
tmpSuccess1 = false (#661)
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) (#246-258):
External calls:
- RewardToken.transfer(shareholder,amount) (#252)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised.add(amount) (#254)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#255)
Reentrancy in DividendDistributor.process(uint256) (#217-239):
External calls:
- distributeDividend(shareholders[currentIndex]) (#231)
- RewardToken.transfer(shareholder,amount) (#252)
State variables written after the call(s):
- currentIndex ++ (#236)
Reentrancy in DividendDistributor.setShare(address,uint256) (#180-195):
External calls:
- distributeDividend(shareholder) (#183)
- RewardToken.transfer(shareholder,amount) (#252)
State variables written after the call(s):
- shares[shareholder].amount = amount (#193)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#194)
Apply the check-effects-interactions pattern.
Additional information: link
LP.swapBack() (#625-674) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#664-671)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendDistributor.setDistributionCriteria(uint256,uint256) (#175-178) should emit an event for:
- minPeriod = newMinPeriod (#176)
- minDistribution = newMinDistribution (#177)
LP.changeFees(uint256,uint256,uint256,uint256) (#517-525) should emit an event for:
- liquidityFee = newLiqFee (#518)
- rewardsFee = newRewardFee (#519)
- totalFee = liquidityFee.add(marketingFee).add(rewardsFee) (#523)
- totalFeeIfSelling = totalFee.add(extraFeeOnSell) (#524)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#345) lacks a zero-check on :
- owner = adr (#346)
LP.changeFeeReceivers(address,address,address).newLiquidityReceiver (#527) lacks a zero-check on :
- autoLiquidityReceiver = newLiquidityReceiver (#528)
LP.changeFeeReceivers(address,address,address).newMarketingWallet (#527) lacks a zero-check on :
- marketingWallet = newMarketingWallet (#529)
LP.changeFeeReceivers(address,address,address).newanothermarketingWallet (#527) lacks a zero-check on :
- anothermarketingWallet = newanothermarketingWallet (#530)
Check that the address is not zero.
Additional information: link
DividendDistributor.distributeDividend(address) (#246-258) has external calls inside a loop: RewardToken.transfer(shareholder,amount) (#252)
Favor pull over push strategy for external calls.
Additional information: link
Reentrancy in LP._transferFrom(address,address,uint256) (#560-601):
External calls:
- swapBack() (#570)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#635-641)
- dividendDistributor.deposit{value: amountBNBReflection}() (#651)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#656)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#657)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#664-671)
External calls sending eth:
- swapBack() (#570)
- dividendDistributor.deposit{value: amountBNBReflection}() (#651)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#656)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#657)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#664-671)
State variables written after the call(s):
- launch() (#574)
- launchedAt = block.number (#483)
Reentrancy in LP.constructor() (#413-445):
External calls:
- pair = IDEXFactory(router.factory()).createPair(router.WETH(),address(this)) (#416)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = uint256(- 1) (#417)
- _balances[msg.sender] = _totalSupply (#443)
- anothermarketingWallet = 0xEAb2EB629171bf73650aCc4ab33D70A5cA4cE1FB (#438)
- autoLiquidityReceiver = msg.sender (#436)
- dividendDistributor = new DividendDistributor(address(router)) (#419)
- isDividendExempt[pair] = true (#429)
- isDividendExempt[address(this)] = true (#431)
- isDividendExempt[DEAD] = true (#432)
- isDividendExempt[ZERO] = true (#433)
- isFeeExempt[msg.sender] = true (#421)
- isFeeExempt[address(this)] = true (#422)
- isFeeExempt[anothermarketingWallet] = true (#423)
- isTxLimitExempt[msg.sender] = true (#425)
- isTxLimitExempt[pair] = true (#426)
- isTxLimitExempt[DEAD] = true (#427)
- marketingWallet = msg.sender (#437)
- totalFee = liquidityFee.add(marketingFee).add(rewardsFee) (#440)
- totalFeeIfSelling = totalFee.add(extraFeeOnSell) (#441)
Reentrancy in DividendDistributor.deposit() (#197-215):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp) (#205-210)
State variables written after the call(s):
- dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares)) (#214)
- totalDividends = totalDividends.add(amount) (#213)
Reentrancy in DividendDistributor.distributeDividend(address) (#246-258):
External calls:
- RewardToken.transfer(shareholder,amount) (#252)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (#253)
Reentrancy in DividendDistributor.setShare(address,uint256) (#180-195):
External calls:
- distributeDividend(shareholder) (#183)
- RewardToken.transfer(shareholder,amount) (#252)
State variables written after the call(s):
- addShareholder(shareholder) (#187)
- shareholderIndexes[shareholder] = shareholders.length (#276)
- removeShareholder(shareholder) (#189)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#282)
- addShareholder(shareholder) (#187)
- shareholders.push(shareholder) (#277)
- removeShareholder(shareholder) (#189)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#281)
- shareholders.pop() (#283)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (#192)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in LP._transferFrom(address,address,uint256) (#560-601):
External calls:
- swapBack() (#570)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#635-641)
- dividendDistributor.deposit{value: amountBNBReflection}() (#651)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#656)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#657)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#664-671)
- dividendDistributor.setShare(sender,_balances[sender]) (#590)
- dividendDistributor.setShare(recipient,_balances[recipient]) (#594)
- dividendDistributor.process(distributorGas) (#597)
External calls sending eth:
- swapBack() (#570)
- dividendDistributor.deposit{value: amountBNBReflection}() (#651)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#656)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#657)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#664-671)
Event emitted after the call(s):
- Transfer(sender,recipient,finalAmount) (#599)
Reentrancy in LP._transferFrom(address,address,uint256) (#560-601):
External calls:
- swapBack() (#570)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#635-641)
- dividendDistributor.deposit{value: amountBNBReflection}() (#651)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#656)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#657)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#664-671)
External calls sending eth:
- swapBack() (#570)
- dividendDistributor.deposit{value: amountBNBReflection}() (#651)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#656)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#657)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#664-671)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#616)
- finalAmount = takeFee(sender,recipient,amount) (#585)
Reentrancy in LP.constructor() (#413-445):
External calls:
- pair = IDEXFactory(router.factory()).createPair(router.WETH(),address(this)) (#416)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#444)
Reentrancy in LP.swapBack() (#625-674):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#635-641)
- dividendDistributor.deposit{value: amountBNBReflection}() (#651)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#656)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#657)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#664-671)
External calls sending eth:
- dividendDistributor.deposit{value: amountBNBReflection}() (#651)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#656)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#657)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#664-671)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#672)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.shouldDistribute(address) (#241-244) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#242-243)
Avoid relying on block.timestamp.
Additional information: link
DividendDistributor.process(uint256) (#217-239) has costly operations inside a loop:
- currentIndex = 0 (#228)
DividendDistributor.distributeDividend(address) (#246-258) has costly operations inside a loop:
- totalDistributed = totalDistributed.add(amount) (#251)
DividendDistributor.process(uint256) (#217-239) has costly operations inside a loop:
- currentIndex ++ (#236)
Use a local variable to hold the loop computation result.
Additional information: link
LP._maxTxAmount (#368) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 1 / 100
LP._walletMax (#369) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 3 / 100
LP.swapThreshold (#405) 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 (#15) 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 LP.swapBack() (#625-674):
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#656)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#657)
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() (#74) is not in mixedCase
Variable DividendDistributor._token (#131) is not in mixedCase
Variable DividendDistributor.RewardToken (#141) is not in mixedCase
Constant LP._name (#358) is not in UPPER_CASE_WITH_UNDERSCORES
Constant LP._symbol (#359) is not in UPPER_CASE_WITH_UNDERSCORES
Constant LP._decimals (#360) is not in UPPER_CASE_WITH_UNDERSCORES
Variable LP.DEAD (#362) is not in mixedCase
Variable LP.ZERO (#363) is not in mixedCase
Variable LP.RewardToken (#365) is not in mixedCase
Variable LP._totalSupply (#367) is not in mixedCase
Variable LP._maxTxAmount (#368) is not in mixedCase
Variable LP._walletMax (#369) is not in mixedCase
Variable LP._balances (#373) is not in mixedCase
Variable LP._allowances (#374) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#79) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#80)
Prevent variables from having similar names.
Additional information: link
LP.slitherConstructorVariables() (#354-679) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#362)
LP.slitherConstructorVariables() (#354-679) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#363)
LP.slitherConstructorVariables() (#354-679) uses literals with too many digits:
- _totalSupply = 100000000 * (10 ** _decimals) (#367)
LP.slitherConstructorVariables() (#354-679) uses literals with too many digits:
- distributorGas = 300000 (#399)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
LP.RewardToken (#365) is never used in LP (#354-679)
Remove unused state variables.
Additional information: link
DividendDistributor.dividendsPerShareAccuracyFactor (#152) should be constant
DividendDistributor.routerAddress (#140) should be constant
LP.DEAD (#362) should be constant
LP.RewardToken (#365) should be constant
LP.ZERO (#363) should be constant
LP._totalSupply (#367) should be constant
LP.routerAddress (#364) 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) (#317-319)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#324-326)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#345-349)
getCirculatingSupply() should be declared external:
- LP.getCirculatingSupply() (#455-457)
claim() should be declared external:
- LP.claim() (#473-476)
tradingStatus(bool) should be declared external:
- LP.tradingStatus(bool) (#621-623)
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