X-HASH Token Logo

XSH [X-HASH] Token

About XSH

Listings

Token 2 years

Description

Not Found

Social

Laser Scorebeta Last Audit: 10 December 2021

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

Anti-Scam

Links


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

XHashToken.addLiquidity(uint256,uint256) (#740-754) sends eth to arbitrary user
Dangerous calls:
- (liquidity) = hashSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#745-752)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in XHashToken._transfer(address,address,uint256) (#655-677):
External calls:
- swapAndLiquifyBuyBack() (#665)
- (liquidity) = hashSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#745-752)
- hashSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#731-737)
- hashSwapRouter.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokens,0,path,deadWallet,block.timestamp.add(300)) (#701-707)
External calls sending eth:
- swapAndLiquifyBuyBack() (#665)
- (liquidity) = hashSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#745-752)
State variables written after the call(s):
- super._transfer(sender,recipient,amount) (#669)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#546)
- _balances[recipient] = _balances[recipient].add(amount) (#547)
- super._transfer(sender,address(this),taxAmount) (#674)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#546)
- _balances[recipient] = _balances[recipient].add(amount) (#547)
- super._transfer(sender,recipient,sendAmount) (#675)
- _balances[sender] = _balances[sender].sub(amount,BEP20: transfer amount exceeds balance) (#546)
- _balances[recipient] = _balances[recipient].add(amount) (#547)
Apply the check-effects-interactions pattern.

Additional information: link

XHashToken._writeCheckpoint(address,uint32,uint256,uint256) (#1006-1024) uses a dangerous strict equality:
- nCheckpoints > 0 && checkpoints[delegatee][nCheckpoints - 1].fromBlock == blockNumber (#1016)
Don't use strict equality to determine if an account has enough Ether or tokens.

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.

Contract name (X-HASH) contains non-alphanumeric characters.
Not a direct threat, but may indicate unreliable intentions of developer. Non-alphanumeric chars (,.;!#*&") are extremely rare among low risk tokens.


Not a direct threat, but may indicate unreliable intentions of developer. Widespread names (e.g. Elon, King, Moon, Doge) are common among meme-tokens and scams. The allow to gain free hype and attract unexperienced investors.

BEP20.allowance(address,address).owner (#507) shadows:
- Ownable.owner() (#50-52) (function)
BEP20._approve(address,address,uint256).owner (#570) shadows:
- Ownable.owner() (#50-52) (function)
Rename the local variables that shadow another component.

Additional information: link

XHashToken.setFees(uint256,uint256) (#791-796) should emit an event for:
- liquidityFee = _liquidityFee (#792)
- buybackFee = _buybackFee (#793)
- transferTaxRate = liquidityFee.add(buybackFee) (#794)
Emit an event for critical parameter changes.

Additional information: link

Reentrancy in XHashToken.constructor() (#629-646):
External calls:
- _hashSwapPair = IUniswapV2Factory(_hashSwapRouter.factory()).createPair(address(this),_hashSwapRouter.WETH()) (#636-637)
State variables written after the call(s):
- _mint(owner(),8000000000000000000000) (#645)
- MAXCAP = MAXCAP.add(amount) (#556)
- _mint(owner(),8000000000000000000000) (#645)
- _balances[account] = _balances[account].add(amount) (#557)
- setExcludeFromFees(owner(),true) (#642)
- _excludedFromFees[_account] = _excluded (#767)
- setExcludeFromFees(address(this),true) (#643)
- _excludedFromFees[_account] = _excluded (#767)
- _mint(owner(),8000000000000000000000) (#645)
- _totalSupply = _totalSupply.add(amount) (#555)
- hashSwapPair = _hashSwapPair (#640)
- hashSwapRouter = _hashSwapRouter (#639)
Reentrancy in XHashToken.swapAndLiquify(uint256) (#710-721):
External calls:
- swapTokensForEth(half) (#716)
- hashSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#731-737)
- addLiquidity(otherHalf,newBalance) (#719)
- (liquidity) = hashSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#745-752)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#719)
- (liquidity) = hashSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#745-752)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#719)
- _allowances[owner][spender] = amount (#574)
Reentrancy in XHashToken.swapAndLiquifyBuyBack() (#679-689):
External calls:
- BuybackBurn(buybackTokens) (#684)
- hashSwapRouter.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokens,0,path,deadWallet,block.timestamp.add(300)) (#701-707)
- swapAndLiquify(liquidityTokens) (#687)
- (liquidity) = hashSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#745-752)
- hashSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#731-737)
External calls sending eth:
- swapAndLiquify(liquidityTokens) (#687)
- (liquidity) = hashSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#745-752)
State variables written after the call(s):
- swapAndLiquify(liquidityTokens) (#687)
- _allowances[owner][spender] = amount (#574)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in XHashToken._transfer(address,address,uint256) (#655-677):
External calls:
- swapAndLiquifyBuyBack() (#665)
- (liquidity) = hashSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#745-752)
- hashSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#731-737)
- hashSwapRouter.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokens,0,path,deadWallet,block.timestamp.add(300)) (#701-707)
External calls sending eth:
- swapAndLiquifyBuyBack() (#665)
- (liquidity) = hashSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#745-752)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (#548)
- super._transfer(sender,recipient,sendAmount) (#675)
- Transfer(sender,recipient,amount) (#548)
- super._transfer(sender,recipient,amount) (#669)
- Transfer(sender,recipient,amount) (#548)
- super._transfer(sender,address(this),taxAmount) (#674)
Reentrancy in XHashToken.constructor() (#629-646):
External calls:
- _hashSwapPair = IUniswapV2Factory(_hashSwapRouter.factory()).createPair(address(this),_hashSwapRouter.WETH()) (#636-637)
Event emitted after the call(s):
- ExcludeFromFees(_account,_excluded) (#769)
- setExcludeFromFees(address(this),true) (#643)
- ExcludeFromFees(_account,_excluded) (#769)
- setExcludeFromFees(owner(),true) (#642)
- Transfer(address(0),account,amount) (#558)
- _mint(owner(),8000000000000000000000) (#645)
Reentrancy in XHashToken.swapAndLiquify(uint256) (#710-721):
External calls:
- swapTokensForEth(half) (#716)
- hashSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#731-737)
- addLiquidity(otherHalf,newBalance) (#719)
- (liquidity) = hashSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#745-752)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#719)
- (liquidity) = hashSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#745-752)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#575)
- addLiquidity(otherHalf,newBalance) (#719)
- SwapAndLiquify(half,newBalance,otherHalf) (#720)
Reentrancy in XHashToken.swapAndLiquifyBuyBack() (#679-689):
External calls:
- BuybackBurn(buybackTokens) (#684)
- hashSwapRouter.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokens,0,path,deadWallet,block.timestamp.add(300)) (#701-707)
- swapAndLiquify(liquidityTokens) (#687)
- (liquidity) = hashSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#745-752)
- hashSwapRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#731-737)
External calls sending eth:
- swapAndLiquify(liquidityTokens) (#687)
- (liquidity) = hashSwapRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#745-752)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#575)
- swapAndLiquify(liquidityTokens) (#687)
- SwapAndLiquify(half,newBalance,otherHalf) (#720)
- swapAndLiquify(liquidityTokens) (#687)
Reentrancy in XHashToken.withdrawBNB(address,uint256) (#798-805):
External calls:
- address(_to).sendValue(_amount) (#803)
Event emitted after the call(s):
- BNBWithdrawn(msg.sender,_to,_amount) (#804)
Apply the check-effects-interactions pattern.

Additional information: link

XHashToken.addLiquidity(uint256,uint256) (#740-754) uses timestamp for comparisons
Dangerous comparisons:
- require(bool)(liquidity > 0) (#753)
XHashToken.delegateBySig(address,uint256,uint256,uint8,bytes32,bytes32) (#872-913) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp <= expiry,XSH::delegateBySig: signature expired) (#911)
Avoid relying on block.timestamp.

Additional information: link

Address.isContract(address) (#312-316) uses assembly
- INLINE ASM (#314)
Address._verifyCallResult(bool,bytes,string) (#367-380) uses assembly
- INLINE ASM (#372-375)
XHashToken.getChainId() (#1031-1035) uses assembly
- INLINE ASM (#1033)
Do not use evm assembly.

Additional information: link

XHashToken._transfer(address,address,uint256) (#655-677) compares to a boolean constant:
-swapAndLiquifyEnabled == true && _inSwapAndLiquify == false && address(hashSwapRouter) != address(0) && hashSwapPair != address(0) && sender != hashSwapPair && sender != owner() && recipient != owner() (#657-663)
Remove the equality to the boolean constant.

Additional information: link

Address._verifyCallResult(bool,bytes,string) (#367-380) is never used and should be removed
Address.functionCall(address,bytes) (#325-327) is never used and should be removed
Address.functionCall(address,bytes,string) (#329-331) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#333-335) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#337-343) is never used and should be removed
Address.functionDelegateCall(address,bytes) (#356-358) is never used and should be removed
Address.functionDelegateCall(address,bytes,string) (#360-365) is never used and should be removed
Address.functionStaticCall(address,bytes) (#345-347) is never used and should be removed
Address.functionStaticCall(address,bytes,string) (#349-354) is never used and should be removed
Address.isContract(address) (#312-316) is never used and should be removed
BEP20._burnFrom(address,uint256) (#578-581) is never used and should be removed
Context._msgData() (#33-36) is never used and should be removed
SafeMath.div(uint256,uint256) (#92-95) is never used and should be removed
SafeMath.div(uint256,uint256,string) (#102-105) is never used and should be removed
SafeMath.mul(uint256,uint256) (#85-90) is never used and should be removed
XHashToken.BuybackBurn(uint256) (#691-708) is never used and should be removed
XHashToken._transfer(address,address,uint256) (#655-677) is never used and should be removed
XHashToken.addLiquidity(uint256,uint256) (#740-754) is never used and should be removed
XHashToken.swapAndLiquify(uint256) (#710-721) is never used and should be removed
XHashToken.swapAndLiquifyBuyBack() (#679-689) is never used and should be removed
XHashToken.swapTokensForEth(uint256) (#723-738) is never used and should be removed
Remove unused functions.

Additional information: link

XHashToken.transferTaxRate (#596) is set pre-construction with a non-constant function or state variable:
- liquidityFee.add(buybackFee)
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 version0.8.6 (#10) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6
solc-0.8.6 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) (#318-323):
- (success) = recipient.call{value: amount}() (#321)
Low level call in Address.functionCallWithValue(address,bytes,uint256,string) (#337-343):
- (success,returndata) = target.call{value: value}(data) (#341)
Low level call in Address.functionStaticCall(address,bytes,string) (#349-354):
- (success,returndata) = target.staticcall(data) (#352)
Low level call in Address.functionDelegateCall(address,bytes,string) (#360-365):
- (success,returndata) = target.delegatecall(data) (#363)
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() (#138) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#139) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#155) is not in mixedCase
Function IUniswapV2Router01.WETH() (#176) is not in mixedCase
Variable BEP20.MAXCAP (#464) is not in mixedCase
Parameter XHashToken.mint(address,uint256)._to (#650) is not in mixedCase
Parameter XHashToken.mint(address,uint256)._amount (#650) is not in mixedCase
Function XHashToken.BuybackBurn(uint256) (#691-708) is not in mixedCase
Parameter XHashToken.updateMinAmountToLiquify(uint256)._minAmount (#760) is not in mixedCase
Parameter XHashToken.setExcludeFromFees(address,bool)._account (#765) is not in mixedCase
Parameter XHashToken.setExcludeFromFees(address,bool)._excluded (#765) is not in mixedCase
Parameter XHashToken.excludeMultipleAccountsFromFees(address[],bool)._accounts (#772) is not in mixedCase
Parameter XHashToken.excludeMultipleAccountsFromFees(address[],bool)._excluded (#772) is not in mixedCase
Parameter XHashToken.updateSwapAndLiquifyEnabled(bool)._enabled (#779) is not in mixedCase
Parameter XHashToken.updateXHASHSwapRouter(address)._router (#784) is not in mixedCase
Parameter XHashToken.setFees(uint256,uint256)._liquidityFee (#791) is not in mixedCase
Parameter XHashToken.setFees(uint256,uint256)._buybackFee (#791) is not in mixedCase
Parameter XHashToken.withdrawBNB(address,uint256)._to (#798) is not in mixedCase
Parameter XHashToken.withdrawBNB(address,uint256)._amount (#798) is not in mixedCase
Constant XHashToken.deadWallet (#599) is not in UPPER_CASE_WITH_UNDERSCORES
Variable XHashToken._delegates (#814) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Redundant expression "this (#34)" inContext (#28-37)
Remove redundant statements if they congest code but offer no value.

Additional information: link

Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#181) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#182)
Prevent variables from having similar names.

Additional information: link

XHashToken.slitherConstructorConstantVariables() (#586-1037) uses literals with too many digits:
- MAXCAPSUPPLY = 100000000000000000000000 (#465)
XHashToken.slitherConstructorConstantVariables() (#586-1037) uses literals with too many digits:
- deadWallet = 0x000000000000000000000000000000000000dEaD (#599)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#59-62)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#64-68)
addMinter(address) should be declared external:
- MinterRole.addMinter(address) (#427-429)
removeMinter(address) should be declared external:
- MinterRole.removeMinter(address) (#431-433)
renounceMinter() should be declared external:
- MinterRole.renounceMinter() (#435-437)
decimals() should be declared external:
- BEP20.decimals() (#482-484)
symbol() should be declared external:
- BEP20.symbol() (#486-488)
totalSupply() should be declared external:
- BEP20.totalSupply() (#490-492)
maxSupply() should be declared external:
- BEP20.maxSupply() (#494-496)
transfer(address,uint256) should be declared external:
- BEP20.transfer(address,uint256) (#502-505)
allowance(address,address) should be declared external:
- BEP20.allowance(address,address) (#507-509)
approve(address,uint256) should be declared external:
- BEP20.approve(address,uint256) (#511-514)
transferFrom(address,address,uint256) should be declared external:
- BEP20.transferFrom(address,address,uint256) (#516-520)
increaseAllowance(address,uint256) should be declared external:
- BEP20.increaseAllowance(address,uint256) (#522-525)
decreaseAllowance(address,uint256) should be declared external:
- BEP20.decreaseAllowance(address,uint256) (#527-530)
mint(uint256) should be declared external:
- BEP20.mint(uint256) (#532-535)
burn(uint256) should be declared external:
- BEP20.burn(uint256) (#537-540)
mint(address,uint256) should be declared external:
- XHashToken.mint(address,uint256) (#650-653)
isExcludedFromFees(address) should be declared external:
- XHashToken.isExcludedFromFees(address) (#756-758)
updateMinAmountToLiquify(uint256) should be declared external:
- XHashToken.updateMinAmountToLiquify(uint256) (#760-763)
excludeMultipleAccountsFromFees(address[],bool) should be declared external:
- XHashToken.excludeMultipleAccountsFromFees(address[],bool) (#772-777)
updateSwapAndLiquifyEnabled(bool) should be declared external:
- XHashToken.updateSwapAndLiquifyEnabled(bool) (#779-782)
updateXHASHSwapRouter(address) should be declared external:
- XHashToken.updateXHASHSwapRouter(address) (#784-789)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


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


Token is deployed only at one blockchain


Unable to find PancakeSwap trading pair to compute liquidity.


Unable to find PancakeSwap trading pair to compute number of swaps.


Telegram account link seems to be invalid


Twitter account link seems to be invalid


Unable to find Blog account (Reddit or Medium)


Unable to find Youtube account


Unable to find Discord account


Unable to crawl data from the website


BscScan page for the token does not contain additional info: website, socials, description, etc.

Additional information: link


Unable to find token/project description on the website or on BscScan, CoinMarketCap


Unable to find token contract audit


Unable to verify token contract address on the website


Unable to find audit link on the website


Unable to find whitepaper link on the website


Unable to find Telegram link on the website


Unable to find Twitter link on the website


Unable to find token on CoinHunt

Additional information: link


Unable to find token/project description on the website or on BscScan, CoinHunt, CoinGecko, CoinMarketCap


Young tokens have high risks of price dump / death


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


Token has no active CoinGecko listing / rank


Young tokens have high risks of price dump / death


Token has relatively low CoinMarketCap rank

Price for XSH