DogeZilla is a community-driven project, Memecoin + Utility in the crypto sphere.
DOGEZILLA.takeFee(uint256) (#1369-1413) sends eth to arbitrary user
Dangerous calls:
- (success,None) = address(stakingFeeAddress).call{gas: 50000,value: ethForStaking}() (#1400-1403)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in DOGEZILLA.takeFee(uint256) (#1369-1413):
External calls:
- swapTokensForETH(toSwap) (#1383)
- uniswapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1419-1425)
- addLiquidity(tokensForLiquidity,ethForLiquidity) (#1392)
- uniswapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1429-1436)
- (success,None) = address(marketingFeeAddress).call{gas: 50000,value: ethForMarketing}() (#1396-1399)
- (success,None) = address(stakingFeeAddress).call{gas: 50000,value: ethForStaking}() (#1400-1403)
External calls sending eth:
- addLiquidity(tokensForLiquidity,ethForLiquidity) (#1392)
- uniswapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1429-1436)
- (success,None) = address(marketingFeeAddress).call{gas: 50000,value: ethForMarketing}() (#1396-1399)
- (success,None) = address(stakingFeeAddress).call{gas: 50000,value: ethForStaking}() (#1400-1403)
State variables written after the call(s):
- _burnFeeTokens = 0 (#1411)
- _liquidityTokensToSwap = 0 (#1409)
- _marketingFeeTokensToSwap = 0 (#1410)
- _stakingFeeTokens = 0 (#1412)
Reentrancy in DOGEZILLA._transfer(address,address,uint256) (#1289-1367):
External calls:
- takeFee(contractTokenBalance) (#1310)
- uniswapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1429-1436)
- uniswapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1419-1425)
- (success,None) = address(marketingFeeAddress).call{gas: 50000,value: ethForMarketing}() (#1396-1399)
- (success,None) = address(stakingFeeAddress).call{gas: 50000,value: ethForStaking}() (#1400-1403)
External calls sending eth:
- takeFee(contractTokenBalance) (#1310)
- uniswapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1429-1436)
- (success,None) = address(marketingFeeAddress).call{gas: 50000,value: ethForMarketing}() (#1396-1399)
- (success,None) = address(stakingFeeAddress).call{gas: 50000,value: ethForStaking}() (#1400-1403)
State variables written after the call(s):
- super._transfer(from,to,_transferAmount) (#1355)
- _balances[from] = fromBalance - amount (#860)
- _balances[to] += amount (#862)
- super._transfer(from,address(this),_feeTotal) (#1361)
- _balances[from] = fromBalance - amount (#860)
- _balances[to] += amount (#862)
- _burnFeeTokens += _burnFee (#1364)
- _liquidityTokensToSwap += _liquidityFee (#1362)
- _marketingFeeTokensToSwap += _marketingFee (#1363)
- _stakingFeeTokens += _stakingFee (#1365)
Apply the check-effects-interactions pattern.
Additional information: link
Contract ownership is not renounced (belongs to a wallet)
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.
DOGEZILLA.takeFee(uint256).success (#1394) is written in both
(success,None) = address(marketingFeeAddress).call{gas: 50000,value: ethForMarketing}() (#1396-1399)
(success,None) = address(stakingFeeAddress).call{gas: 50000,value: ethForStaking}() (#1400-1403)
Fix or remove the writes.
Additional information: link
DOGEZILLA.addLiquidity(uint256,uint256) (#1428-1437) ignores return value by uniswapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1429-1436)
Ensure that all the return values of the function calls are used.
Additional information: link
DOGEZILLA.getSoldLastPeriod(address) (#1532-1559) uses timestamp for comparisons
Dangerous comparisons:
- block.timestamp - limitPeriod <= sellTimestamp (#1553)
Avoid relying on block.timestamp.
Additional information: link
Parameter DOGEZILLA.getLimits(address)._address (#1475) is not in mixedCase
Parameter DOGEZILLA.getSoldLastPeriod(address)._address (#1532) is not in mixedCase
Parameter DOGEZILLA.updateSellFee(uint16,uint16,uint16,uint16)._sellMarketingFee (#1236) is not in mixedCase
Constant DOGEZILLA.maxFeeLimit (#1026) is not in UPPER_CASE_WITH_UNDERSCORES
Parameter DOGEZILLA.updateTransferFee(uint16,uint16,uint16,uint16)._transferStakingfee (#1257) is not in mixedCase
Parameter DOGEZILLA.updateBuyFee(uint16,uint16,uint16,uint16)._buyBurnFee (#1214) is not in mixedCase
Parameter DOGEZILLA.updateBuyFee(uint16,uint16,uint16,uint16)._buyLiquidityFee (#1215) is not in mixedCase
Parameter DOGEZILLA.updateBuyFee(uint16,uint16,uint16,uint16)._buyMarketingFee (#1216) is not in mixedCase
Parameter DOGEZILLA.updateTransferFee(uint16,uint16,uint16,uint16)._transferBurnFee (#1254) is not in mixedCase
Parameter DOGEZILLA.updateBuyFee(uint16,uint16,uint16,uint16)._buyStakingFee (#1217) is not in mixedCase
Constant DOGEZILLA.feeDenominator (#1024) is not in UPPER_CASE_WITH_UNDERSCORES
Parameter DOGEZILLA.updateTransferFee(uint16,uint16,uint16,uint16)._transferMarketingFee (#1256) is not in mixedCase
Constant DOGEZILLA.lpDenominator (#1025) is not in UPPER_CASE_WITH_UNDERSCORES
Parameter DOGEZILLA.updateSellFee(uint16,uint16,uint16,uint16)._sellBurnFee (#1234) is not in mixedCase
Function IUniswapRouter01.WETH() (#22) is not in mixedCase
Parameter DOGEZILLA.updateSellFee(uint16,uint16,uint16,uint16)._sellStakingFee (#1237) is not in mixedCase
Parameter DOGEZILLA.updateSellFee(uint16,uint16,uint16,uint16)._sellLiquidityFee (#1235) is not in mixedCase
Parameter DOGEZILLA.updateTransferFee(uint16,uint16,uint16,uint16)._transferLiquidityFee (#1255) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#85)" inContext (#78-88)
Remove redundant statements if they congest code but offer no value.
Additional information: link
DOGEZILLA.constructor() (#1071-1110) uses literals with too many digits:
- _mint(msg.sender,6900000000000 * 10 ** decimals()) (#1072)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
DOGEZILLA.takeFee(uint256) (#1369-1413) performs a multiplication on the result of a division:
-tokensForLiquidity = _liquidityTokensToSwap / 2 (#1378)
-ethForLiquidity = (ethBalance * tokensForLiquidity) / toSwap (#1388)
Consider ordering multiplication before division.
Additional information: link
Address.sendValue(address,uint256) (#205-216) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#268-280) is never used and should be removed
Address.functionDelegateCall(address,bytes,string) (#366-375) is never used and should be removed
Address.functionDelegateCall(address,bytes) (#348-358) is never used and should be removed
SafeERC20.safeIncreaseAllowance(IERC20,address,uint256) (#457-471) is never used and should be removed
SafeERC20.safeApprove(IERC20,address,uint256) (#439-455) is never used and should be removed
SafeERC20.safeTransferFrom(IERC20,address,address,uint256) (#420-430) is never used and should be removed
Context._msgData() (#84-87) is never used and should be removed
Address.functionStaticCall(address,bytes) (#312-323) is never used and should be removed
SafeERC20.safeDecreaseAllowance(IERC20,address,uint256) (#473-494) is never used and should be removed
Address.functionStaticCall(address,bytes,string) (#331-340) is never used and should be removed
Address.functionCall(address,bytes) (#236-241) is never used and should be removed
Remove unused functions.
Additional information: link
solc-0.8.17 is not recommended for deployment
Pragma version^0.8.17 (#17) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
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 Address.sendValue(address,uint256) (#205-216):
- (success) = recipient.call{value: amount}() (#211)
Low level call in Address.functionStaticCall(address,bytes,string) (#331-340):
- (success,returndata) = target.staticcall(data) (#338)
Low level call in Address.functionDelegateCall(address,bytes,string) (#366-375):
- (success,returndata) = target.delegatecall(data) (#373)
Low level call in Address.functionCallWithValue(address,bytes,uint256,string) (#288-304):
- (success,returndata) = target.call{value: value}(data) (#300-302)
Low level call in DOGEZILLA.takeFee(uint256) (#1369-1413):
- (success,None) = address(marketingFeeAddress).call{gas: 50000,value: ethForMarketing}() (#1396-1399)
- (success,None) = address(stakingFeeAddress).call{gas: 50000,value: ethForStaking}() (#1400-1403)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
DOGEZILLA._transfer(address,address,uint256)._marketingFee (#1315) is a local variable never initialized
DOGEZILLA.removeLimits(address[]).i (#1484) is a local variable never initialized
DOGEZILLA._transfer(address,address,uint256)._liquidityFee (#1314) is a local variable never initialized
DOGEZILLA._transfer(address,address,uint256)._burnFee (#1313) is a local variable never initialized
DOGEZILLA._transfer(address,address,uint256)._stakingFee (#1316) 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
DOGEZILLA.updateSellFee(uint16,uint16,uint16,uint16) (#1233-1251) should emit an event for:
- sellBurnFee = _sellBurnFee (#1239)
- sellLiquidityFee = _sellLiquidityFee (#1240)
- sellMarketingFee = _sellMarketingFee (#1241)
- sellStakingFee = _sellStakingFee (#1242)
DOGEZILLA.updateBuyFee(uint16,uint16,uint16,uint16) (#1213-1231) should emit an event for:
- buyBurnFee = _buyBurnFee (#1219)
- buyLiquidityFee = _buyLiquidityFee (#1220)
- buyMarketingFee = _buyMarketingFee (#1221)
- buyStakingFee = _buyStakingFee (#1222)
DOGEZILLA.updateTransferFee(uint16,uint16,uint16,uint16) (#1253-1271) should emit an event for:
- transferBurnFee = _transferBurnFee (#1259)
- transferLiquidityFee = _transferLiquidityFee (#1260)
- transferMarketingFee = _transferMarketingFee (#1261)
- transferStakingFee = _transferStakingfee (#1262)
DOGEZILLA.updateMinLpBeforeSwapping(uint256) (#1185-1190) should emit an event for:
- minLpBeforeSwapping = minLpBeforeSwapping_ (#1189)
DOGEZILLA.setGlobalLimit(uint256) (#1461-1464) should emit an event for:
- globalLimit = newLimit (#1463)
DOGEZILLA.setGlobalLimitPeriod(uint256) (#1466-1469) should emit an event for:
- globalLimitPeriod = newPeriod (#1468)
Emit an event for critical parameter changes.
Additional information: link
Reentrancy in DOGEZILLA._transfer(address,address,uint256) (#1289-1367):
External calls:
- takeFee(contractTokenBalance) (#1310)
- uniswapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1429-1436)
- uniswapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1419-1425)
- (success,None) = address(marketingFeeAddress).call{gas: 50000,value: ethForMarketing}() (#1396-1399)
- (success,None) = address(stakingFeeAddress).call{gas: 50000,value: ethForStaking}() (#1400-1403)
External calls sending eth:
- takeFee(contractTokenBalance) (#1310)
- uniswapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1429-1436)
- (success,None) = address(marketingFeeAddress).call{gas: 50000,value: ethForMarketing}() (#1396-1399)
- (success,None) = address(stakingFeeAddress).call{gas: 50000,value: ethForStaking}() (#1400-1403)
State variables written after the call(s):
- _handleLimited(from,to,amount - _burnFee - _liquidityFee - _marketingFee - _stakingFee) (#1343-1347)
- _limits[from].sellTimestamps.push(block.timestamp) (#1597)
- _limits[from].sellAmounts.push(ethValue) (#1598)
Reentrancy in DOGEZILLA.takeFee(uint256) (#1369-1413):
External calls:
- swapTokensForETH(toSwap) (#1383)
- uniswapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1419-1425)
- addLiquidity(tokensForLiquidity,ethForLiquidity) (#1392)
- uniswapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1429-1436)
- (success,None) = address(marketingFeeAddress).call{gas: 50000,value: ethForMarketing}() (#1396-1399)
- (success,None) = address(stakingFeeAddress).call{gas: 50000,value: ethForStaking}() (#1400-1403)
External calls sending eth:
- addLiquidity(tokensForLiquidity,ethForLiquidity) (#1392)
- uniswapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1429-1436)
- (success,None) = address(marketingFeeAddress).call{gas: 50000,value: ethForMarketing}() (#1396-1399)
- (success,None) = address(stakingFeeAddress).call{gas: 50000,value: ethForStaking}() (#1400-1403)
State variables written after the call(s):
- _burn(address(this),_burnFeeTokens) (#1406)
- _balances[account] = accountBalance - amount (#909)
- _burn(address(this),_burnFeeTokens) (#1406)
- _totalSupply -= amount (#911)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in DOGEZILLA.takeFee(uint256) (#1369-1413):
External calls:
- swapTokensForETH(toSwap) (#1383)
- uniswapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1419-1425)
- addLiquidity(tokensForLiquidity,ethForLiquidity) (#1392)
- uniswapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1429-1436)
- (success,None) = address(marketingFeeAddress).call{gas: 50000,value: ethForMarketing}() (#1396-1399)
- (success,None) = address(stakingFeeAddress).call{gas: 50000,value: ethForStaking}() (#1400-1403)
External calls sending eth:
- addLiquidity(tokensForLiquidity,ethForLiquidity) (#1392)
- uniswapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1429-1436)
- (success,None) = address(marketingFeeAddress).call{gas: 50000,value: ethForMarketing}() (#1396-1399)
- (success,None) = address(stakingFeeAddress).call{gas: 50000,value: ethForStaking}() (#1400-1403)
Event emitted after the call(s):
- Transfer(account,address(0),amount) (#913)
- _burn(address(this),_burnFeeTokens) (#1406)
Reentrancy in DOGEZILLA._transfer(address,address,uint256) (#1289-1367):
External calls:
- takeFee(contractTokenBalance) (#1310)
- uniswapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1429-1436)
- uniswapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1419-1425)
- (success,None) = address(marketingFeeAddress).call{gas: 50000,value: ethForMarketing}() (#1396-1399)
- (success,None) = address(stakingFeeAddress).call{gas: 50000,value: ethForStaking}() (#1400-1403)
External calls sending eth:
- takeFee(contractTokenBalance) (#1310)
- uniswapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1429-1436)
- (success,None) = address(marketingFeeAddress).call{gas: 50000,value: ethForMarketing}() (#1396-1399)
- (success,None) = address(stakingFeeAddress).call{gas: 50000,value: ethForStaking}() (#1400-1403)
Event emitted after the call(s):
- Transfer(from,to,amount) (#864)
- super._transfer(from,to,_transferAmount) (#1355)
- Transfer(from,to,amount) (#864)
- super._transfer(from,address(this),_feeTotal) (#1361)
Apply the check-effects-interactions pattern.
Additional information: link
Address.verifyCallResult(bool,bytes,string) (#383-403) uses assembly
- INLINE ASM (#395-398)
Do not use evm assembly.
Additional information: link
DOGEZILLA.removeBotWallet(address) (#1148-1158) has costly operations inside a loop:
- botWallets.pop() (#1154)
Use a local variable to hold the loop computation result.
Additional information: link
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#763-772)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#127-129)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#813-828)
symbol() should be declared external:
- ERC20.symbol() (#655-657)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#704-712)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#786-797)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#135-141)
name() should be declared external:
- ERC20.name() (#647-649)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#737-745)
Use the external attribute for functions never called from the contract.
Additional information: link
Contract has 0% buy tax and 10% sell tax.
Taxes are low but contract ownership is not renounced. Token has a high risk of becoming a honeypot.
Token is deployed only at one blockchain
Token has only one trading pair
Unable to find PancakeSwap trading pair to compute liquidity.
Unable to find PancakeSwap trading pair to compute number of swaps.
Token has no active CoinGecko listing / rank
Young tokens have high risks of price dump / death
Twitter account link seems to be invalid
Unable to find Blog account (Reddit or Medium)
Unable to find Discord account