DUDE Token Token Logo

DUDE Token

About DUDE

Listings

Not Found
Token 2 years

Website

Not Found

Description

Not Found

Social

Not Found

Laser Scorebeta Last Audit: 2 March 2022

report
Token seems to be anonymous. As long as we are unable to find website score is limited.


Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)

Reentrancy in DudeToken._transfer(address,address,uint256) (#1310-1448):
External calls:
- swapBack() (#1400)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1473-1480)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1459-1465)
- (success,None) = address(devWallet).call{value: ethForDev}() (#1521)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1532-1534)
External calls sending eth:
- swapBack() (#1400)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1473-1480)
- (success,None) = address(devWallet).call{value: ethForDev}() (#1521)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1532-1534)
State variables written after the call(s):
- swapping = false (#1402)
Reentrancy in DudeToken._transfer(address,address,uint256) (#1310-1448):
External calls:
- swapBack() (#1400)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1473-1480)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1459-1465)
- (success,None) = address(devWallet).call{value: ethForDev}() (#1521)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1532-1534)
- autoBurnLiquidityPairTokens() (#1412)
- pair.sync() (#1573)
External calls sending eth:
- swapBack() (#1400)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1473-1480)
- (success,None) = address(devWallet).call{value: ethForDev}() (#1521)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1532-1534)
State variables written after the call(s):
- autoBurnLiquidityPairTokens() (#1412)
- _balances[sender] = senderBalance - amount (#460)
- _balances[recipient] += amount (#462)
- super._transfer(from,address(this),fees) (#1441)
- _balances[sender] = senderBalance - amount (#460)
- _balances[recipient] += amount (#462)
- super._transfer(from,to,amount) (#1447)
- _balances[sender] = senderBalance - amount (#460)
- _balances[recipient] += amount (#462)
- tokensForDev += (fees * sellDevFee) / sellTotalFees (#1429)
- tokensForDev += (fees * buyDevFee) / buyTotalFees (#1436)
- tokensForLiquidity += (fees * sellLiquidityFee) / sellTotalFees (#1428)
- tokensForLiquidity += (fees * buyLiquidityFee) / buyTotalFees (#1435)
- tokensForMarketing += (fees * sellMarketingFee) / sellTotalFees (#1430)
- tokensForMarketing += (fees * buyMarketingFee) / buyTotalFees (#1437)
Apply the check-effects-interactions pattern.

Additional information: link

DudeToken.swapBack() (#1483-1535) uses a dangerous strict equality:
- contractBalance == 0 || totalTokensToSwap == 0 (#1490)
Don't use strict equality to determine if an account has enough Ether or tokens.

Additional information: link

DudeToken.setAutoLPBurnSettings(uint256,uint256,bool) (#1537-1553) contains a tautology or contradiction:
- require(bool,string)(_percent <= 1000 && _percent >= 0,Must set auto LP burn percent between 0% and 10%) (#1546-1549)
Fix the incorrect comparison by changing the value type or the comparison.

Additional information: link

DudeToken.manualBurnFrequency (#1057) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

DudeToken._transfer(address,address,uint256) (#1310-1448) performs a multiplication on the result of a division:
-fees = amount.mul(sellTotalFees).div(100) (#1427)
-tokensForLiquidity += (fees * sellLiquidityFee) / sellTotalFees (#1428)
DudeToken._transfer(address,address,uint256) (#1310-1448) performs a multiplication on the result of a division:
-fees = amount.mul(sellTotalFees).div(100) (#1427)
-tokensForDev += (fees * sellDevFee) / sellTotalFees (#1429)
DudeToken._transfer(address,address,uint256) (#1310-1448) performs a multiplication on the result of a division:
-tokensForMarketing += (fees * sellMarketingFee) / sellTotalFees (#1430)
-fees = amount.mul(buyTotalFees).div(100) (#1434)
DudeToken._transfer(address,address,uint256) (#1310-1448) performs a multiplication on the result of a division:
-fees = amount.mul(buyTotalFees).div(100) (#1434)
-tokensForLiquidity += (fees * buyLiquidityFee) / buyTotalFees (#1435)
DudeToken._transfer(address,address,uint256) (#1310-1448) performs a multiplication on the result of a division:
-fees = amount.mul(buyTotalFees).div(100) (#1434)
-tokensForDev += (fees * buyDevFee) / buyTotalFees (#1436)
DudeToken._transfer(address,address,uint256) (#1310-1448) performs a multiplication on the result of a division:
-fees = amount.mul(buyTotalFees).div(100) (#1434)
-tokensForMarketing += (fees * buyMarketingFee) / buyTotalFees (#1437)
Consider ordering multiplication before division.

Additional information: link

Reentrancy in DudeToken.swapBack() (#1483-1535):
External calls:
- swapTokensForEth(amountToSwapForETH) (#1506)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1459-1465)
State variables written after the call(s):
- tokensForDev = 0 (#1519)
- tokensForLiquidity = 0 (#1517)
- tokensForMarketing = 0 (#1518)
Apply the check-effects-interactions pattern.

Additional information: link

DudeToken._transfer(address,address,uint256) (#1310-1448) uses tx.origin for authorization: require(bool,string)(_holderLastTransferTimestamp[tx.origin] < block.number,_transfer:: Transfer Delay enabled. Only one purchase per block allowed.) (#1345-1349)
Do not use tx.origin for authorization.

Additional information: link

DudeToken.addLiquidity(uint256,uint256) (#1468-1481) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1473-1480)
Ensure that all the return values of the function calls are used.

Additional information: link

DudeToken.constructor().totalSupply (#1142) shadows:
- ERC20.totalSupply() (#320-322) (function)
- IERC20.totalSupply() (#127) (function)
Rename the local variables that shadow another component.

Additional information: link

DudeToken.updateSwapTokensAtAmount(uint256) (#1199-1214) should emit an event for:
- swapTokensAtAmount = newAmount (#1212)
DudeToken.updateMaxTxnAmount(uint256) (#1216-1222) should emit an event for:
- maxTransactionAmount = newNum * (10 ** 18) (#1221)
DudeToken.updateMaxWalletAmount(uint256) (#1224-1230) should emit an event for:
- maxWallet = newNum * (10 ** 18) (#1229)
DudeToken.updateBuyFees(uint256,uint256,uint256) (#1244-1254) should emit an event for:
- buyMarketingFee = _marketingFee (#1249)
- buyLiquidityFee = _liquidityFee (#1250)
- buyDevFee = _devFee (#1251)
- buyTotalFees = buyMarketingFee + buyLiquidityFee + buyDevFee (#1252)
DudeToken.updateSellFees(uint256,uint256,uint256) (#1256-1266) should emit an event for:
- sellMarketingFee = _marketingFee (#1261)
- sellLiquidityFee = _liquidityFee (#1262)
- sellDevFee = _devFee (#1263)
- sellTotalFees = sellMarketingFee + sellLiquidityFee + sellDevFee (#1264)
DudeToken.setAutoLPBurnSettings(uint256,uint256,bool) (#1537-1553) should emit an event for:
- lpBurnFrequency = _frequencyInSeconds (#1550)
- percentForLPBurn = _percent (#1551)
Emit an event for critical parameter changes.

Additional information: link

DudeToken.updateMarketingWallet(address).newMarketingWallet (#1291) lacks a zero-check on :
- marketingWallet = newMarketingWallet (#1296)
DudeToken.updateDevWallet(address).newWallet (#1299) lacks a zero-check on :
- devWallet = newWallet (#1301)
Check that the address is not zero.

Additional information: link

Reentrancy in DudeToken.constructor() (#1121-1175):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1129-1130)
State variables written after the call(s):
- _mint(msg.sender,totalSupply) (#1174)
- _balances[account] += amount (#484)
- excludeFromFees(owner(),true) (#1162)
- _isExcludedFromFees[account] = excluded (#1269)
- excludeFromFees(address(this),true) (#1163)
- _isExcludedFromFees[account] = excluded (#1269)
- excludeFromFees(address(0xdead),true) (#1164)
- _isExcludedFromFees[account] = excluded (#1269)
- excludeFromMaxTransaction(address(uniswapV2Pair),true) (#1131)
- _isExcludedMaxTransactionAmount[updAds] = isEx (#1236)
- excludeFromMaxTransaction(owner(),true) (#1166)
- _isExcludedMaxTransactionAmount[updAds] = isEx (#1236)
- excludeFromMaxTransaction(address(this),true) (#1167)
- _isExcludedMaxTransactionAmount[updAds] = isEx (#1236)
- excludeFromMaxTransaction(address(0xdead),true) (#1168)
- _isExcludedMaxTransactionAmount[updAds] = isEx (#1236)
- _mint(msg.sender,totalSupply) (#1174)
- _totalSupply += amount (#483)
- _setAutomatedMarketMakerPair(address(uniswapV2Pair),true) (#1132)
- automatedMarketMakerPairs[pair] = value (#1286)
- buyDevFee = _buyDevFee (#1150)
- buyLiquidityFee = _buyLiquidityFee (#1149)
- buyMarketingFee = _buyMarketingFee (#1148)
- buyTotalFees = buyMarketingFee + buyLiquidityFee + buyDevFee (#1151)
- devWallet = address(0x08a8A0F28f4A50242cF06982D5b8F0CdF0A39feF) (#1159)
- marketingWallet = address(0x08a8A0F28f4A50242cF06982D5b8F0CdF0A39feF) (#1158)
- maxTransactionAmount = 10_000_000 * 1e18 (#1144)
- maxWallet = 30_000_000 * 1e18 (#1145)
- sellDevFee = _sellDevFee (#1155)
- sellLiquidityFee = _sellLiquidityFee (#1154)
- sellMarketingFee = _sellMarketingFee (#1153)
- sellTotalFees = sellMarketingFee + sellLiquidityFee + sellDevFee (#1156)
- swapTokensAtAmount = (totalSupply * 5) / 10000 (#1146)
Reentrancy in DudeToken.swapBack() (#1483-1535):
External calls:
- swapTokensForEth(amountToSwapForETH) (#1506)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1459-1465)
- (success,None) = address(devWallet).call{value: ethForDev}() (#1521)
- addLiquidity(liquidityTokens,ethForLiquidity) (#1524)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1473-1480)
External calls sending eth:
- (success,None) = address(devWallet).call{value: ethForDev}() (#1521)
- addLiquidity(liquidityTokens,ethForLiquidity) (#1524)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1473-1480)
State variables written after the call(s):
- addLiquidity(liquidityTokens,ethForLiquidity) (#1524)
- _allowances[owner][spender] = amount (#539)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in DudeToken._transfer(address,address,uint256) (#1310-1448):
External calls:
- swapBack() (#1400)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1473-1480)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1459-1465)
- (success,None) = address(devWallet).call{value: ethForDev}() (#1521)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1532-1534)
- autoBurnLiquidityPairTokens() (#1412)
- pair.sync() (#1573)
External calls sending eth:
- swapBack() (#1400)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1473-1480)
- (success,None) = address(devWallet).call{value: ethForDev}() (#1521)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1532-1534)
Event emitted after the call(s):
- AutoNukeLP() (#1574)
- autoBurnLiquidityPairTokens() (#1412)
- Transfer(sender,recipient,amount) (#464)
- super._transfer(from,to,amount) (#1447)
- Transfer(sender,recipient,amount) (#464)
- autoBurnLiquidityPairTokens() (#1412)
- Transfer(sender,recipient,amount) (#464)
- super._transfer(from,address(this),fees) (#1441)
Reentrancy in DudeToken.autoBurnLiquidityPairTokens() (#1555-1576):
External calls:
- pair.sync() (#1573)
Event emitted after the call(s):
- AutoNukeLP() (#1574)
Reentrancy in DudeToken.constructor() (#1121-1175):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1129-1130)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (#1270)
- excludeFromFees(address(this),true) (#1163)
- ExcludeFromFees(account,excluded) (#1270)
- excludeFromFees(owner(),true) (#1162)
- ExcludeFromFees(account,excluded) (#1270)
- excludeFromFees(address(0xdead),true) (#1164)
- SetAutomatedMarketMakerPair(pair,value) (#1288)
- _setAutomatedMarketMakerPair(address(uniswapV2Pair),true) (#1132)
- Transfer(address(0),account,amount) (#485)
- _mint(msg.sender,totalSupply) (#1174)
Reentrancy in DudeToken.manualBurnLiquidityPairTokens(uint256) (#1578-1606):
External calls:
- pair.sync() (#1603)
Event emitted after the call(s):
- ManualNukeLP() (#1604)
Reentrancy in DudeToken.swapBack() (#1483-1535):
External calls:
- swapTokensForEth(amountToSwapForETH) (#1506)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1459-1465)
- (success,None) = address(devWallet).call{value: ethForDev}() (#1521)
- addLiquidity(liquidityTokens,ethForLiquidity) (#1524)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1473-1480)
External calls sending eth:
- (success,None) = address(devWallet).call{value: ethForDev}() (#1521)
- addLiquidity(liquidityTokens,ethForLiquidity) (#1524)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,deadAddress,block.timestamp) (#1473-1480)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#540)
- addLiquidity(liquidityTokens,ethForLiquidity) (#1524)
- SwapAndLiquify(amountToSwapForETH,ethForLiquidity,tokensForLiquidity) (#1525-1529)
Apply the check-effects-interactions pattern.

Additional information: link

DudeToken._transfer(address,address,uint256) (#1310-1448) uses timestamp for comparisons
Dangerous comparisons:
- ! swapping && automatedMarketMakerPairs[to] && lpBurnEnabled && block.timestamp >= lastLpBurnTime + lpBurnFrequency && ! _isExcludedFromFees[from] (#1406-1410)
DudeToken.manualBurnLiquidityPairTokens(uint256) (#1578-1606) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp > lastManualLpBurnTime + manualBurnFrequency,Must wait for cooldown to finish) (#1583-1586)
Avoid relying on block.timestamp.

Additional information: link

Context._msgData() (#33-35) is never used and should be removed
ERC20._burn(address,uint256) (#501-516) is never used and should be removed
SafeMath.add(uint256,uint256) (#676-678) is never used and should be removed
SafeMath.div(uint256,uint256,string) (#774-783) is never used and should be removed
SafeMath.mod(uint256,uint256) (#734-736) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#800-809) is never used and should be removed
SafeMath.sub(uint256,uint256,string) (#751-760) is never used and should be removed
SafeMath.tryAdd(uint256,uint256) (#605-611) is never used and should be removed
SafeMath.tryDiv(uint256,uint256) (#647-652) is never used and should be removed
SafeMath.tryMod(uint256,uint256) (#659-664) is never used and should be removed
SafeMath.tryMul(uint256,uint256) (#630-640) is never used and should be removed
SafeMath.trySub(uint256,uint256) (#618-623) is never used and should be removed
Remove unused functions.

Additional information: link

Pragma version=0.8.10>=0.8.10>=0.8.0<0.9.0 (#10) is too complex
solc-0.8.10 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 DudeToken.swapBack() (#1483-1535):
- (success,None) = address(devWallet).call{value: ethForDev}() (#1521)
- (success,None) = address(marketingWallet).call{value: address(this).balance}() (#1532-1534)
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() (#883) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#885) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#916) is not in mixedCase
Function IUniswapV2Router02.WETH() (#966) is not in mixedCase
Event DudeTokenmarketingWalletUpdated(address,address) (#1101-1104) is not in CapWords
Event DudeTokendevWalletUpdated(address,address) (#1106-1109) is not in CapWords
Parameter DudeToken.updateBuyFees(uint256,uint256,uint256)._marketingFee (#1245) is not in mixedCase
Parameter DudeToken.updateBuyFees(uint256,uint256,uint256)._liquidityFee (#1246) is not in mixedCase
Parameter DudeToken.updateBuyFees(uint256,uint256,uint256)._devFee (#1247) is not in mixedCase
Parameter DudeToken.updateSellFees(uint256,uint256,uint256)._marketingFee (#1257) is not in mixedCase
Parameter DudeToken.updateSellFees(uint256,uint256,uint256)._liquidityFee (#1258) is not in mixedCase
Parameter DudeToken.updateSellFees(uint256,uint256,uint256)._devFee (#1259) is not in mixedCase
Parameter DudeToken.setAutoLPBurnSettings(uint256,uint256,bool)._frequencyInSeconds (#1538) is not in mixedCase
Parameter DudeToken.setAutoLPBurnSettings(uint256,uint256,bool)._percent (#1539) is not in mixedCase
Parameter DudeToken.setAutoLPBurnSettings(uint256,uint256,bool)._Enabled (#1540) is not in mixedCase
Constant DudeToken.deadAddress (#1041) is not in UPPER_CASE_WITH_UNDERSCORES
Variable DudeToken._isExcludedMaxTransactionAmount (#1086) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Variable IUniswapV2Router02.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#971) is too similar to IUniswapV2Router02.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#972)
Prevent variables from having similar names.

Additional information: link

DudeToken.updateSwapTokensAtAmount(uint256) (#1199-1214) uses literals with too many digits:
- require(bool,string)(newAmount >= (totalSupply() * 1) / 100000,Swap amount cannot be lower than 0.001% total supply.) (#1204-1207)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#91-93)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#99-102)
name() should be declared external:
- ERC20.name() (#288-290)
symbol() should be declared external:
- ERC20.symbol() (#296-298)
decimals() should be declared external:
- ERC20.decimals() (#313-315)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#339-342)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#347-349)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#358-361)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#376-390)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#404-407)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#423-431)
setAutomatedMarketMakerPair(address,bool) should be declared external:
- DudeToken.setAutomatedMarketMakerPair(address,bool) (#1273-1283)
isExcludedFromFees(address) should be declared external:
- DudeToken.isExcludedFromFees(address) (#1304-1306)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


Attempt to swap token was unsuccessful. For some reason it is untradeable. If token is not in presale stage and is not traded outside PancakeSwap, then it's a scam

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.


Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive. Ignore for presale.


Average 30d number of PancakeSwap swaps is low.


Token is deployed only at one blockchain


Token has only one trading pair


Unable to find Telegram and Twitter accounts


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

Price for DUDE