BullDoge Chain The Future of Cryptocurrency And Blockchain Technology
BullDogeChain.sendBNB(address,uint256) (#502-507) sends eth to arbitrary user
Dangerous calls:
- (success) = recipient.call{value: amount}() (#505)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
BullDogeChain.claimStuckTokens(address) (#487-496) ignores return value by ERC20token.transfer(msg.sender,balance) (#495)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Reentrancy in BullDogeChain._transfer(address,address,uint256) (#539-613):
External calls:
- swapAndLiquify(liquidityTokens) (#586)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(half,0,path,address(this),block.timestamp) (#650-655)
- uniswapV2Router.addLiquidityETH{value: newBalance}(address(this),otherHalf,0,0,DEAD,block.timestamp) (#659-666)
- swapAndSendTreasury(treasuryTokens) (#588)
- (success) = recipient.call{value: amount}() (#505)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#678-683)
External calls sending eth:
- swapAndLiquify(liquidityTokens) (#586)
- uniswapV2Router.addLiquidityETH{value: newBalance}(address(this),otherHalf,0,0,DEAD,block.timestamp) (#659-666)
- swapAndSendTreasury(treasuryTokens) (#588)
- (success) = recipient.call{value: amount}() (#505)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (#608)
- _balances[sender] = senderBalance - amount (#169)
- _balances[recipient] += amount (#171)
- super._transfer(from,to,amount) (#611)
- _balances[sender] = senderBalance - amount (#169)
- _balances[recipient] += amount (#171)
- swapping = false (#590)
Apply the check-effects-interactions pattern.
Additional information: link
Contract ownership is not renounced (belongs to a wallet)
BullDogeChain._transfer(address,address,uint256) (#539-613) uses a dangerous strict equality:
- launchedAt == 0 && to == (uniswapV2Pair) (#553)
Don't use strict equality to determine if an account has enough Ether or tokens.
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.
BullDogeChain.setSwapTokensAtAmount(uint256) (#624-630) should emit an event for:
- swapTokensAtAmount = newAmount (#629)
Emit an event for critical parameter changes.
Additional information: link
BullDogeChain.swapAndLiquify(uint256) (#640-669) ignores return value by uniswapV2Router.addLiquidityETH{value: newBalance}(address(this),otherHalf,0,0,DEAD,block.timestamp) (#659-666)
Ensure that all the return values of the function calls are used.
Additional information: link
Context._msgData() (#36-39) is never used and should be removed
ERC20._burn(address,uint256) (#190-205) is never used and should be removed
Remove unused functions.
Additional information: link
Reentrancy in BullDogeChain.constructor() (#460-481):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#465-466)
State variables written after the call(s):
- _approve(address(this),address(uniswapV2Router),type()(uint256).max) (#471)
- _allowances[owner][spender] = amount (#215)
- _mint(owner(),2e8 * (10 ** 18)) (#479)
- _balances[account] += amount (#184)
- _isExcludedFromFees[owner()] = true (#475)
- _isExcludedFromFees[DEAD] = true (#476)
- _isExcludedFromFees[address(this)] = true (#477)
- _mint(owner(),2e8 * (10 ** 18)) (#479)
- _totalSupply += amount (#183)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#473)
- automatedMarketMakerPairs[pair] = value (#511)
- swapTokensAtAmount = totalSupply() / 5000 (#480)
- uniswapV2Pair = _uniswapV2Pair (#469)
- uniswapV2Router = _uniswapV2Router (#468)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in BullDogeChain._transfer(address,address,uint256) (#539-613):
External calls:
- swapAndLiquify(liquidityTokens) (#586)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(half,0,path,address(this),block.timestamp) (#650-655)
- uniswapV2Router.addLiquidityETH{value: newBalance}(address(this),otherHalf,0,0,DEAD,block.timestamp) (#659-666)
- swapAndSendTreasury(treasuryTokens) (#588)
- (success) = recipient.call{value: amount}() (#505)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#678-683)
External calls sending eth:
- swapAndLiquify(liquidityTokens) (#586)
- uniswapV2Router.addLiquidityETH{value: newBalance}(address(this),otherHalf,0,0,DEAD,block.timestamp) (#659-666)
- swapAndSendTreasury(treasuryTokens) (#588)
- (success) = recipient.call{value: amount}() (#505)
Event emitted after the call(s):
- SwapAndSendTreasury(tokenAmount,newBalance) (#689)
- swapAndSendTreasury(treasuryTokens) (#588)
- Transfer(sender,recipient,amount) (#173)
- super._transfer(from,address(this),fees) (#608)
- Transfer(sender,recipient,amount) (#173)
- super._transfer(from,to,amount) (#611)
Reentrancy in BullDogeChain.constructor() (#460-481):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#465-466)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#216)
- _approve(address(this),address(uniswapV2Router),type()(uint256).max) (#471)
- SetAutomatedMarketMakerPair(pair,value) (#513)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#473)
- Transfer(address(0),account,amount) (#185)
- _mint(owner(),2e8 * (10 ** 18)) (#479)
Reentrancy in BullDogeChain.swapAndLiquify(uint256) (#640-669):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(half,0,path,address(this),block.timestamp) (#650-655)
- uniswapV2Router.addLiquidityETH{value: newBalance}(address(this),otherHalf,0,0,DEAD,block.timestamp) (#659-666)
External calls sending eth:
- uniswapV2Router.addLiquidityETH{value: newBalance}(address(this),otherHalf,0,0,DEAD,block.timestamp) (#659-666)
Event emitted after the call(s):
- SwapAndLiquify(half,newBalance,otherHalf) (#668)
Reentrancy in BullDogeChain.swapAndSendTreasury(uint256) (#671-690):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#678-683)
- sendBNB(address(treasuryWallet),newBalance) (#687)
- (success) = recipient.call{value: amount}() (#505)
External calls sending eth:
- sendBNB(address(treasuryWallet),newBalance) (#687)
- (success) = recipient.call{value: amount}() (#505)
Event emitted after the call(s):
- SwapAndSendTreasury(tokenAmount,newBalance) (#689)
Apply the check-effects-interactions pattern.
Additional information: link
BullDogeChain._transfer(address,address,uint256) (#539-613) uses timestamp for comparisons
Dangerous comparisons:
- launchedAt == 0 && to == (uniswapV2Pair) (#553)
- launchedAt + 30 > block.timestamp (#555)
- require(bool,string)(block.timestamp - lastTransactionTime[from] >= 15,You need to wait 15 seconds before selling at launch) (#560)
- launchedAt > 0 (#563)
Avoid relying on block.timestamp.
Additional information: link
Pragma version0.8.16 (#7) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
solc-0.8.16 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 BullDogeChain.sendBNB(address,uint256) (#502-507):
- (success) = recipient.call{value: amount}() (#505)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#260) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#261) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#278) is not in mixedCase
Function IUniswapV2Router01.WETH() (#298) is not in mixedCase
Parameter BullDogeChain.changeMarketingWallet(address)._treasuryWallet (#528) is not in mixedCase
Parameter BullDogeChain.setAntibotStatus(bool)._antibotEnabled (#535) is not in mixedCase
Parameter BullDogeChain.setSwapEnabled(bool)._swapEnabled (#616) is not in mixedCase
Parameter BullDogeChain.setSwapWithLimit(bool)._swapWithLimit (#632) is not in mixedCase
Variable BullDogeChain.DEAD (#440) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#37)" inContext (#31-40)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#303) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#304)
Prevent variables from having similar names.
Additional information: link
BullDogeChain.slitherConstructorVariables() (#431-692) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#440)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
BullDogeChain.DEAD (#440) should be constant
BullDogeChain.liquidityFee (#432) should be constant
BullDogeChain.treasuryFee (#433) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#62-65)
name() should be declared external:
- ERC20.name() (#89-91)
symbol() should be declared external:
- ERC20.symbol() (#93-95)
decimals() should be declared external:
- ERC20.decimals() (#97-99)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#109-112)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#114-116)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#118-121)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#123-139)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#141-144)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#146-154)
isExcludedFromFees(address) should be declared external:
- BullDogeChain.isExcludedFromFees(address) (#524-526)
Use the external attribute for functions never called from the contract.
Additional information: link
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Token is relatively young, but twitter if very old (probably it's fake).
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account