THUGS Token Logo

THUGS Token

About THUGS

Listings

Token 3 years
CoinGecko 3 years
[CoinGecko] alert: Thugs has recently migrated from their old contract to a new one. Visit this post for more information and visit the old token page here.
white paper

THUGS is a deflationary token designed around the concept that selling at certain prices will cause a token burn equal to a percentage calculated from initial listing price.

Social

Laser Scorebeta Last Audit: 11 August 2022

report
Token is either risky or in presale. For presale 30+ is a fine score.

THUGS.addLiquidity(uint256,uint256) (#482-495) sends eth to arbitrary user
Dangerous calls:
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,lpRecipient,block.timestamp) (#487-494)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

THUGS.rescueAnyBEP20Tokens(address,address,uint256) (#564-566) ignores return value by IERC20(_tokenAddr).transfer(_to,_amount) (#565)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.

Additional information: link

Reentrancy in THUGS._transfer(address,address,uint256) (#404-427):
External calls:
- swapAndLiquify(swapTokensAtAmount) (#422)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,lpRecipient,block.timestamp) (#487-494)
- (success) = recipient.call{value: amount}() (#30)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#506-512)
- address(marketingWallet).sendValue(marketingAmt) (#477)
External calls sending eth:
- swapAndLiquify(swapTokensAtAmount) (#422)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,lpRecipient,block.timestamp) (#487-494)
- (success) = recipient.call{value: amount}() (#30)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,! (_isExcludedFromFee[from] || _isExcludedFromFee[to])) (#425)
- _rOwned[address(this)] += rMarketing (#339)
- _rOwned[address(this)] += rLiquidity (#329)
- _rOwned[sender] = _rOwned[sender] - s.rAmount (#444)
- _rOwned[recipient] = _rOwned[recipient] + s.rTransferAmount (#445)
- _tokenTransfer(from,to,amount,! (_isExcludedFromFee[from] || _isExcludedFromFee[to])) (#425)
- _rTotal -= rRfi (#318)
- _tokenTransfer(from,to,amount,! (_isExcludedFromFee[from] || _isExcludedFromFee[to])) (#425)
- _tOwned[address(this)] += tMarketing (#337)
- _tOwned[address(this)] += tLiquidity (#327)
- _tOwned[sender] = _tOwned[sender] - tAmount (#438)
- _tOwned[recipient] = _tOwned[recipient] + s.tTransferAmount (#441)
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.


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.

THUGS.includeInReward(address) (#277-288) has costly operations inside a loop:
- _excluded.pop() (#284)
Use a local variable to hold the loop computation result.

Additional information: link

Context._msgData() (#40-43) is never used and should be removed
Remove unused functions.

Additional information: link

THUGS._rTotal (#127) 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

Function IRouter.WETH() (#86) is not in mixedCase
Struct THUGS.valuesFromGetValues (#155-165) is not in CapWords
Parameter THUGS.setTransferTaxes(uint256,uint256,uint256)._rfi (#304) is not in mixedCase
Parameter THUGS.setTransferTaxes(uint256,uint256,uint256)._marketing (#304) is not in mixedCase
Parameter THUGS.setTransferTaxes(uint256,uint256,uint256)._liquidity (#304) is not in mixedCase
Parameter THUGS.setBuyTaxes(uint256,uint256,uint256)._rfi (#308) is not in mixedCase
Parameter THUGS.setBuyTaxes(uint256,uint256,uint256)._marketing (#308) is not in mixedCase
Parameter THUGS.setBuyTaxes(uint256,uint256,uint256)._liquidity (#308) is not in mixedCase
Parameter THUGS.setSellTaxes(uint256,uint256,uint256)._rfi (#312) is not in mixedCase
Parameter THUGS.setSellTaxes(uint256,uint256,uint256)._marketing (#312) is not in mixedCase
Parameter THUGS.setSellTaxes(uint256,uint256,uint256)._liquidity (#312) is not in mixedCase
Parameter THUGS.updateMarketingWallet(address)._marketingWallet (#521) is not in mixedCase
Parameter THUGS.updateSwapEnabled(bool)._enabled (#543) is not in mixedCase
Parameter THUGS.rescueAnyBEP20Tokens(address,address,uint256)._tokenAddr (#564) is not in mixedCase
Parameter THUGS.rescueAnyBEP20Tokens(address,address,uint256)._to (#564) is not in mixedCase
Parameter THUGS.rescueAnyBEP20Tokens(address,address,uint256)._amount (#564) is not in mixedCase
Constant THUGS._decimals (#123) is not in UPPER_CASE_WITH_UNDERSCORES
Constant THUGS._name (#136) is not in UPPER_CASE_WITH_UNDERSCORES
Constant THUGS._symbol (#137) is not in UPPER_CASE_WITH_UNDERSCORES
Follow the Solidity naming convention.

Additional information: link

Redundant expression "this (#41)" inContext (#35-44)
Remove redundant statements if they congest code but offer no value.

Additional information: link

THUGS._tTotal (#126) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#64-66)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#68-71)
name() should be declared external:
- THUGS.name() (#191-193)
symbol() should be declared external:
- THUGS.symbol() (#194-196)
decimals() should be declared external:
- THUGS.decimals() (#197-199)
totalSupply() should be declared external:
- THUGS.totalSupply() (#201-203)
transfer(address,uint256) should be declared external:
- THUGS.transfer(address,uint256) (#210-213)
allowance(address,address) should be declared external:
- THUGS.allowance(address,address) (#215-217)
approve(address,uint256) should be declared external:
- THUGS.approve(address,uint256) (#219-222)
transferFrom(address,address,uint256) should be declared external:
- THUGS.transferFrom(address,address,uint256) (#224-232)
increaseAllowance(address,uint256) should be declared external:
- THUGS.increaseAllowance(address,uint256) (#234-237)
decreaseAllowance(address,uint256) should be declared external:
- THUGS.decreaseAllowance(address,uint256) (#239-245)
isExcludedFromReward(address) should be declared external:
- THUGS.isExcludedFromReward(address) (#247-249)
reflectionFromToken(uint256,bool,uint8) should be declared external:
- THUGS.reflectionFromToken(uint256,bool,uint8) (#251-260)
excludeFromFee(address) should be declared external:
- THUGS.excludeFromFee(address) (#291-293)
includeInFee(address) should be declared external:
- THUGS.includeInFee(address) (#295-297)
isExcludedFromFee(address) should be declared external:
- THUGS.isExcludedFromFee(address) (#300-302)
setTransferTaxes(uint256,uint256,uint256) should be declared external:
- THUGS.setTransferTaxes(uint256,uint256,uint256) (#304-307)
setBuyTaxes(uint256,uint256,uint256) should be declared external:
- THUGS.setBuyTaxes(uint256,uint256,uint256) (#308-311)
setSellTaxes(uint256,uint256,uint256) should be declared external:
- THUGS.setSellTaxes(uint256,uint256,uint256) (#312-315)
rescueAnyBEP20Tokens(address,address,uint256) should be declared external:
- THUGS.rescueAnyBEP20Tokens(address,address,uint256) (#564-566)
Use the external attribute for functions never called from the contract.

Additional information: link

Reentrancy in THUGS._transfer(address,address,uint256) (#404-427):
External calls:
- swapAndLiquify(swapTokensAtAmount) (#422)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,lpRecipient,block.timestamp) (#487-494)
- (success) = recipient.call{value: amount}() (#30)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#506-512)
- address(marketingWallet).sendValue(marketingAmt) (#477)
External calls sending eth:
- swapAndLiquify(swapTokensAtAmount) (#422)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,lpRecipient,block.timestamp) (#487-494)
- (success) = recipient.call{value: amount}() (#30)
Event emitted after the call(s):
- Transfer(sender,recipient,s.tTransferAmount) (#451)
- _tokenTransfer(from,to,amount,! (_isExcludedFromFee[from] || _isExcludedFromFee[to])) (#425)
- Transfer(sender,address(this),s.tLiquidity + s.tMarketing) (#452)
- _tokenTransfer(from,to,amount,! (_isExcludedFromFee[from] || _isExcludedFromFee[to])) (#425)
Reentrancy in THUGS.constructor() (#173-189):
External calls:
- _pair = IFactory(_router.factory()).createPair(address(this),_router.WETH()) (#175-176)
Event emitted after the call(s):
- Transfer(address(0),owner(),_tTotal) (#188)
Reentrancy in THUGS.swapAndLiquify(uint256) (#456-480):
External calls:
- swapTokensForBNB(toSwap) (#464)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#506-512)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#472)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,lpRecipient,block.timestamp) (#487-494)
External calls sending eth:
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#472)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,lpRecipient,block.timestamp) (#487-494)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#400)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#472)
Reentrancy in THUGS.transferFrom(address,address,uint256) (#224-232):
External calls:
- _transfer(sender,recipient,amount) (#225)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,lpRecipient,block.timestamp) (#487-494)
- (success) = recipient.call{value: amount}() (#30)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#506-512)
- address(marketingWallet).sendValue(marketingAmt) (#477)
External calls sending eth:
- _transfer(sender,recipient,amount) (#225)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,lpRecipient,block.timestamp) (#487-494)
- (success) = recipient.call{value: amount}() (#30)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#400)
- _approve(sender,_msgSender(),currentAllowance - amount) (#229)
Apply the check-effects-interactions pattern.

Additional information: link

Pragma version0.8.10 (#2) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
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 Address.sendValue(address,uint256) (#27-32):
- (success) = recipient.call{value: amount}() (#30)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence

Additional information: link

THUGS.swapAndLiquify(uint256) (#456-480) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - sellTaxes.liquidity) (#467)
-bnbToAddLiquidityWith = unitBalance * sellTaxes.liquidity (#468)
THUGS.swapAndLiquify(uint256) (#456-480) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - sellTaxes.liquidity) (#467)
-marketingAmt = unitBalance * 2 * sellTaxes.marketing (#475)
Consider ordering multiplication before division.

Additional information: link

THUGS.addLiquidity(uint256,uint256) (#482-495) ignores return value by router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,lpRecipient,block.timestamp) (#487-494)
Ensure that all the return values of the function calls are used.

Additional information: link

THUGS.allowance(address,address).owner (#215) shadows:
- Ownable.owner() (#55-57) (function)
THUGS._approve(address,address,uint256).owner (#396) shadows:
- Ownable.owner() (#55-57) (function)
Rename the local variables that shadow another component.

Additional information: link

THUGS.updateMaxTxAmount(uint256) (#531-533) should emit an event for:
- maxTxAmount = amount * 10 ** _decimals (#532)
THUGS.updateMaxWalletBalance(uint256) (#535-537) should emit an event for:
- maxWalletAmount = amount * 10 ** _decimals (#536)
THUGS.updateSwapTokensAtAmount(uint256) (#539-541) should emit an event for:
- swapTokensAtAmount = amount * 10 ** _decimals (#540)
Emit an event for critical parameter changes.

Additional information: link

THUGS.updateRouterAndPair(address,address).newPair (#547) lacks a zero-check on :
- pair = newPair (#550)
Check that the address is not zero.

Additional information: link

Reentrancy in THUGS._transfer(address,address,uint256) (#404-427):
External calls:
- swapAndLiquify(swapTokensAtAmount) (#422)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,lpRecipient,block.timestamp) (#487-494)
- (success) = recipient.call{value: amount}() (#30)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#506-512)
- address(marketingWallet).sendValue(marketingAmt) (#477)
External calls sending eth:
- swapAndLiquify(swapTokensAtAmount) (#422)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,lpRecipient,block.timestamp) (#487-494)
- (success) = recipient.call{value: amount}() (#30)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,! (_isExcludedFromFee[from] || _isExcludedFromFee[to])) (#425)
- totFeesPaid.liquidity += tLiquidity (#323)
- totFeesPaid.marketing += tMarketing (#333)
- totFeesPaid.rfi += tRfi (#319)
Reentrancy in THUGS.constructor() (#173-189):
External calls:
- _pair = IFactory(_router.factory()).createPair(address(this),_router.WETH()) (#175-176)
State variables written after the call(s):
- excludeFromReward(pair) (#181)
- _excluded.push(account) (#274)
- excludeFromReward(pair) (#181)
- _isExcluded[account] = true (#273)
- _isExcludedFromFee[owner()] = true (#184)
- _isExcludedFromFee[address(this)] = true (#185)
- _isExcludedFromFee[marketingWallet] = true (#186)
- _rOwned[owner()] = _rTotal (#183)
- excludeFromReward(pair) (#181)
- _tOwned[account] = tokenFromReflection(_rOwned[account]) (#271)
- pair = _pair (#179)
- router = _router (#178)
Reentrancy in THUGS.swapAndLiquify(uint256) (#456-480):
External calls:
- swapTokensForBNB(toSwap) (#464)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#506-512)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#472)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,lpRecipient,block.timestamp) (#487-494)
External calls sending eth:
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#472)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,lpRecipient,block.timestamp) (#487-494)
State variables written after the call(s):
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#472)
- _allowances[owner][spender] = amount (#399)
Reentrancy in THUGS.transferFrom(address,address,uint256) (#224-232):
External calls:
- _transfer(sender,recipient,amount) (#225)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,lpRecipient,block.timestamp) (#487-494)
- (success) = recipient.call{value: amount}() (#30)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#506-512)
- address(marketingWallet).sendValue(marketingAmt) (#477)
External calls sending eth:
- _transfer(sender,recipient,amount) (#225)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,lpRecipient,block.timestamp) (#487-494)
- (success) = recipient.call{value: amount}() (#30)
State variables written after the call(s):
- _approve(sender,_msgSender(),currentAllowance - amount) (#229)
- _allowances[owner][spender] = amount (#399)
Apply the check-effects-interactions pattern.

Additional information: link

Holders:


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 PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.

Contract has 4% buy tax and 3% 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


Average 30d number of PancakeSwap swaps is low.


Number of Binance Smart Chain (BSC) token holders is low.


Telegram account has relatively few subscribers


Unable to find Youtube account


Unable to find token on CoinMarketCap

Additional information: link


Unable to find KYC or doxxing proof


Unable to find whitepaper link on the website


Token is not listed at Mobula.Finance

Additional information: link


Unable to find token on CoinHunt

Additional information: link


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).


Young tokens have high risks of scam / price dump / death


Token has no active CoinMarketCap listing / rank


Token has relatively low CoinGecko rank

Price for THUGS

News for THUGS