Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
BabyDogCoin.clearBalance() (#408-411) sends eth to arbitrary user
Dangerous calls:
- (success) = address(autoLiquidityReceiver).call{gas: 30000,value: address(this).balance}() (#409)
BabyDogCoin.swapBack() (#420-467) sends eth to arbitrary user
Dangerous calls:
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing.add(amountBNBGiveaway)}() (#446)
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#449)
- (success2) = address(giveawayFeeReceiver).call{gas: 30000,value: amountBNBGiveaway}() (#450)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in BabyDogCoin._transferFrom(address,address,uint256) (#354-371):
External calls:
- swapBack() (#362)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#431-437)
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing.add(amountBNBGiveaway)}() (#446)
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#449)
- (success2) = address(giveawayFeeReceiver).call{gas: 30000,value: amountBNBGiveaway}() (#450)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#455-462)
External calls sending eth:
- swapBack() (#362)
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing.add(amountBNBGiveaway)}() (#446)
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#449)
- (success2) = address(giveawayFeeReceiver).call{gas: 30000,value: amountBNBGiveaway}() (#450)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#455-462)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#364)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#367)
- amountReceived = takeFee(sender,recipient,amount) (#366)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#391)
Reentrancy in BabyDogCoin.swapBack() (#420-467):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#431-437)
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing.add(amountBNBGiveaway)}() (#446)
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#449)
- (success2) = address(giveawayFeeReceiver).call{gas: 30000,value: amountBNBGiveaway}() (#450)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#455-462)
External calls sending eth:
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing.add(amountBNBGiveaway)}() (#446)
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#449)
- (success2) = address(giveawayFeeReceiver).call{gas: 30000,value: amountBNBGiveaway}() (#450)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#455-462)
State variables written after the call(s):
- swapThreshold = swapThreshold (#466)
- swapThreshold = largeSwapThreshold (#466)
- swapThreshold = smallSwapThreshold (#466)
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.
BabyDogCoin.swapBack().success_scope_0 (#449) is a local variable never initialized
Initialize all the variables. If a variable is meant to be initialized to zero, explicitly set it to zero to improve code readability.
Additional information: link
BabyDogCoin.swapBack() (#420-467) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#455-462)
Ensure that all the return values of the function calls are used.
Additional information: link
BabyDogCoin.setTargetLiquidity(uint256,uint256) (#397-400) should emit an event for:
- targetLiquidity = _target (#398)
- targetLiquidityDenominator = _denominator (#399)
BabyDogCoin.setSwapBackSettings(bool,uint256,uint256,bool) (#477-483) should emit an event for:
- smallSwapThreshold = _amountS (#480)
- largeSwapThreshold = _amountL (#481)
- swapThreshold = smallSwapThreshold (#482)
Emit an event for critical parameter changes.
Additional information: link
BabyDogCoin.constructor().deployer (#298) lacks a zero-check on :
- autoLiquidityReceiver = deployer (#308)
BabyDogCoin.setFeeReceivers(address,address,address)._autoLiquidityReceiver (#503) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (#504)
BabyDogCoin.setFeeReceivers(address,address,address)._giveawayFeeReceiver (#503) lacks a zero-check on :
- giveawayFeeReceiver = _giveawayFeeReceiver (#505)
BabyDogCoin.setFeeReceivers(address,address,address)._marketingFeeReceiver (#503) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#506)
Check that the address is not zero.
Additional information: link
BabyDogCoin._name (#256) should be constant
BabyDogCoin._symbol (#257) should be constant
BabyDogCoin._totalSupply (#260) should be constant
BabyDogCoin.feeDenominator (#275) should be constant
BabyDogCoin.giveawayFee (#272) should be constant
BabyDogCoin.liquidityFee (#273) should be constant
BabyDogCoin.marketingFee (#271) should be constant
BabyDogCoin.timeLaunched (#266) should be constant
BabyDogCoin.totalFee (#274) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
BabyDogCoin.swapBack() (#420-467) has external calls inside a loop: router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#431-437)
BabyDogCoin.swapBack() (#420-467) has external calls inside a loop: (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing.add(amountBNBGiveaway)}() (#446)
BabyDogCoin.swapBack() (#420-467) has external calls inside a loop: router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#455-462)
BabyDogCoin.swapBack() (#420-467) has external calls inside a loop: (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#449)
BabyDogCoin.swapBack() (#420-467) has external calls inside a loop: (success2) = address(giveawayFeeReceiver).call{gas: 30000,value: amountBNBGiveaway}() (#450)
Favor pull over push strategy for external calls.
Additional information: link
Variable 'BabyDogCoin.swapBack().success (#446)' in BabyDogCoin.swapBack() (#420-467) potentially used before declaration: (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#449)
Move all variable declarations prior to any usage of the variable, and ensure that reaching a variable declaration does not depend on some conditional if it is used unconditionally.
Additional information: link
Reentrancy in BabyDogCoin.constructor() (#296-312):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#300)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = type()(uint256).max (#301)
- _allowances[address(this)][deployer] = type()(uint256).max (#302)
- _balances[deployer] = _totalSupply (#310)
- autoLiquidityReceiver = deployer (#308)
- isFeeExempt[deployer] = true (#307)
- isTxLimitExempt[address(this)] = true (#304)
- isTxLimitExempt[address(router)] = true (#305)
- isTxLimitExempt[deployer] = true (#306)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in BabyDogCoin._transferFrom(address,address,uint256) (#354-371):
External calls:
- swapBack() (#362)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#431-437)
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing.add(amountBNBGiveaway)}() (#446)
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#449)
- (success2) = address(giveawayFeeReceiver).call{gas: 30000,value: amountBNBGiveaway}() (#450)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#455-462)
External calls sending eth:
- swapBack() (#362)
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing.add(amountBNBGiveaway)}() (#446)
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#449)
- (success2) = address(giveawayFeeReceiver).call{gas: 30000,value: amountBNBGiveaway}() (#450)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#455-462)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#392)
- amountReceived = takeFee(sender,recipient,amount) (#366)
- Transfer(sender,recipient,amountReceived) (#369)
Reentrancy in BabyDogCoin.constructor() (#296-312):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#300)
Event emitted after the call(s):
- Transfer(address(0),deployer,_totalSupply) (#311)
Reentrancy in BabyDogCoin.swapBack() (#420-467):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#431-437)
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing.add(amountBNBGiveaway)}() (#446)
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#449)
- (success2) = address(giveawayFeeReceiver).call{gas: 30000,value: amountBNBGiveaway}() (#450)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#455-462)
External calls sending eth:
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing.add(amountBNBGiveaway)}() (#446)
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#449)
- (success2) = address(giveawayFeeReceiver).call{gas: 30000,value: amountBNBGiveaway}() (#450)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#455-462)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#463)
Apply the check-effects-interactions pattern.
Additional information: link
BabyDogCoin.swapping() (#294) has costly operations inside a loop:
- inSwap = true (#294)
BabyDogCoin.swapping() (#294) has costly operations inside a loop:
- inSwap = false (#294)
BabyDogCoin.swapBack() (#420-467) has costly operations inside a loop:
- swapThreshold = swapThreshold (#466)
BabyDogCoin.swapBack() (#420-467) has costly operations inside a loop:
- swapThreshold = largeSwapThreshold (#466)
BabyDogCoin.swapBack() (#420-467) has costly operations inside a loop:
- swapThreshold = smallSwapThreshold (#466)
Use a local variable to hold the loop computation result.
Additional information: link
Context._msgData() (#134-137) is never used and should be removed
Remove unused functions.
Additional information: link
BabyDogCoin._transferLimit (#261) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 1) / 100
BabyDogCoin._maxWalletSize (#262) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 2) / 100
BabyDogCoin.smallSwapThreshold (#289) is set pre-construction with a non-constant function or state variable:
- _totalSupply.mul(413945130).div(100000000000)
BabyDogCoin.largeSwapThreshold (#290) is set pre-construction with a non-constant function or state variable:
- _totalSupply.mul(469493726).div(100000000000)
BabyDogCoin.swapThreshold (#292) is set pre-construction with a non-constant function or state variable:
- smallSwapThreshold
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.11 (#17) 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 BabyDogCoin.clearBalance() (#408-411):
- (success) = address(autoLiquidityReceiver).call{gas: 30000,value: address(this).balance}() (#409)
Low level call in BabyDogCoin.swapBack() (#420-467):
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing.add(amountBNBGiveaway)}() (#446)
- (success) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#449)
- (success2) = address(giveawayFeeReceiver).call{gas: 30000,value: amountBNBGiveaway}() (#450)
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() (#151) is not in mixedCase
Parameter BabyDogCoin.setTargetLiquidity(uint256,uint256)._target (#397) is not in mixedCase
Parameter BabyDogCoin.setTargetLiquidity(uint256,uint256)._denominator (#397) is not in mixedCase
Parameter BabyDogCoin.setSwapBackSettings(bool,uint256,uint256,bool)._enabled (#477) is not in mixedCase
Parameter BabyDogCoin.setSwapBackSettings(bool,uint256,uint256,bool)._amountS (#477) is not in mixedCase
Parameter BabyDogCoin.setSwapBackSettings(bool,uint256,uint256,bool)._amountL (#477) is not in mixedCase
Parameter BabyDogCoin.setSwapBackSettings(bool,uint256,uint256,bool)._alternate (#477) is not in mixedCase
Parameter BabyDogCoin.setFeeReceivers(address,address,address)._autoLiquidityReceiver (#503) is not in mixedCase
Parameter BabyDogCoin.setFeeReceivers(address,address,address)._marketingFeeReceiver (#503) is not in mixedCase
Parameter BabyDogCoin.setFeeReceivers(address,address,address)._giveawayFeeReceiver (#503) is not in mixedCase
Variable BabyDogCoin._name (#256) is not in mixedCase
Variable BabyDogCoin._symbol (#257) is not in mixedCase
Constant BabyDogCoin._decimals (#258) is not in UPPER_CASE_WITH_UNDERSCORES
Variable BabyDogCoin._totalSupply (#260) is not in mixedCase
Variable BabyDogCoin._transferLimit (#261) is not in mixedCase
Variable BabyDogCoin._maxWalletSize (#262) is not in mixedCase
Variable BabyDogCoin._balances (#264) is not in mixedCase
Variable BabyDogCoin._allowances (#265) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#135)" inContext (#129-138)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#156) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#157)
Prevent variables from having similar names.
Additional information: link
BabyDogCoin.slitherConstructorVariables() (#249-515) uses literals with too many digits:
- _totalSupply = 10000000000000000 * (10 ** _decimals) (#260)
BabyDogCoin.slitherConstructorVariables() (#249-515) uses literals with too many digits:
- smallSwapThreshold = _totalSupply.mul(413945130).div(100000000000) (#289)
BabyDogCoin.slitherConstructorVariables() (#249-515) uses literals with too many digits:
- largeSwapThreshold = _totalSupply.mul(469493726).div(100000000000) (#290)
BabyDogCoin.slitherConstructorConstantVariables() (#249-515) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#253)
BabyDogCoin.slitherConstructorConstantVariables() (#249-515) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#254)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#233-236)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#242-246)
transferLiquidity(address,uint256) should be declared external:
- BabyDogCoin.transferLiquidity(address,uint256) (#349-352)
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