Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
BabyDogeCoinBUSDV2.swapBack() (#581-625) sends eth to arbitrary user
Dangerous calls:
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#609)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in BabyDogeCoinBUSDV2._transferFrom(address,address,uint256) (#487-532):
External calls:
- swapBack() (#511)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#592-598)
- distributor.deposit{value: amountBNBReflection}() (#608)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#609)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#615-622)
External calls sending eth:
- swapBack() (#511)
- distributor.deposit{value: amountBNBReflection}() (#608)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#609)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#615-622)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#514)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#517)
- amountReceived = takeFee(sender,amount) (#516)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#552)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.distributeDividend(address) (#316-327) ignores return value by ADA.transfer(shareholder,amount) (#322)
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.
BabyDogeCoinBUSDV2.swapBack().tmpSuccess (#609) is written in both
(tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#609)
tmpSuccess = false (#612)
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) (#316-327):
External calls:
- ADA.transfer(shareholder,amount) (#322)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised.add(amount) (#324)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#325)
Reentrancy in DividendDistributor.process(uint256) (#285-309):
External calls:
- distributeDividend(shareholders[currentIndex]) (#301)
- ADA.transfer(shareholder,amount) (#322)
State variables written after the call(s):
- currentIndex ++ (#306)
Reentrancy in DividendDistributor.setShare(address,uint256) (#249-263):
External calls:
- distributeDividend(shareholder) (#251)
- ADA.transfer(shareholder,amount) (#322)
State variables written after the call(s):
- shares[shareholder].amount = amount (#261)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#262)
Apply the check-effects-interactions pattern.
Additional information: link
BabyDogeCoinBUSDV2.swapBack() (#581-625) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#615-622)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendDistributor.setDistributionCriteria(uint256,uint256) (#244-247) should emit an event for:
- minPeriod = _minPeriod (#245)
- minDistribution = _minDistribution (#246)
BabyDogeCoinBUSDV2.setTxLimit(uint256) (#627-629) should emit an event for:
- _maxTxAmount = amount (#628)
BabyDogeCoinBUSDV2.setFees(uint256,uint256,uint256,uint256) (#653-660) should emit an event for:
- liquidityFee = _liquidityFee (#654)
- reflectionFee = _reflectionFee (#655)
- marketingFee = _marketingFee (#656)
- totalFee = _liquidityFee.add(_reflectionFee).add(_marketingFee) (#657)
- feeDenominator = _feeDenominator (#658)
BabyDogeCoinBUSDV2.setTargetLiquidity(uint256,uint256) (#672-675) should emit an event for:
- targetLiquidity = _target (#673)
- targetLiquidityDenominator = _denominator (#674)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#125) lacks a zero-check on :
- owner = adr (#126)
BabyDogeCoinBUSDV2.setFeeReceivers(address,address)._autoLiquidityReceiver (#662) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (#663)
BabyDogeCoinBUSDV2.setFeeReceivers(address,address)._marketingFeeReceiver (#662) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#664)
Check that the address is not zero.
Additional information: link
DividendDistributor.distributeDividend(address) (#316-327) has external calls inside a loop: ADA.transfer(shareholder,amount) (#322)
BabyDogeCoinBUSDV2.airdrop(address,address[],uint256[]) (#700-723) has external calls inside a loop: distributor.setShare(addresses[i_scope_0],_balances[addresses[i_scope_0]]) (#715)
Favor pull over push strategy for external calls.
Additional information: link
Reentrancy in BabyDogeCoinBUSDV2.constructor() (#417-448):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#419)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = uint256(- 1) (#420)
- _balances[msg.sender] = _totalSupply (#446)
- autoLiquidityReceiver = DEAD (#443)
- distributor = new DividendDistributor(address(router)) (#422)
- isDividendExempt[pair] = true (#438)
- isDividendExempt[address(this)] = true (#439)
- isDividendExempt[DEAD] = true (#440)
- isFeeExempt[msg.sender] = true (#424)
- isTimelockExempt[msg.sender] = true (#429)
- isTimelockExempt[DEAD] = true (#430)
- isTimelockExempt[address(this)] = true (#431)
- isTxLimitExempt[msg.sender] = true (#425)
- isTxLimitExempt[DEAD] = true (#426)
- marketingFeeReceiver = msg.sender (#444)
Reentrancy in DividendDistributor.deposit() (#265-283):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp) (#272-277)
State variables written after the call(s):
- dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares)) (#282)
- totalDividends = totalDividends.add(amount) (#281)
Reentrancy in DividendDistributor.distributeDividend(address) (#316-327):
External calls:
- ADA.transfer(shareholder,amount) (#322)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (#323)
Reentrancy in DividendDistributor.setShare(address,uint256) (#249-263):
External calls:
- distributeDividend(shareholder) (#251)
- ADA.transfer(shareholder,amount) (#322)
State variables written after the call(s):
- addShareholder(shareholder) (#255)
- shareholderIndexes[shareholder] = shareholders.length (#349)
- removeShareholder(shareholder) (#257)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#355)
- addShareholder(shareholder) (#255)
- shareholders.push(shareholder) (#350)
- removeShareholder(shareholder) (#257)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#354)
- shareholders.pop() (#356)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (#260)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in BabyDogeCoinBUSDV2._transferFrom(address,address,uint256) (#487-532):
External calls:
- swapBack() (#511)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#592-598)
- distributor.deposit{value: amountBNBReflection}() (#608)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#609)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#615-622)
- distributor.setShare(sender,_balances[sender]) (#521)
- distributor.setShare(recipient,_balances[recipient]) (#525)
- distributor.process(distributorGas) (#528)
External calls sending eth:
- swapBack() (#511)
- distributor.deposit{value: amountBNBReflection}() (#608)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#609)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#615-622)
Event emitted after the call(s):
- Transfer(sender,recipient,amountReceived) (#530)
Reentrancy in BabyDogeCoinBUSDV2._transferFrom(address,address,uint256) (#487-532):
External calls:
- swapBack() (#511)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#592-598)
- distributor.deposit{value: amountBNBReflection}() (#608)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#609)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#615-622)
External calls sending eth:
- swapBack() (#511)
- distributor.deposit{value: amountBNBReflection}() (#608)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#609)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#615-622)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#553)
- amountReceived = takeFee(sender,amount) (#516)
Reentrancy in BabyDogeCoinBUSDV2.constructor() (#417-448):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#419)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#447)
Reentrancy in BabyDogeCoinBUSDV2.swapBack() (#581-625):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#592-598)
- distributor.deposit{value: amountBNBReflection}() (#608)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#609)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#615-622)
External calls sending eth:
- distributor.deposit{value: amountBNBReflection}() (#608)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#609)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#615-622)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#623)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.shouldDistribute(address) (#311-314) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#312-313)
BabyDogeCoinBUSDV2._transferFrom(address,address,uint256) (#487-532) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(cooldownTimer[recipient] < block.timestamp,Please wait for cooldown between buys) (#503)
Avoid relying on block.timestamp.
Additional information: link
DividendDistributor.process(uint256) (#285-309) has costly operations inside a loop:
- currentIndex = 0 (#297)
DividendDistributor.distributeDividend(address) (#316-327) has costly operations inside a loop:
- totalDistributed = totalDistributed.add(amount) (#321)
DividendDistributor.process(uint256) (#285-309) has costly operations inside a loop:
- currentIndex ++ (#306)
Use a local variable to hold the loop computation result.
Additional information: link
BabyDogeCoinBUSDV2._maxTxAmount (#373) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 2) / 100
BabyDogeCoinBUSDV2._maxWalletToken (#376) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 3) / 100
BabyDogeCoinBUSDV2.swapThreshold (#413) 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 (#9) 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
Low level call in BabyDogeCoinBUSDV2.swapBack() (#581-625):
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#609)
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() (#140) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minPeriod (#244) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minDistribution (#244) is not in mixedCase
Variable DividendDistributor._token (#196) is not in mixedCase
Variable DividendDistributor.ADA (#204) is not in mixedCase
Variable DividendDistributor.WBNB (#205) is not in mixedCase
Parameter BabyDogeCoinBUSDV2.tradingStatus(bool)._status (#571) is not in mixedCase
Parameter BabyDogeCoinBUSDV2.cooldownEnabled(bool,uint8)._status (#576) is not in mixedCase
Parameter BabyDogeCoinBUSDV2.cooldownEnabled(bool,uint8)._interval (#576) is not in mixedCase
Parameter BabyDogeCoinBUSDV2.setFees(uint256,uint256,uint256,uint256)._liquidityFee (#653) is not in mixedCase
Parameter BabyDogeCoinBUSDV2.setFees(uint256,uint256,uint256,uint256)._reflectionFee (#653) is not in mixedCase
Parameter BabyDogeCoinBUSDV2.setFees(uint256,uint256,uint256,uint256)._marketingFee (#653) is not in mixedCase
Parameter BabyDogeCoinBUSDV2.setFees(uint256,uint256,uint256,uint256)._feeDenominator (#653) is not in mixedCase
Parameter BabyDogeCoinBUSDV2.setFeeReceivers(address,address)._autoLiquidityReceiver (#662) is not in mixedCase
Parameter BabyDogeCoinBUSDV2.setFeeReceivers(address,address)._marketingFeeReceiver (#662) is not in mixedCase
Parameter BabyDogeCoinBUSDV2.setSwapBackSettings(bool,uint256)._enabled (#667) is not in mixedCase
Parameter BabyDogeCoinBUSDV2.setSwapBackSettings(bool,uint256)._amount (#667) is not in mixedCase
Parameter BabyDogeCoinBUSDV2.setTargetLiquidity(uint256,uint256)._target (#672) is not in mixedCase
Parameter BabyDogeCoinBUSDV2.setTargetLiquidity(uint256,uint256)._denominator (#672) is not in mixedCase
Parameter BabyDogeCoinBUSDV2.setDistributionCriteria(uint256,uint256)._minPeriod (#677) is not in mixedCase
Parameter BabyDogeCoinBUSDV2.setDistributionCriteria(uint256,uint256)._minDistribution (#677) is not in mixedCase
Variable BabyDogeCoinBUSDV2.ADA (#363) is not in mixedCase
Variable BabyDogeCoinBUSDV2.WBNB (#364) is not in mixedCase
Variable BabyDogeCoinBUSDV2.DEAD (#365) is not in mixedCase
Variable BabyDogeCoinBUSDV2.ZERO (#366) is not in mixedCase
Constant BabyDogeCoinBUSDV2._name (#368) is not in UPPER_CASE_WITH_UNDERSCORES
Constant BabyDogeCoinBUSDV2._symbol (#369) is not in UPPER_CASE_WITH_UNDERSCORES
Constant BabyDogeCoinBUSDV2._decimals (#370) is not in UPPER_CASE_WITH_UNDERSCORES
Variable BabyDogeCoinBUSDV2._totalSupply (#372) is not in mixedCase
Variable BabyDogeCoinBUSDV2._maxTxAmount (#373) is not in mixedCase
Variable BabyDogeCoinBUSDV2._maxWalletToken (#376) is not in mixedCase
Variable BabyDogeCoinBUSDV2._balances (#378) is not in mixedCase
Variable BabyDogeCoinBUSDV2._allowances (#379) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#145) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#146)
Prevent variables from having similar names.
Additional information: link
BabyDogeCoinBUSDV2.slitherConstructorVariables() (#360-728) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#365)
BabyDogeCoinBUSDV2.slitherConstructorVariables() (#360-728) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#366)
BabyDogeCoinBUSDV2.slitherConstructorVariables() (#360-728) uses literals with too many digits:
- distributorGas = 500000 (#405)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
BabyDogeCoinBUSDV2.ADA (#363) is never used in BabyDogeCoinBUSDV2 (#360-728)
Remove unused state variables.
Additional information: link
BabyDogeCoinBUSDV2.ADA (#363) should be constant
BabyDogeCoinBUSDV2.DEAD (#365) should be constant
BabyDogeCoinBUSDV2.WBNB (#364) should be constant
BabyDogeCoinBUSDV2.ZERO (#366) should be constant
BabyDogeCoinBUSDV2._totalSupply (#372) should be constant
BabyDogeCoinBUSDV2.launchedAt (#401) should be constant
DividendDistributor.WBNB (#205) should be constant
DividendDistributor.dividendsPerShareAccuracyFactor (#218) 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) (#97-99)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#104-106)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#125-129)
tradingStatus(bool) should be declared external:
- BabyDogeCoinBUSDV2.tradingStatus(bool) (#571-573)
cooldownEnabled(bool,uint8) should be declared external:
- BabyDogeCoinBUSDV2.cooldownEnabled(bool,uint8) (#576-579)
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