Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
BabyMcDollarInu.swapBack() (#293-334) sends eth to arbitrary user
Dangerous calls:
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#318)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#320)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in BabyMcDollarInu._transferFrom(address,address,uint256) (#236-259):
External calls:
- swapBack() (#247)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#304-310)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#318)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#320)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#324-331)
External calls sending eth:
- swapBack() (#247)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#318)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#320)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#324-331)
State variables written after the call(s):
- _balances[sender] = _balances[sender] - amount (#251)
- _balances[recipient] = _balances[recipient] + (amountReceived) (#255)
- amountReceived = takeFee(sender,amount) (#254)
- _balances[address(this)] = _balances[address(this)] + (feeAmount) (#280)
Apply the check-effects-interactions pattern.
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.
Not a direct threat, but may indicate unreliable intentions of developer. Widespread names (e.g. Elon, King, Moon, Doge) are common among meme-tokens and scams. The allow to gain free hype and attract unexperienced investors.
BabyMcDollarInu.takeFee(address,uint256) (#274-284) performs a multiplication on the result of a division:
-feeAmount = amount / 100 * actualFee (#278)
BabyMcDollarInu.slitherConstructorVariables() (#115-413) performs a multiplication on the result of a division:
-swapThreshold = _totalSupply / 10000 * 5 (#175)
Consider ordering multiplication before division.
Additional information: link
BabyMcDollarInu.swapBack() (#293-334) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#324-331)
Ensure that all the return values of the function calls are used.
Additional information: link
BabyMcDollarInu.setFees(uint256,uint256,uint256,uint56,uint256) (#376-384) should emit an event for:
- sellLpFee = _liquidityFee (#377)
- sellMarketingFee = _sellMarketingFee (#378)
- sellBuyBackFee = _sellBuybackFee (#379)
- sellTotalFee = _sellMarketingFee + _sellBuybackFee + _liquidityFee (#380)
- buyMarketingFee = _buyMarketingFee (#381)
- buyBuyBackFee = _buyBuybackFee (#382)
- buyTotalFee = _buyMarketingFee + _buyBuybackFee (#383)
Emit an event for critical parameter changes.
Additional information: link
BabyMcDollarInu.setFeeReceiver(address,address)._marketingFeeReceiver (#386) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#387)
BabyMcDollarInu.setFeeReceiver(address,address)._buybackFeeReceiver (#386) lacks a zero-check on :
- buybackFeeReceiver = _buybackFeeReceiver (#388)
Check that the address is not zero.
Additional information: link
Reentrancy in BabyMcDollarInu._transferFrom(address,address,uint256) (#236-259):
External calls:
- swapBack() (#247)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#304-310)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#318)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#320)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#324-331)
External calls sending eth:
- swapBack() (#247)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#318)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#320)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#324-331)
State variables written after the call(s):
- amountReceived = takeFee(sender,amount) (#254)
- actualFee = buyTotalFee (#276)
- actualFee = sellTotalFee (#277)
- launch() (#249)
- launchedAt = block.timestamp (#341)
Reentrancy in BabyMcDollarInu.constructor() (#180-200):
External calls:
- pair = IDEXFactory(router.factory()).createPair(address(this),router.WETH()) (#182)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = type()(uint256).max (#183)
- _balances[_owner] = _liqSupply (#196)
- _balances[_DEAD] = _burntSupply (#197)
- isFeeExempt[_owner] = true (#188)
- isFeeExempt[marketingFeeReceiver] = true (#189)
- isFeeExempt[buybackFeeReceiver] = true (#190)
- isTxLimitExempt[_owner] = true (#192)
- isTxLimitExempt[marketingFeeReceiver] = true (#193)
- isTxLimitExempt[buybackFeeReceiver] = true (#194)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in BabyMcDollarInu._transferFrom(address,address,uint256) (#236-259):
External calls:
- swapBack() (#247)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#304-310)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#318)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#320)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#324-331)
External calls sending eth:
- swapBack() (#247)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#318)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#320)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#324-331)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#281)
- amountReceived = takeFee(sender,amount) (#254)
- Transfer(sender,recipient,amountReceived) (#257)
Reentrancy in BabyMcDollarInu.constructor() (#180-200):
External calls:
- pair = IDEXFactory(router.factory()).createPair(address(this),router.WETH()) (#182)
Event emitted after the call(s):
- Transfer(address(0),_owner,_liqSupply) (#198)
- Transfer(address(0),_DEAD,_burntSupply) (#199)
Reentrancy in BabyMcDollarInu.swapBack() (#293-334):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#304-310)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#318)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#320)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#324-331)
External calls sending eth:
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#318)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#320)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#324-331)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#332)
Apply the check-effects-interactions pattern.
Additional information: link
BabyMcDollarInu._transferFrom(address,address,uint256) (#236-259) uses timestamp for comparisons
Dangerous comparisons:
- ! launched() && recipient == pair (#249)
BabyMcDollarInu.launched() (#336-338) uses timestamp for comparisons
Dangerous comparisons:
- launchedAt != 0 (#337)
Avoid relying on block.timestamp.
Additional information: link
BabyMcDollarInu._liqSupply (#143) is set pre-construction with a non-constant function or state variable:
- (_totalSupply - _burntSupply)
BabyMcDollarInu.buyTotalFee (#151) is set pre-construction with a non-constant function or state variable:
- buyMarketingFee + buyBuyBackFee
BabyMcDollarInu.sellTotalFee (#156) is set pre-construction with a non-constant function or state variable:
- sellMarketingFee + sellBuyBackFee + sellLpFee
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.8.9 (#5) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
solc-0.8.11 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 BabyMcDollarInu.swapBack() (#293-334):
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#318)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#320)
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() (#65) is not in mixedCase
Parameter BabyMcDollarInu.setTargetLiquidity(uint256)._target (#361) is not in mixedCase
Parameter BabyMcDollarInu.setFees(uint256,uint256,uint256,uint56,uint256)._liquidityFee (#376) is not in mixedCase
Parameter BabyMcDollarInu.setFees(uint256,uint256,uint256,uint56,uint256)._buyMarketingFee (#376) is not in mixedCase
Parameter BabyMcDollarInu.setFees(uint256,uint256,uint256,uint56,uint256)._buyBuybackFee (#376) is not in mixedCase
Parameter BabyMcDollarInu.setFees(uint256,uint256,uint256,uint56,uint256)._sellMarketingFee (#376) is not in mixedCase
Parameter BabyMcDollarInu.setFees(uint256,uint256,uint256,uint56,uint256)._sellBuybackFee (#376) is not in mixedCase
Parameter BabyMcDollarInu.setFeeReceiver(address,address)._marketingFeeReceiver (#386) is not in mixedCase
Parameter BabyMcDollarInu.setFeeReceiver(address,address)._buybackFeeReceiver (#386) is not in mixedCase
Parameter BabyMcDollarInu.setSwapBackSettings(bool,uint256)._enabled (#392) is not in mixedCase
Parameter BabyMcDollarInu.setSwapBackSettings(bool,uint256)._amount (#392) is not in mixedCase
Function BabyMcDollarInu.ClearStuckBalance() (#401-405) is not in mixedCase
Parameter BabyMcDollarInu.transferForeignToken(address)._token (#407) is not in mixedCase
Variable BabyMcDollarInu._balances (#130) is not in mixedCase
Variable BabyMcDollarInu._allowances (#131) is not in mixedCase
Constant BabyMcDollarInu._name (#136) is not in UPPER_CASE_WITH_UNDERSCORES
Constant BabyMcDollarInu._symbol (#137) is not in UPPER_CASE_WITH_UNDERSCORES
Constant BabyMcDollarInu._decimals (#138) is not in UPPER_CASE_WITH_UNDERSCORES
Constant BabyMcDollarInu._totalSupply (#141) is not in UPPER_CASE_WITH_UNDERSCORES
Variable BabyMcDollarInu._burntSupply (#142) is not in mixedCase
Variable BabyMcDollarInu._liqSupply (#143) is not in mixedCase
Variable BabyMcDollarInu._maxWalletSize (#146) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Reentrancy in BabyMcDollarInu.ClearStuckBalance() (#401-405):
External calls:
- address(marketingFeeReceiver).transfer(contractETHBalance) (#403)
Event emitted after the call(s):
- StuckBalanceSent(contractETHBalance,marketingFeeReceiver) (#404)
Reentrancy in BabyMcDollarInu.transferForeignToken(address) (#407-411):
External calls:
- address(marketingFeeReceiver).transfer(_contractBalance) (#409)
Event emitted after the call(s):
- ForeignTokenTransfer(_token,_contractBalance) (#410)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#70) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#71)
Prevent variables from having similar names.
Additional information: link
BabyMcDollarInu.slitherConstructorConstantVariables() (#115-413) uses literals with too many digits:
- _totalSupply = 10000000 * (10 ** _decimals) (#141)
BabyMcDollarInu.slitherConstructorConstantVariables() (#115-413) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#163)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
Ownable._previousOwner (#32) is never used in BabyMcDollarInu (#115-413)
Remove unused state variables.
Additional information: link
BabyMcDollarInu._burntSupply (#142) should be constant
Ownable._previousOwner (#32) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#48-52)
transferForeignToken(address) should be declared external:
- BabyMcDollarInu.transferForeignToken(address) (#407-411)
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