“Heres"" or HRS, is a free mobile game that builds a cross-entry between the game world and the Metaverse through the Blockchain-based NFT ecological architecture and open game community. Based on the core game, Heres realizes the implantation of diversified businesses, and builds over time, through the power of the HRS main creative team and the community at large, gradually.
HRS develops and finally forms the Metaverse ecology including:
● NFT trading market;
● Digital asset trading platform;
● Regular game and activity rules;
● Social Center: Provide a meeting place for like-minded players;
● Metaverse: expand to third-party developed games and more applications
● Intelligent hardware: the development and maturity of VR and AR will serve as the hardware foundation of the HRS Metaverse.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Reentrancy in HRSHeroToken._transfer(address,address,uint256) (contracts/HRSToken.sol#226-284):
External calls:
- swapAndCharge(tokenBalance) (contracts/HRSToken.sol#267)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (contracts/HRSToken.sol#326-333)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/HRSToken.sol#312-318)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (contracts/HRSToken.sol#297)
External calls sending eth:
- swapAndCharge(tokenBalance) (contracts/HRSToken.sol#267)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (contracts/HRSToken.sol#326-333)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (contracts/HRSToken.sol#297)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (contracts/HRSToken.sol#283)
- _BNBFee = _previousBNBFee (contracts/HRSToken.sol#210)
- _BNBFee = 0 (contracts/HRSToken.sol#205)
- _tokenTransfer(from,to,amount,takeFee) (contracts/HRSToken.sol#283)
- _balances[sender] = _balances[sender].sub(amount) (contracts/HRSToken.sol#341)
- _balances[recipient] = _balances[recipient].add(tTransferAmount) (contracts/HRSToken.sol#342)
- _balances[address(this)] = _balances[address(this)].add(amount.sub(tTransferAmount)) (contracts/HRSToken.sol#343)
- _tokenTransfer(from,to,amount,takeFee) (contracts/HRSToken.sol#283)
- _liquidityFee = _previousLiquidityFee (contracts/HRSToken.sol#211)
- _liquidityFee = 0 (contracts/HRSToken.sol#206)
- lastSwapTime = block.timestamp (contracts/HRSToken.sol#268)
Apply the check-effects-interactions pattern.
Additional information: link
HRSHeroToken.swapAndCharge(uint256) (contracts/HRSToken.sol#286-300) uses a dangerous strict equality:
- require(bool,string)(success == true,Transfer failed.) (contracts/HRSToken.sol#298)
Don't use strict equality to determine if an account has enough Ether or tokens.
Additional information: link
HRSHeroToken.swapAndCharge(uint256) (contracts/HRSToken.sol#286-300) performs a multiplication on the result of a division:
-liquidBalance = tokenBalance.mul(_liquidityFee).div(_liquidityFee + _BNBFee).div(2) (contracts/HRSToken.sol#289)
-bnbForLiquid = newBalance.mul(liquidBalance).div(tokenBalance) (contracts/HRSToken.sol#294)
Consider ordering multiplication before division.
Additional information: link
HRSHeroToken.addLiquidity(uint256,uint256) (contracts/HRSToken.sol#321-334) ignores return value by pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (contracts/HRSToken.sol#326-333)
Ensure that all the return values of the function calls are used.
Additional information: link
HRSHeroToken.allowance(address,address).owner (contracts/HRSToken.sol#117) shadows:
- Ownable.owner() (contracts/Ownable.sol#19-21) (function)
HRSHeroToken._approve(address,address,uint256).owner (contracts/HRSToken.sol#218) shadows:
- Ownable.owner() (contracts/Ownable.sol#19-21) (function)
Rename the local variables that shadow another component.
Additional information: link
Reentrancy in HRSHeroToken._transfer(address,address,uint256) (contracts/HRSToken.sol#226-284):
External calls:
- swapAndCharge(tokenBalance) (contracts/HRSToken.sol#267)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (contracts/HRSToken.sol#326-333)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/HRSToken.sol#312-318)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (contracts/HRSToken.sol#297)
External calls sending eth:
- swapAndCharge(tokenBalance) (contracts/HRSToken.sol#267)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (contracts/HRSToken.sol#326-333)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (contracts/HRSToken.sol#297)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (contracts/HRSToken.sol#283)
- _previousBNBFee = _BNBFee (contracts/HRSToken.sol#202)
- _tokenTransfer(from,to,amount,takeFee) (contracts/HRSToken.sol#283)
- _previousLiquidityFee = _liquidityFee (contracts/HRSToken.sol#203)
Reentrancy in HRSHeroToken.constructor() (contracts/HRSToken.sol#69-86):
External calls:
- pancakeswapV2Pair = IPancakeswapV2Factory(_pancakeswapV2Router.factory()).createPair(address(this),_pancakeswapV2Router.WETH()) (contracts/HRSToken.sol#75-76)
State variables written after the call(s):
- _balances[_msgSender()] = _tTotal (contracts/HRSToken.sol#84)
- _isExcludedFromFee[_msgSender()] = true (contracts/HRSToken.sol#82)
- _isExcludedFromFee[address(this)] = true (contracts/HRSToken.sol#83)
- pancakeswapV2Router = _pancakeswapV2Router (contracts/HRSToken.sol#79)
Reentrancy in HRSHeroToken.swapAndCharge(uint256) (contracts/HRSToken.sol#286-300):
External calls:
- swapTokensForEth(tokenBalance) (contracts/HRSToken.sol#291)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/HRSToken.sol#312-318)
- addLiquidity(liquidBalance,bnbForLiquid) (contracts/HRSToken.sol#295)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (contracts/HRSToken.sol#326-333)
External calls sending eth:
- addLiquidity(liquidBalance,bnbForLiquid) (contracts/HRSToken.sol#295)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (contracts/HRSToken.sol#326-333)
State variables written after the call(s):
- addLiquidity(liquidBalance,bnbForLiquid) (contracts/HRSToken.sol#295)
- _allowances[owner][spender] = amount (contracts/HRSToken.sol#222)
Reentrancy in HRSHeroToken.transferFrom(address,address,uint256) (contracts/HRSToken.sol#126-130):
External calls:
- _transfer(sender,recipient,amount) (contracts/HRSToken.sol#127)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (contracts/HRSToken.sol#326-333)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/HRSToken.sol#312-318)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (contracts/HRSToken.sol#297)
External calls sending eth:
- _transfer(sender,recipient,amount) (contracts/HRSToken.sol#127)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (contracts/HRSToken.sol#326-333)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (contracts/HRSToken.sol#297)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,BEP20: transfer amount exceeds allowance)) (contracts/HRSToken.sol#128)
- _allowances[owner][spender] = amount (contracts/HRSToken.sol#222)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in HRSHeroToken._transfer(address,address,uint256) (contracts/HRSToken.sol#226-284):
External calls:
- swapAndCharge(tokenBalance) (contracts/HRSToken.sol#267)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (contracts/HRSToken.sol#326-333)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/HRSToken.sol#312-318)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (contracts/HRSToken.sol#297)
External calls sending eth:
- swapAndCharge(tokenBalance) (contracts/HRSToken.sol#267)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (contracts/HRSToken.sol#326-333)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (contracts/HRSToken.sol#297)
Event emitted after the call(s):
- Transfer(sender,recipient,tTransferAmount) (contracts/HRSToken.sol#344)
- _tokenTransfer(from,to,amount,takeFee) (contracts/HRSToken.sol#283)
Reentrancy in HRSHeroToken.constructor() (contracts/HRSToken.sol#69-86):
External calls:
- pancakeswapV2Pair = IPancakeswapV2Factory(_pancakeswapV2Router.factory()).createPair(address(this),_pancakeswapV2Router.WETH()) (contracts/HRSToken.sol#75-76)
Event emitted after the call(s):
- Transfer(address(0),owner(),_tTotal) (contracts/HRSToken.sol#85)
Reentrancy in HRSHeroToken.swapAndCharge(uint256) (contracts/HRSToken.sol#286-300):
External calls:
- swapTokensForEth(tokenBalance) (contracts/HRSToken.sol#291)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/HRSToken.sol#312-318)
- addLiquidity(liquidBalance,bnbForLiquid) (contracts/HRSToken.sol#295)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (contracts/HRSToken.sol#326-333)
External calls sending eth:
- addLiquidity(liquidBalance,bnbForLiquid) (contracts/HRSToken.sol#295)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (contracts/HRSToken.sol#326-333)
Event emitted after the call(s):
- Approval(owner,spender,amount) (contracts/HRSToken.sol#223)
- addLiquidity(liquidBalance,bnbForLiquid) (contracts/HRSToken.sol#295)
Reentrancy in HRSHeroToken.swapAndCharge(uint256) (contracts/HRSToken.sol#286-300):
External calls:
- swapTokensForEth(tokenBalance) (contracts/HRSToken.sol#291)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/HRSToken.sol#312-318)
- addLiquidity(liquidBalance,bnbForLiquid) (contracts/HRSToken.sol#295)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (contracts/HRSToken.sol#326-333)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (contracts/HRSToken.sol#297)
External calls sending eth:
- addLiquidity(liquidBalance,bnbForLiquid) (contracts/HRSToken.sol#295)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (contracts/HRSToken.sol#326-333)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (contracts/HRSToken.sol#297)
Event emitted after the call(s):
- SwapAndCharged(tokenBalance,liquidBalance,address(this).balance,bnbForLiquid) (contracts/HRSToken.sol#299)
Reentrancy in HRSHeroToken.transferFrom(address,address,uint256) (contracts/HRSToken.sol#126-130):
External calls:
- _transfer(sender,recipient,amount) (contracts/HRSToken.sol#127)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (contracts/HRSToken.sol#326-333)
- pancakeswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/HRSToken.sol#312-318)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (contracts/HRSToken.sol#297)
External calls sending eth:
- _transfer(sender,recipient,amount) (contracts/HRSToken.sol#127)
- pancakeswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (contracts/HRSToken.sol#326-333)
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (contracts/HRSToken.sol#297)
Event emitted after the call(s):
- Approval(owner,spender,amount) (contracts/HRSToken.sol#223)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,BEP20: transfer amount exceeds allowance)) (contracts/HRSToken.sol#128)
Apply the check-effects-interactions pattern.
Additional information: link
HRSHeroToken._transfer(address,address,uint256) (contracts/HRSToken.sol#226-284) uses timestamp for comparisons
Dangerous comparisons:
- overMinTokenBalance && ! inSwapAndLiquify && from != pancakeswapV2Pair && swapAndLiquifyEnabled && block.timestamp >= lastSwapTime + swapCoolDownTime (contracts/HRSToken.sol#260-264)
Ownable.unlock() (contracts/Ownable.sol#50-55) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp > _lockTime,Contract is locked until 0 days) (contracts/Ownable.sol#52)
Avoid relying on block.timestamp.
Additional information: link
HRSHeroToken._transfer(address,address,uint256) (contracts/HRSToken.sol#226-284) compares to a boolean constant:
-require(bool,string)(presaleEnded == true,You are not allowed to add liquidity before presale is ended) (contracts/HRSToken.sol#235)
HRSHeroToken.swapAndCharge(uint256) (contracts/HRSToken.sol#286-300) compares to a boolean constant:
-require(bool,string)(success == true,Transfer failed.) (contracts/HRSToken.sol#298)
Remove the equality to the boolean constant.
Additional information: link
Context._msgData() (contracts/Context.sol#18-21) is never used and should be removed
SafeMath.div(uint256,uint256,string) (contracts/SafeMath.sol#189-194) is never used and should be removed
SafeMath.mod(uint256,uint256) (contracts/SafeMath.sol#149-151) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (contracts/SafeMath.sol#211-216) is never used and should be removed
SafeMath.tryAdd(uint256,uint256) (contracts/SafeMath.sol#20-26) is never used and should be removed
SafeMath.tryDiv(uint256,uint256) (contracts/SafeMath.sol#62-67) is never used and should be removed
SafeMath.tryMod(uint256,uint256) (contracts/SafeMath.sol#74-79) is never used and should be removed
SafeMath.tryMul(uint256,uint256) (contracts/SafeMath.sol#45-55) is never used and should be removed
SafeMath.trySub(uint256,uint256) (contracts/SafeMath.sol#33-38) is never used and should be removed
Remove unused functions.
Additional information: link
HRSHeroToken._previousBNBFee (contracts/HRSToken.sol#29) is set pre-construction with a non-constant function or state variable:
- _BNBFee
HRSHeroToken._previousLiquidityFee (contracts/HRSToken.sol#32) is set pre-construction with a non-constant function or state variable:
- _liquidityFee
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 version^0.8.0 (contracts/Context.sol#2) allows old versions
Pragma version^0.8.0 (contracts/HRSToken.sol#3) allows old versions
Pragma version^0.8.0 (contracts/IBEP20.sol#3) allows old versions
Pragma version^0.8.0 (contracts/IPancakeswapV2Factory.sol#3) allows old versions
Pragma version^0.8.0 (contracts/IPancakeswapV2Router01.sol#3) allows old versions
Pragma version^0.8.0 (contracts/IPancakeswapV2Router02.sol#3) allows old versions
Pragma version^0.8.0 (contracts/Ownable.sol#2) allows old versions
Pragma version^0.8.0 (contracts/SafeMath.sol#2) allows old versions
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 HRSHeroToken.swapAndCharge(uint256) (contracts/HRSToken.sol#286-300):
- (success) = address(bnbPoolAddress).call{value: address(this).balance}() (contracts/HRSToken.sol#297)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Parameter HRSHeroToken.setSwapAndLiquifyEnabled(bool)._enabled (contracts/HRSToken.sol#185) is not in mixedCase
Variable HRSHeroToken._BNBFee (contracts/HRSToken.sol#28) is not in mixedCase
Variable HRSHeroToken._liquidityFee (contracts/HRSToken.sol#31) is not in mixedCase
Variable HRSHeroToken._maxTxAmount (contracts/HRSToken.sol#42) is not in mixedCase
Function IPancakeswapV2Router01.WETH() (contracts/IPancakeswapV2Router01.sol#7) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (contracts/Context.sol#19)" inContext (contracts/Context.sol#13-23)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable IPancakeswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (contracts/IPancakeswapV2Router01.sol#12) is too similar to IPancakeswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (contracts/IPancakeswapV2Router01.sol#13)
Prevent variables from having similar names.
Additional information: link
HRSHeroToken.MAX (contracts/HRSToken.sol#23) is never used in HRSHeroToken (contracts/HRSToken.sol#12-350)
HRSHeroToken.lastTxTimes (contracts/HRSToken.sol#47) is never used in HRSHeroToken (contracts/HRSToken.sol#12-350)
Remove unused state variables.
Additional information: link
HRSHeroToken._decimals (contracts/HRSToken.sol#26) should be constant
HRSHeroToken._name (contracts/HRSToken.sol#24) should be constant
HRSHeroToken._symbol (contracts/HRSToken.sol#25) should be constant
HRSHeroToken._tTotal (contracts/HRSToken.sol#22) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
transfer(address,uint256) should be declared external:
- HRSHeroToken.transfer(address,uint256) (contracts/HRSToken.sol#112-115)
allowance(address,address) should be declared external:
- HRSHeroToken.allowance(address,address) (contracts/HRSToken.sol#117-119)
approve(address,uint256) should be declared external:
- HRSHeroToken.approve(address,uint256) (contracts/HRSToken.sol#121-124)
transferFrom(address,address,uint256) should be declared external:
- HRSHeroToken.transferFrom(address,address,uint256) (contracts/HRSToken.sol#126-130)
increaseAllowance(address,uint256) should be declared external:
- HRSHeroToken.increaseAllowance(address,uint256) (contracts/HRSToken.sol#132-135)
decreaseAllowance(address,uint256) should be declared external:
- HRSHeroToken.decreaseAllowance(address,uint256) (contracts/HRSToken.sol#137-140)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (contracts/Ownable.sol#28-31)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (contracts/Ownable.sol#33-37)
geUnlockTime() should be declared external:
- Ownable.geUnlockTime() (contracts/Ownable.sol#39-41)
lock(uint256) should be declared external:
- Ownable.lock(uint256) (contracts/Ownable.sol#43-48)
unlock() should be declared external:
- Ownable.unlock() (contracts/Ownable.sol#50-55)
Use the external attribute for functions never called from the contract.
Additional information: link
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 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 Blog account (Reddit or Medium)
Unable to find Youtube account