After DogeKing & DogeQueen pump, we all know the next one that's gonna pump.
@DOGEJACK
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
DogeJack.swapBack() (#303-344) sends eth to arbitrary user
Dangerous calls:
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#328)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#330)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in DogeJack._transferFrom(address,address,uint256) (#246-269):
External calls:
- swapBack() (#257)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#314-320)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#328)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#330)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#334-341)
External calls sending eth:
- swapBack() (#257)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#328)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#330)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#334-341)
State variables written after the call(s):
- _balances[sender] = _balances[sender] - amount (#261)
- _balances[recipient] = _balances[recipient] + (amountReceived) (#265)
- amountReceived = takeFee(sender,amount) (#264)
- _balances[address(this)] = _balances[address(this)] + (feeAmount) (#290)
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.
DogeJack.takeFee(address,uint256) (#284-294) performs a multiplication on the result of a division:
-feeAmount = amount / 100 * actualFee (#288)
DogeJack.slitherConstructorVariables() (#125-423) performs a multiplication on the result of a division:
-swapThreshold = _totalSupply / 10000 * 5 (#185)
Consider ordering multiplication before division.
Additional information: link
DogeJack.swapBack() (#303-344) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#334-341)
Ensure that all the return values of the function calls are used.
Additional information: link
DogeJack.setFees(uint256,uint256,uint256,uint56,uint256) (#386-394) should emit an event for:
- sellLpFee = _liquidityFee (#387)
- sellMarketingFee = _sellMarketingFee (#388)
- sellBuyBackFee = _sellBuybackFee (#389)
- sellTotalFee = _sellMarketingFee + _sellBuybackFee + _liquidityFee (#390)
- buyMarketingFee = _buyMarketingFee (#391)
- buyBuyBackFee = _buyBuybackFee (#392)
- buyTotalFee = _buyMarketingFee + _buyBuybackFee (#393)
Emit an event for critical parameter changes.
Additional information: link
DogeJack.setFeeReceiver(address,address)._marketingFeeReceiver (#396) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#397)
DogeJack.setFeeReceiver(address,address)._buybackFeeReceiver (#396) lacks a zero-check on :
- buybackFeeReceiver = _buybackFeeReceiver (#398)
Check that the address is not zero.
Additional information: link
Reentrancy in DogeJack._transferFrom(address,address,uint256) (#246-269):
External calls:
- swapBack() (#257)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#314-320)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#328)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#330)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#334-341)
External calls sending eth:
- swapBack() (#257)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#328)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#330)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#334-341)
State variables written after the call(s):
- amountReceived = takeFee(sender,amount) (#264)
- actualFee = buyTotalFee (#286)
- actualFee = sellTotalFee (#287)
- launch() (#259)
- launchedAt = block.timestamp (#351)
Reentrancy in DogeJack.constructor() (#190-210):
External calls:
- pair = IDEXFactory(router.factory()).createPair(address(this),router.WETH()) (#192)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = type()(uint256).max (#193)
- _balances[_owner] = _liqSupply (#206)
- _balances[_DEAD] = _burntSupply (#207)
- isFeeExempt[_owner] = true (#198)
- isFeeExempt[marketingFeeReceiver] = true (#199)
- isFeeExempt[buybackFeeReceiver] = true (#200)
- isTxLimitExempt[_owner] = true (#202)
- isTxLimitExempt[marketingFeeReceiver] = true (#203)
- isTxLimitExempt[buybackFeeReceiver] = true (#204)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in DogeJack._transferFrom(address,address,uint256) (#246-269):
External calls:
- swapBack() (#257)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#314-320)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#328)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#330)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#334-341)
External calls sending eth:
- swapBack() (#257)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#328)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#330)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#334-341)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#291)
- amountReceived = takeFee(sender,amount) (#264)
- Transfer(sender,recipient,amountReceived) (#267)
Reentrancy in DogeJack.constructor() (#190-210):
External calls:
- pair = IDEXFactory(router.factory()).createPair(address(this),router.WETH()) (#192)
Event emitted after the call(s):
- Transfer(address(0),_owner,_liqSupply) (#208)
- Transfer(address(0),_DEAD,_burntSupply) (#209)
Reentrancy in DogeJack.swapBack() (#303-344):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#314-320)
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#328)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#330)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#334-341)
External calls sending eth:
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#328)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#330)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,marketingFeeReceiver,block.timestamp) (#334-341)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#342)
Apply the check-effects-interactions pattern.
Additional information: link
DogeJack._transferFrom(address,address,uint256) (#246-269) uses timestamp for comparisons
Dangerous comparisons:
- ! launched() && recipient == pair (#259)
DogeJack.launched() (#346-348) uses timestamp for comparisons
Dangerous comparisons:
- launchedAt != 0 (#347)
Avoid relying on block.timestamp.
Additional information: link
DogeJack._liqSupply (#153) is set pre-construction with a non-constant function or state variable:
- (_totalSupply - _burntSupply)
DogeJack.buyTotalFee (#161) is set pre-construction with a non-constant function or state variable:
- buyMarketingFee + buyBuyBackFee
DogeJack.sellTotalFee (#166) 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 (#3) 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 DogeJack.swapBack() (#303-344):
- (MarketingSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#328)
- (buybackSuccess) = address(buybackFeeReceiver).call{gas: 30000,value: amountBNBbuyback}() (#330)
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() (#75) is not in mixedCase
Parameter DogeJack.setTargetLiquidity(uint256)._target (#371) is not in mixedCase
Parameter DogeJack.setFees(uint256,uint256,uint256,uint56,uint256)._liquidityFee (#386) is not in mixedCase
Parameter DogeJack.setFees(uint256,uint256,uint256,uint56,uint256)._buyMarketingFee (#386) is not in mixedCase
Parameter DogeJack.setFees(uint256,uint256,uint256,uint56,uint256)._buyBuybackFee (#386) is not in mixedCase
Parameter DogeJack.setFees(uint256,uint256,uint256,uint56,uint256)._sellMarketingFee (#386) is not in mixedCase
Parameter DogeJack.setFees(uint256,uint256,uint256,uint56,uint256)._sellBuybackFee (#386) is not in mixedCase
Parameter DogeJack.setFeeReceiver(address,address)._marketingFeeReceiver (#396) is not in mixedCase
Parameter DogeJack.setFeeReceiver(address,address)._buybackFeeReceiver (#396) is not in mixedCase
Parameter DogeJack.setSwapBackSettings(bool,uint256)._enabled (#402) is not in mixedCase
Parameter DogeJack.setSwapBackSettings(bool,uint256)._amount (#402) is not in mixedCase
Function DogeJack.ClearStuckBalance() (#411-415) is not in mixedCase
Parameter DogeJack.transferForeignToken(address)._token (#417) is not in mixedCase
Variable DogeJack._balances (#140) is not in mixedCase
Variable DogeJack._allowances (#141) is not in mixedCase
Constant DogeJack._name (#146) is not in UPPER_CASE_WITH_UNDERSCORES
Constant DogeJack._symbol (#147) is not in UPPER_CASE_WITH_UNDERSCORES
Constant DogeJack._decimals (#148) is not in UPPER_CASE_WITH_UNDERSCORES
Constant DogeJack._totalSupply (#151) is not in UPPER_CASE_WITH_UNDERSCORES
Variable DogeJack._burntSupply (#152) is not in mixedCase
Variable DogeJack._liqSupply (#153) is not in mixedCase
Variable DogeJack._maxWalletSize (#156) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Reentrancy in DogeJack.ClearStuckBalance() (#411-415):
External calls:
- address(marketingFeeReceiver).transfer(contractETHBalance) (#413)
Event emitted after the call(s):
- StuckBalanceSent(contractETHBalance,marketingFeeReceiver) (#414)
Reentrancy in DogeJack.transferForeignToken(address) (#417-421):
External calls:
- address(marketingFeeReceiver).transfer(_contractBalance) (#419)
Event emitted after the call(s):
- ForeignTokenTransfer(_token,_contractBalance) (#420)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#80) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#81)
Prevent variables from having similar names.
Additional information: link
DogeJack.slitherConstructorConstantVariables() (#125-423) uses literals with too many digits:
- _totalSupply = 10000000 * (10 ** _decimals) (#151)
DogeJack.slitherConstructorConstantVariables() (#125-423) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#173)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
Ownable._previousOwner (#42) is never used in DogeJack (#125-423)
Remove unused state variables.
Additional information: link
DogeJack._burntSupply (#152) should be constant
Ownable._previousOwner (#42) 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) (#58-62)
transferForeignToken(address) should be declared external:
- DogeJack.transferForeignToken(address) (#417-421)
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 Twitter account
Telegram account has less than 100 subscribers
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account