Doge is coming to your Town, be ready!🌆
Game already published. We are the recovery-kings.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
DOGETOWN.addLiquidity(uint256,uint256) (#704-717) sends eth to arbitrary user
Dangerous calls:
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in DOGETOWN._transfer(address,address,uint256) (#570-631):
External calls:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#622)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
- (success) = recipient.call{value: amount}() (#122)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#728-734)
- address(marketingWallet).sendValue(marketingAmt) (#695)
- address(devWallet).sendValue(devAmt) (#700)
- swapAndLiquify(swapTokensAtAmount,taxes) (#623)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
- (success) = recipient.call{value: amount}() (#122)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#728-734)
- address(marketingWallet).sendValue(marketingAmt) (#695)
- address(devWallet).sendValue(devAmt) (#700)
External calls sending eth:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#622)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
- (success) = recipient.call{value: amount}() (#122)
- swapAndLiquify(swapTokensAtAmount,taxes) (#623)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
- (success) = recipient.call{value: amount}() (#122)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee,isSell) (#630)
- _rOwned[address(this)] += rLiquidity (#415)
- _rOwned[address(this)] += rDev (#433)
- _rOwned[address(this)] += rMarketing (#424)
- _rOwned[sender] = _rOwned[sender] - s.rAmount (#656)
- _rOwned[recipient] = _rOwned[recipient] + s.rTransferAmount (#657)
- _tokenTransfer(from,to,amount,takeFee,isSell) (#630)
- _rTotal -= rRfi (#405)
- _tokenTransfer(from,to,amount,takeFee,isSell) (#630)
- _tOwned[address(this)] += tDev (#431)
- _tOwned[address(this)] += tMarketing (#422)
- _tOwned[address(this)] += tLiquidity (#413)
- _tOwned[sender] = _tOwned[sender] - tAmount (#649)
- _tOwned[recipient] = _tOwned[recipient] + s.tTransferAmount (#653)
Apply the check-effects-interactions pattern.
Additional information: link
DOGETOWN.rescueAnyBEP20Tokens(address,address,uint256) (#804-810) ignores return value by IERC20(_tokenAddr).transfer(_to,_amount) (#809)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
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.
DOGETOWN.swapAndLiquify(uint256,DOGETOWN.Taxes) (#673-702) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - temp.liquidity) (#685)
-bnbToAddLiquidityWith = unitBalance * temp.liquidity (#686)
DOGETOWN.swapAndLiquify(uint256,DOGETOWN.Taxes) (#673-702) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - temp.liquidity) (#685)
-marketingAmt = unitBalance * 2 * temp.marketing (#693)
DOGETOWN.swapAndLiquify(uint256,DOGETOWN.Taxes) (#673-702) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - temp.liquidity) (#685)
-devAmt = unitBalance * 2 * temp.dev (#698)
Consider ordering multiplication before division.
Additional information: link
DOGETOWN.addLiquidity(uint256,uint256) (#704-717) ignores return value by router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
Ensure that all the return values of the function calls are used.
Additional information: link
DOGETOWN.allowance(address,address).owner (#265) shadows:
- Ownable.owner() (#59-61) (function)
DOGETOWN._approve(address,address,uint256).owner (#560) shadows:
- Ownable.owner() (#59-61) (function)
Rename the local variables that shadow another component.
Additional information: link
DOGETOWN.setTradingStatus(bool,uint256,uint256,uint256,uint256,uint256) (#328-341) should emit an event for:
- deadline = _deadline (#338)
DOGETOWN.updateCooldown(bool,uint256) (#751-754) should emit an event for:
- coolDownTime = time * 1 (#752)
DOGETOWN.updateSwapTokensAtAmount(uint256) (#756-758) should emit an event for:
- swapTokensAtAmount = amount * 10 ** _decimals (#757)
DOGETOWN.updateMaxTxLimit(uint256,uint256) (#784-787) should emit an event for:
- maxBuyLimit = maxBuy * 10 ** decimals() (#785)
- maxSellLimit = maxSell * 10 ** decimals() (#786)
DOGETOWN.updateMaxWalletlimit(uint256) (#789-791) should emit an event for:
- maxWalletLimit = amount * 10 ** decimals() (#790)
Emit an event for critical parameter changes.
Additional information: link
DOGETOWN.constructor(address)._pair (#218) lacks a zero-check on :
- pair = _pair (#221)
DOGETOWN.updateMarketingWallet(address).newWallet (#743) lacks a zero-check on :
- marketingWallet = newWallet (#744)
DOGETOWN.updateDevWallet(address).newWallet (#747) lacks a zero-check on :
- devWallet = newWallet (#748)
DOGETOWN.updateRouterAndPair(address,address).newPair (#793) lacks a zero-check on :
- pair = newPair (#795)
Check that the address is not zero.
Additional information: link
Reentrancy in DOGETOWN._transfer(address,address,uint256) (#570-631):
External calls:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#622)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
- (success) = recipient.call{value: amount}() (#122)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#728-734)
- address(marketingWallet).sendValue(marketingAmt) (#695)
- address(devWallet).sendValue(devAmt) (#700)
- swapAndLiquify(swapTokensAtAmount,taxes) (#623)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
- (success) = recipient.call{value: amount}() (#122)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#728-734)
- address(marketingWallet).sendValue(marketingAmt) (#695)
- address(devWallet).sendValue(devAmt) (#700)
External calls sending eth:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#622)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
- (success) = recipient.call{value: amount}() (#122)
- swapAndLiquify(swapTokensAtAmount,taxes) (#623)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
- (success) = recipient.call{value: amount}() (#122)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee,isSell) (#630)
- totFeesPaid.dev += tDev (#428)
- totFeesPaid.marketing += tMarketing (#419)
- totFeesPaid.liquidity += tLiquidity (#410)
- totFeesPaid.rfi += tRfi (#406)
Reentrancy in DOGETOWN.constructor(address) (#216-240):
External calls:
- _pair = IFactory(_router.factory()).createPair(address(this),_router.WETH()) (#218)
State variables written after the call(s):
- excludeFromReward(pair) (#223)
- _excluded.push(account) (#356)
- excludeFromReward(deadWallet) (#224)
- _excluded.push(account) (#356)
- excludeFromReward(pair) (#223)
- _isExcluded[account] = true (#355)
- excludeFromReward(deadWallet) (#224)
- _isExcluded[account] = true (#355)
- _isExcludedFromFee[address(this)] = true (#227)
- _isExcludedFromFee[owner()] = true (#228)
- _isExcludedFromFee[marketingWallet] = true (#229)
- _isExcludedFromFee[devWallet] = true (#230)
- _isExcludedFromFee[deadWallet] = true (#231)
- _rOwned[owner()] = _rTotal (#226)
- excludeFromReward(pair) (#223)
- _tOwned[account] = tokenFromReflection(_rOwned[account]) (#353)
- excludeFromReward(deadWallet) (#224)
- _tOwned[account] = tokenFromReflection(_rOwned[account]) (#353)
- allowedTransfer[address(this)] = true (#233)
- allowedTransfer[owner()] = true (#234)
- allowedTransfer[pair] = true (#235)
- allowedTransfer[marketingWallet] = true (#236)
- allowedTransfer[devWallet] = true (#237)
- pair = _pair (#221)
- router = _router (#220)
Reentrancy in DOGETOWN.swapAndLiquify(uint256,DOGETOWN.Taxes) (#673-702):
External calls:
- swapTokensForBNB(toSwap) (#682)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#728-734)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#690)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
External calls sending eth:
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#690)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
State variables written after the call(s):
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#690)
- _allowances[owner][spender] = amount (#566)
Reentrancy in DOGETOWN.transferFrom(address,address,uint256) (#274-286):
External calls:
- _transfer(sender,recipient,amount) (#279)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
- (success) = recipient.call{value: amount}() (#122)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#728-734)
- address(marketingWallet).sendValue(marketingAmt) (#695)
- address(devWallet).sendValue(devAmt) (#700)
External calls sending eth:
- _transfer(sender,recipient,amount) (#279)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
- (success) = recipient.call{value: amount}() (#122)
State variables written after the call(s):
- _approve(sender,_msgSender(),currentAllowance - amount) (#283)
- _allowances[owner][spender] = amount (#566)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in DOGETOWN._transfer(address,address,uint256) (#570-631):
External calls:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#622)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
- (success) = recipient.call{value: amount}() (#122)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#728-734)
- address(marketingWallet).sendValue(marketingAmt) (#695)
- address(devWallet).sendValue(devAmt) (#700)
- swapAndLiquify(swapTokensAtAmount,taxes) (#623)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
- (success) = recipient.call{value: amount}() (#122)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#728-734)
- address(marketingWallet).sendValue(marketingAmt) (#695)
- address(devWallet).sendValue(devAmt) (#700)
External calls sending eth:
- swapAndLiquify(swapTokensAtAmount,sellTaxes) (#622)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
- (success) = recipient.call{value: amount}() (#122)
- swapAndLiquify(swapTokensAtAmount,taxes) (#623)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
- (success) = recipient.call{value: amount}() (#122)
Event emitted after the call(s):
- Transfer(sender,address(this),s.tLiquidity + s.tMarketing + s.tDev) (#662-666)
- _tokenTransfer(from,to,amount,takeFee,isSell) (#630)
- Transfer(sender,recipient,s.tTransferAmount) (#670)
- _tokenTransfer(from,to,amount,takeFee,isSell) (#630)
Reentrancy in DOGETOWN.constructor(address) (#216-240):
External calls:
- _pair = IFactory(_router.factory()).createPair(address(this),_router.WETH()) (#218)
Event emitted after the call(s):
- Transfer(address(0),owner(),_tTotal) (#239)
Reentrancy in DOGETOWN.swapAndLiquify(uint256,DOGETOWN.Taxes) (#673-702):
External calls:
- swapTokensForBNB(toSwap) (#682)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#728-734)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#690)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
External calls sending eth:
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#690)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#567)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#690)
Reentrancy in DOGETOWN.transferFrom(address,address,uint256) (#274-286):
External calls:
- _transfer(sender,recipient,amount) (#279)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
- (success) = recipient.call{value: amount}() (#122)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#728-734)
- address(marketingWallet).sendValue(marketingAmt) (#695)
- address(devWallet).sendValue(devAmt) (#700)
External calls sending eth:
- _transfer(sender,recipient,amount) (#279)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
- (success) = recipient.call{value: amount}() (#122)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#567)
- _approve(sender,_msgSender(),currentAllowance - amount) (#283)
Apply the check-effects-interactions pattern.
Additional information: link
DOGETOWN._transfer(address,address,uint256) (#570-631) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(timePassed >= coolDownTime,Cooldown enabled) (#608)
Avoid relying on block.timestamp.
Additional information: link
DOGETOWN.setTradingStatus(bool,uint256,uint256,uint256,uint256,uint256) (#328-341) compares to a boolean constant:
-state == true (#340)
Remove the equality to the boolean constant.
Additional information: link
DOGETOWN.includeInReward(address) (#359-370) has costly operations inside a loop:
- _excluded.pop() (#366)
Use a local variable to hold the loop computation result.
Additional information: link
Context._msgData() (#44-47) is never used and should be removed
Remove unused functions.
Additional information: link
DOGETOWN._rTotal (#156) is set pre-construction with a non-constant function or state variable:
- (MAX - (MAX % _tTotal))
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
Low level call in Address.sendValue(address,uint256) (#119-124):
- (success) = recipient.call{value: amount}() (#122)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IRouter.WETH() (#91) is not in mixedCase
Struct DOGETOWN.valuesFromGetValues (#193-205) is not in CapWords
Parameter DOGETOWN.setTradingStatus(bool,uint256,uint256,uint256,uint256,uint256)._deadline (#330) is not in mixedCase
Parameter DOGETOWN.setTaxes(uint256,uint256,uint256,uint256)._rfi (#385) is not in mixedCase
Parameter DOGETOWN.setTaxes(uint256,uint256,uint256,uint256)._marketing (#386) is not in mixedCase
Parameter DOGETOWN.setTaxes(uint256,uint256,uint256,uint256)._liquidity (#387) is not in mixedCase
Parameter DOGETOWN.setTaxes(uint256,uint256,uint256,uint256)._dev (#388) is not in mixedCase
Parameter DOGETOWN.setSellTaxes(uint256,uint256,uint256,uint256)._rfi (#395) is not in mixedCase
Parameter DOGETOWN.setSellTaxes(uint256,uint256,uint256,uint256)._marketing (#396) is not in mixedCase
Parameter DOGETOWN.setSellTaxes(uint256,uint256,uint256,uint256)._liquidity (#397) is not in mixedCase
Parameter DOGETOWN.setSellTaxes(uint256,uint256,uint256,uint256)._dev (#398) is not in mixedCase
Parameter DOGETOWN.updateSwapEnabled(bool)._enabled (#760) is not in mixedCase
Parameter DOGETOWN.rescueAnyBEP20Tokens(address,address,uint256)._tokenAddr (#805) is not in mixedCase
Parameter DOGETOWN.rescueAnyBEP20Tokens(address,address,uint256)._to (#806) is not in mixedCase
Parameter DOGETOWN.rescueAnyBEP20Tokens(address,address,uint256)._amount (#807) is not in mixedCase
Constant DOGETOWN._decimals (#152) is not in UPPER_CASE_WITH_UNDERSCORES
Variable DOGETOWN.genesis_block (#163) is not in mixedCase
Constant DOGETOWN._name (#170) is not in UPPER_CASE_WITH_UNDERSCORES
Constant DOGETOWN._symbol (#171) is not in UPPER_CASE_WITH_UNDERSCORES
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#45)" inContext (#39-48)
Remove redundant statements if they congest code but offer no value.
Additional information: link
DOGETOWN.slitherConstructorVariables() (#127-814) uses literals with too many digits:
- deadWallet = 0x000000000000000000000000000000000000dEaD (#166)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
DOGETOWN._tTotal (#155) should be constant
DOGETOWN.deadWallet (#166) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#68-70)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#72-75)
name() should be declared external:
- DOGETOWN.name() (#243-245)
symbol() should be declared external:
- DOGETOWN.symbol() (#247-249)
totalSupply() should be declared external:
- DOGETOWN.totalSupply() (#256-258)
allowance(address,address) should be declared external:
- DOGETOWN.allowance(address,address) (#265-267)
approve(address,uint256) should be declared external:
- DOGETOWN.approve(address,uint256) (#269-272)
transferFrom(address,address,uint256) should be declared external:
- DOGETOWN.transferFrom(address,address,uint256) (#274-286)
increaseAllowance(address,uint256) should be declared external:
- DOGETOWN.increaseAllowance(address,uint256) (#288-291)
decreaseAllowance(address,uint256) should be declared external:
- DOGETOWN.decreaseAllowance(address,uint256) (#293-302)
transfer(address,uint256) should be declared external:
- DOGETOWN.transfer(address,uint256) (#304-307)
isExcludedFromReward(address) should be declared external:
- DOGETOWN.isExcludedFromReward(address) (#309-311)
reflectionFromToken(uint256,bool) should be declared external:
- DOGETOWN.reflectionFromToken(uint256,bool) (#313-326)
excludeFromFee(address) should be declared external:
- DOGETOWN.excludeFromFee(address) (#372-374)
includeInFee(address) should be declared external:
- DOGETOWN.includeInFee(address) (#376-378)
isExcludedFromFee(address) should be declared external:
- DOGETOWN.isExcludedFromFee(address) (#380-382)
setTaxes(uint256,uint256,uint256,uint256) should be declared external:
- DOGETOWN.setTaxes(uint256,uint256,uint256,uint256) (#384-392)
setSellTaxes(uint256,uint256,uint256,uint256) should be declared external:
- DOGETOWN.setSellTaxes(uint256,uint256,uint256,uint256) (#394-402)
rescueAnyBEP20Tokens(address,address,uint256) should be declared external:
- DOGETOWN.rescueAnyBEP20Tokens(address,address,uint256) (#804-810)
Use the external attribute for functions never called from the contract.
Additional information: link
Average 30d PancakeSwap liquidity is less than $100. Token is either dead or inactive.
Average 30d PancakeSwap volume is less than $100. Token is either dead or inactive.
Average 30d number of PancakeSwap swaps is less than 1. Token is either dead or inactive.
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Contract has 12% buy tax and 12% sell tax.
Taxes are high (over 10%) but contract ownership is renounced.
Number of Binance Smart Chain (BSC) token holders is low.
Token is deployed only at one blockchain
Token has only one trading pair
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
Young tokens have high risks of price dump / death
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account
Twitter account has few posts