THTF is a real-time multi-level and multiplayer P2E game on the backdrop of the famous wild west where players engage in fierce battles to defeat other players to win, govern and dominate territories while earning mouth-watering rewards at the same time.
Doxxed Team. Amazing community. Liquidity locked on unicrypt.
Audit: https://github.com/solidproof/smart-contract-audits/blob/main/SmartContract_Audit_Solidproof_THTFcrypto.pdf
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
TheHarderTheyFall.addLiquidity(uint256,uint256) (#704-717) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in TheHarderTheyFall._transfer(address,address,uint256) (#616-651):
External calls:
- swapAndLiquify(contractTokenBalance) (#638)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#693-699)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#638)
- recipient.transfer(amount) (#581)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#641)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#646)
- finalAmount = takeFee(sender,amount) (#643-644)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#724)
Apply the check-effects-interactions pattern.
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.
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#265) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#266)
Prevent variables from having similar names.
Additional information: link
TheHarderTheyFall.addLiquidity(uint256,uint256) (#704-717) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(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
TheHarderTheyFall.setTaxes(uint256,uint256,uint256) (#541-547) should emit an event for:
- _liquidityFee = newLiquidityFee (#542)
- _buybackFee = newBuyBackFee (#544)
- _totalTax = _liquidityFee.add(_marketingFee).add(_buybackFee) (#546)
TheHarderTheyFall.setMaxTxAmount(uint256) (#549-551) should emit an event for:
- _maxTxAmount = maxTxAmount (#550)
TheHarderTheyFall.setNumTokensBeforeSwap(uint256) (#553-555) should emit an event for:
- minimumTokensBeforeSwap = newLimit (#554)
Emit an event for critical parameter changes.
Additional information: link
Reentrancy in TheHarderTheyFall.changeRouterVersion(address) (#584-600):
External calls:
- newPairAddress = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#592-593)
State variables written after the call(s):
- isMarketPair[address(uniswapPair)] = true (#599)
- uniswapPair = newPairAddress (#596)
- uniswapV2Router = _uniswapV2Router (#597)
Reentrancy in TheHarderTheyFall.constructor() (#452-476):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#456-457)
State variables written after the call(s):
- _allowances[address(this)][address(uniswapV2Router)] = _totalSupply (#460)
- _balances[_msgSender()] = _totalSupply (#474)
- _totalTax = _liquidityFee.add(_marketingFee).add(_buybackFee) (#473)
- isExcludedFromFee[owner()] = true (#462)
- isExcludedFromFee[address(this)] = true (#463)
- isExcludedFromFee[address(marketingWalletAddress)] = true (#464)
- isExcludedFromFee[address(buybackWalletAddress)] = true (#465)
- isMarketPair[address(uniswapPair)] = true (#472)
- isTxLimitExempt[owner()] = true (#467)
- isTxLimitExempt[address(this)] = true (#468)
- isTxLimitExempt[address(marketingWalletAddress)] = true (#469)
- isTxLimitExempt[address(buybackWalletAddress)] = true (#470)
- uniswapV2Router = _uniswapV2Router (#459)
Reentrancy in TheHarderTheyFall.swapAndLiquify(uint256) (#660-682):
External calls:
- swapTokensForEth(tokensForSwap) (#665)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#693-699)
- addLiquidity(tokensForLP,bnbForLiquidity) (#681)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,bnbForMarketing) (#675)
- recipient.transfer(amount) (#581)
- transferToAddressETH(buybackWalletAddress,bnbForBuyback) (#678)
- recipient.transfer(amount) (#581)
- addLiquidity(tokensForLP,bnbForLiquidity) (#681)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
State variables written after the call(s):
- addLiquidity(tokensForLP,bnbForLiquidity) (#681)
- _allowances[owner_][spender] = amount (#525)
Reentrancy in TheHarderTheyFall.transferFrom(address,address,uint256) (#610-614):
External calls:
- _transfer(sender,recipient,amount) (#611)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#693-699)
External calls sending eth:
- _transfer(sender,recipient,amount) (#611)
- recipient.transfer(amount) (#581)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#612)
- _allowances[owner_][spender] = amount (#525)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in TheHarderTheyFall._transfer(address,address,uint256) (#616-651):
External calls:
- swapAndLiquify(contractTokenBalance) (#638)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#693-699)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#638)
- recipient.transfer(amount) (#581)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#725)
- finalAmount = takeFee(sender,amount) (#643-644)
- Transfer(sender,recipient,finalAmount) (#648)
Reentrancy in TheHarderTheyFall.constructor() (#452-476):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#456-457)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_totalSupply) (#475)
Reentrancy in TheHarderTheyFall.swapAndLiquify(uint256) (#660-682):
External calls:
- swapTokensForEth(tokensForSwap) (#665)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#693-699)
- addLiquidity(tokensForLP,bnbForLiquidity) (#681)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,bnbForMarketing) (#675)
- recipient.transfer(amount) (#581)
- transferToAddressETH(buybackWalletAddress,bnbForBuyback) (#678)
- recipient.transfer(amount) (#581)
- addLiquidity(tokensForLP,bnbForLiquidity) (#681)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
Event emitted after the call(s):
- Approval(owner_,spender,amount) (#526)
- addLiquidity(tokensForLP,bnbForLiquidity) (#681)
Reentrancy in TheHarderTheyFall.swapTokensForEth(uint256) (#684-702):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#693-699)
Event emitted after the call(s):
- SwapTokensForETH(tokenAmount,path) (#701)
Reentrancy in TheHarderTheyFall.transferFrom(address,address,uint256) (#610-614):
External calls:
- _transfer(sender,recipient,amount) (#611)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#693-699)
External calls sending eth:
- _transfer(sender,recipient,amount) (#611)
- recipient.transfer(amount) (#581)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
Event emitted after the call(s):
- Approval(owner_,spender,amount) (#526)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#612)
Apply the check-effects-interactions pattern.
Additional information: link
Ownable.unlock() (#185-190) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp > _lockTime,Contract is locked until 7 days) (#187)
Avoid relying on block.timestamp.
Additional information: link
Address.isContract(address) (#81-90) uses assembly
- INLINE ASM (#88)
Address._functionCallWithValue(address,bytes,uint256,string) (#117-134) uses assembly
- INLINE ASM (#126-129)
Do not use evm assembly.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#117-134) is never used and should be removed
Address.functionCall(address,bytes) (#100-102) is never used and should be removed
Address.functionCall(address,bytes,string) (#104-106) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#108-110) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#112-115) is never used and should be removed
Address.isContract(address) (#81-90) is never used and should be removed
Address.sendValue(address,uint256) (#92-98) is never used and should be removed
Context._msgData() (#10-13) is never used and should be removed
SafeMath.mod(uint256,uint256) (#69-71) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#73-76) is never used and should be removed
Remove unused functions.
Additional information: link
Low level call in Address.sendValue(address,uint256) (#92-98):
- (success) = recipient.call{value: amount}() (#96)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#117-134):
- (success,returndata) = target.call{value: weiValue}(data) (#120)
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() (#224) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#225) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#241) is not in mixedCase
Function IUniswapV2Router01.WETH() (#260) is not in mixedCase
Parameter TheHarderTheyFall.setSwapAndLiquifyEnabled(bool)._enabled (#567) is not in mixedCase
Constant TheHarderTheyFall._name (#398) is not in UPPER_CASE_WITH_UNDERSCORES
Constant TheHarderTheyFall._symbol (#399) is not in UPPER_CASE_WITH_UNDERSCORES
Constant TheHarderTheyFall._decimals (#400) is not in UPPER_CASE_WITH_UNDERSCORES
Variable TheHarderTheyFall._liquidityFee (#413) is not in mixedCase
Variable TheHarderTheyFall._marketingFee (#414) is not in mixedCase
Variable TheHarderTheyFall._buybackFee (#415) is not in mixedCase
Variable TheHarderTheyFall._totalTax (#416) is not in mixedCase
Constant TheHarderTheyFall._totalSupply (#418) is not in UPPER_CASE_WITH_UNDERSCORES
Variable TheHarderTheyFall._maxTxAmount (#419) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#11)" inContext (#4-14)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in TheHarderTheyFall._transfer(address,address,uint256) (#616-651):
External calls:
- swapAndLiquify(contractTokenBalance) (#638)
- recipient.transfer(amount) (#581)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#638)
- recipient.transfer(amount) (#581)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#641)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#646)
- finalAmount = takeFee(sender,amount) (#643-644)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#724)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#725)
- finalAmount = takeFee(sender,amount) (#643-644)
- Transfer(sender,recipient,finalAmount) (#648)
Reentrancy in TheHarderTheyFall.swapAndLiquify(uint256) (#660-682):
External calls:
- transferToAddressETH(marketingWalletAddress,bnbForMarketing) (#675)
- recipient.transfer(amount) (#581)
- transferToAddressETH(buybackWalletAddress,bnbForBuyback) (#678)
- recipient.transfer(amount) (#581)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,bnbForMarketing) (#675)
- recipient.transfer(amount) (#581)
- transferToAddressETH(buybackWalletAddress,bnbForBuyback) (#678)
- recipient.transfer(amount) (#581)
- addLiquidity(tokensForLP,bnbForLiquidity) (#681)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
State variables written after the call(s):
- addLiquidity(tokensForLP,bnbForLiquidity) (#681)
- _allowances[owner_][spender] = amount (#525)
Event emitted after the call(s):
- Approval(owner_,spender,amount) (#526)
- addLiquidity(tokensForLP,bnbForLiquidity) (#681)
Reentrancy in TheHarderTheyFall.transferFrom(address,address,uint256) (#610-614):
External calls:
- _transfer(sender,recipient,amount) (#611)
- recipient.transfer(amount) (#581)
External calls sending eth:
- _transfer(sender,recipient,amount) (#611)
- recipient.transfer(amount) (#581)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#709-716)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#612)
- _allowances[owner_][spender] = amount (#525)
Event emitted after the call(s):
- Approval(owner_,spender,amount) (#526)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#612)
Apply the check-effects-interactions pattern.
Additional information: link
TheHarderTheyFall.slitherConstructorVariables() (#393-732) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#404)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
waiveOwnership() should be declared external:
- Ownable.waiveOwnership() (#159-162)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#164-168)
getUnlockTime() should be declared external:
- Ownable.getUnlockTime() (#170-172)
getTime() should be declared external:
- Ownable.getTime() (#174-176)
lock(uint256) should be declared external:
- Ownable.lock(uint256) (#178-183)
unlock() should be declared external:
- Ownable.unlock() (#185-190)
name() should be declared external:
- TheHarderTheyFall.name() (#478-480)
symbol() should be declared external:
- TheHarderTheyFall.symbol() (#482-484)
decimals() should be declared external:
- TheHarderTheyFall.decimals() (#486-488)
totalSupply() should be declared external:
- TheHarderTheyFall.totalSupply() (#490-492)
allowance(address,address) should be declared external:
- TheHarderTheyFall.allowance(address,address) (#498-500)
increaseAllowance(address,uint256) should be declared external:
- TheHarderTheyFall.increaseAllowance(address,uint256) (#502-505)
decreaseAllowance(address,uint256) should be declared external:
- TheHarderTheyFall.decreaseAllowance(address,uint256) (#507-510)
minimumTokensBeforeSwapAmount() should be declared external:
- TheHarderTheyFall.minimumTokensBeforeSwapAmount() (#512-514)
approve(address,uint256) should be declared external:
- TheHarderTheyFall.approve(address,uint256) (#516-519)
setMarketPairStatus(address,bool) should be declared external:
- TheHarderTheyFall.setMarketPairStatus(address,bool) (#529-531)
setIsExcludedFromFee(address,bool) should be declared external:
- TheHarderTheyFall.setIsExcludedFromFee(address,bool) (#537-539)
setSwapAndLiquifyEnabled(bool) should be declared external:
- TheHarderTheyFall.setSwapAndLiquifyEnabled(bool) (#567-570)
setSwapAndLiquifyByLimitOnly(bool) should be declared external:
- TheHarderTheyFall.setSwapAndLiquifyByLimitOnly(bool) (#572-574)
getCirculatingSupply() should be declared external:
- TheHarderTheyFall.getCirculatingSupply() (#576-578)
changeRouterVersion(address) should be declared external:
- TheHarderTheyFall.changeRouterVersion(address) (#584-600)
transfer(address,uint256) should be declared external:
- TheHarderTheyFall.transfer(address,uint256) (#605-608)
transferFrom(address,address,uint256) should be declared external:
- TheHarderTheyFall.transferFrom(address,address,uint256) (#610-614)
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 number of PancakeSwap swaps is less than 1. Token is either dead or inactive.
Average 30d PancakeSwap volume is low.
Average PancakeSwap trading volume, liqudity, number of swaps are low. Token seems to be inactive.
Token is deployed only at one blockchain
Token has only one trading pair
Contract has 10% buy tax and 10% sell tax.
Taxes are low and contract ownership is renounced.
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 find audit link on the website
Unable to find whitepaper link on the website
Unable to find token on CoinHunt
Additional information: link
Unable to find code repository for the project
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of price dump / death
Token has relatively low CoinGecko rank
Token has relatively low CoinMarketCap rank
Unable to find Youtube account