Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
BUSDprinter.swapBack() (#615-662) sends eth to arbitrary user
Dangerous calls:
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#645)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in BUSDprinter._transferFrom(address,address,uint256) (#548-589):
External calls:
- swapBack() (#558)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#625-631)
- dividendDistributor.deposit{value: amountBNBReflection}() (#641)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#645)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#652-659)
External calls sending eth:
- swapBack() (#558)
- dividendDistributor.deposit{value: amountBNBReflection}() (#641)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#645)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#652-659)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#566)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#574)
- finalAmount = takeFee(sender,recipient,amount) (#573)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#603)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.distributeDividend(address) (#243-254) 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.
BUSDprinter.swapBack().tmpSuccess (#645) is written in both
(tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#645)
tmpSuccess = false (#648)
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.
Low level call in BUSDprinter.swapBack() (#615-662):
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#645)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Reentrancy in DividendDistributor.distributeDividend(address) (#243-254):
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
BUSDprinter.swapBack() (#615-662) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#652-659)
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)
BUSDprinter.changeFees(uint256,uint256,uint256,uint256) (#506-514) should emit an event for:
- liquidityFee = newLiqFee (#507)
- rewardsFee = newRewardFee (#508)
- totalFee = liquidityFee.add(marketingFee).add(rewardsFee) (#512)
- totalFeeIfSelling = totalFee.add(extraFeeOnSell) (#513)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#343) lacks a zero-check on :
- owner = adr (#344)
BUSDprinter.changeFeeReceivers(address,address).newLiquidityReceiver (#516) lacks a zero-check on :
- autoLiquidityReceiver = newLiquidityReceiver (#517)
BUSDprinter.changeFeeReceivers(address,address).newMarketingWallet (#516) lacks a zero-check on :
- marketingWallet = newMarketingWallet (#518)
Check that the address is not zero.
Additional information: link
DividendDistributor.distributeDividend(address) (#243-254) has external calls inside a loop: RewardToken.transfer(shareholder,amount) (#249)
Favor pull over push strategy for external calls.
Additional information: link
Reentrancy in BUSDprinter._transferFrom(address,address,uint256) (#548-589):
External calls:
- swapBack() (#558)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#625-631)
- dividendDistributor.deposit{value: amountBNBReflection}() (#641)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#645)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#652-659)
External calls sending eth:
- swapBack() (#558)
- dividendDistributor.deposit{value: amountBNBReflection}() (#641)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#645)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#652-659)
State variables written after the call(s):
- launch() (#562)
- launchedAt = block.number (#472)
Reentrancy in BUSDprinter.constructor() (#410-440):
External calls:
- pair = IDEXFactory(router.factory()).createPair(router.WETH(),address(this)) (#413)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = uint256(- 1) (#414)
- _balances[msg.sender] = _totalSupply (#438)
- autoLiquidityReceiver = 0x88fE03F7a69b5792d2d84d6743247e57c2893151 (#431)
- dividendDistributor = new DividendDistributor(address(router)) (#416)
- isDividendExempt[pair] = true (#424)
- isDividendExempt[msg.sender] = true (#425)
- isDividendExempt[address(this)] = true (#426)
- isDividendExempt[DEAD] = true (#427)
- isDividendExempt[ZERO] = true (#428)
- isFeeExempt[msg.sender] = true (#418)
- isFeeExempt[address(this)] = true (#419)
- isTxLimitExempt[msg.sender] = true (#421)
- isTxLimitExempt[pair] = true (#422)
- marketingWallet = 0x631f6107e80D3AF98229DC9b36E80D8f9c069292 (#432)
- totalFee = liquidityFee.add(marketingFee).add(rewardsFee) (#435)
- totalFeeIfSelling = totalFee.add(extraFeeOnSell) (#436)
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-254):
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 (#278)
- removeShareholder(shareholder) (#186)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#284)
- addShareholder(shareholder) (#184)
- shareholders.push(shareholder) (#279)
- removeShareholder(shareholder) (#186)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#283)
- shareholders.pop() (#285)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (#189)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in BUSDprinter._transferFrom(address,address,uint256) (#548-589):
External calls:
- swapBack() (#558)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#625-631)
- dividendDistributor.deposit{value: amountBNBReflection}() (#641)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#645)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#652-659)
- dividendDistributor.setShare(sender,_balances[sender]) (#578)
- dividendDistributor.setShare(recipient,_balances[recipient]) (#582)
- dividendDistributor.process(distributorGas) (#585)
External calls sending eth:
- swapBack() (#558)
- dividendDistributor.deposit{value: amountBNBReflection}() (#641)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#645)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#652-659)
Event emitted after the call(s):
- Transfer(sender,recipient,finalAmount) (#587)
Reentrancy in BUSDprinter._transferFrom(address,address,uint256) (#548-589):
External calls:
- swapBack() (#558)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#625-631)
- dividendDistributor.deposit{value: amountBNBReflection}() (#641)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#645)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#652-659)
External calls sending eth:
- swapBack() (#558)
- dividendDistributor.deposit{value: amountBNBReflection}() (#641)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#645)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#652-659)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#604-606)
- finalAmount = takeFee(sender,recipient,amount) (#573)
Reentrancy in BUSDprinter.constructor() (#410-440):
External calls:
- pair = IDEXFactory(router.factory()).createPair(router.WETH(),address(this)) (#413)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#439)
Reentrancy in BUSDprinter.swapBack() (#615-662):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#625-631)
- dividendDistributor.deposit{value: amountBNBReflection}() (#641)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#645)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#652-659)
External calls sending eth:
- dividendDistributor.deposit{value: amountBNBReflection}() (#641)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#645)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#652-659)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#660)
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-254) 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
BUSDprinter._maxTxAmount (#366) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 1 / 40
BUSDprinter._walletMax (#367) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 1 / 40
BUSDprinter.swapThreshold (#402) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 5 / 4000
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
solc-0.7.4 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
Function IDEXRouter.WETH() (#71) is not in mixedCase
Variable DividendDistributor._token (#127) is not in mixedCase
Variable DividendDistributor.RewardToken (#138) is not in mixedCase
Constant BUSDprinter._name (#356) is not in UPPER_CASE_WITH_UNDERSCORES
Constant BUSDprinter._symbol (#357) is not in UPPER_CASE_WITH_UNDERSCORES
Constant BUSDprinter._decimals (#358) is not in UPPER_CASE_WITH_UNDERSCORES
Variable BUSDprinter.DEAD (#360) is not in mixedCase
Variable BUSDprinter.ZERO (#361) is not in mixedCase
Variable BUSDprinter.RewardToken (#363) is not in mixedCase
Variable BUSDprinter._totalSupply (#365) is not in mixedCase
Variable BUSDprinter._maxTxAmount (#366) is not in mixedCase
Variable BUSDprinter._walletMax (#367) is not in mixedCase
Variable BUSDprinter._balances (#371) is not in mixedCase
Variable BUSDprinter._allowances (#372) 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
BUSDprinter.slitherConstructorVariables() (#352-667) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#360)
BUSDprinter.slitherConstructorVariables() (#352-667) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#361)
BUSDprinter.slitherConstructorVariables() (#352-667) uses literals with too many digits:
- distributorGas = 500000 (#396)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
BUSDprinter.RewardToken (#363) is never used in BUSDprinter (#352-667)
Remove unused state variables.
Additional information: link
BUSDprinter.DEAD (#360) should be constant
BUSDprinter.RewardToken (#363) should be constant
BUSDprinter.ZERO (#361) should be constant
BUSDprinter._totalSupply (#365) should be constant
BUSDprinter.routerAddress (#362) should be constant
DividendDistributor.dividendsPerShareAccuracyFactor (#149) should be constant
DividendDistributor.routerAddress (#137) 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) (#315-317)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#322-324)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#343-347)
getCirculatingSupply() should be declared external:
- BUSDprinter.getCirculatingSupply() (#450-452)
tradingStatus(bool) should be declared external:
- BUSDprinter.tradingStatus(bool) (#611-613)
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