BNBHunter is the first collect game built on BSC and will launch the GameFi platform with NFT DeFi protocol, and innovative features.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Reentrancy in BHTToken._transfer(address,address,uint256) (contracts/hunter/bhtToken.sol#289-337):
External calls:
- swapAndLiquify(contractTokenBalance) (contracts/hunter/bhtToken.sol#307)
- (liquidity) = ISwapRouter(swapRouterAddress).addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (contracts/hunter/bhtToken.sol#523-530)
- ISwapRouter(swapRouterAddress).swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/hunter/bhtToken.sol#508-514)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (contracts/hunter/bhtToken.sol#307)
- (liquidity) = ISwapRouter(swapRouterAddress).addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (contracts/hunter/bhtToken.sol#523-530)
State variables written after the call(s):
- _balances[sender] = senderBalance - amount (contracts/hunter/bhtToken.sol#315)
- _balances[devAddress] = _balances[devAddress].add(_devAmount) (contracts/hunter/bhtToken.sol#323)
- _balances[address(this)] = _balances[address(this)].add(_lpAmount) (contracts/hunter/bhtToken.sol#326)
- _balances[recipient] += amount (contracts/hunter/bhtToken.sol#333)
Apply the check-effects-interactions pattern.
Additional information: link
BHTToken.allowance(address,address).owner (contracts/hunter/bhtToken.sol#189) shadows:
- Ownable.owner() (contracts/hunter/openzeppelin/contracts/access/Ownable.sol#35-37) (function)
BHTToken._approve(address,address,uint256).owner (contracts/hunter/bhtToken.sol#403) shadows:
- Ownable.owner() (contracts/hunter/openzeppelin/contracts/access/Ownable.sol#35-37) (function)
Rename the local variables that shadow another component.
Additional information: link
BHTToken.constructor(address,address,address)._devAddress (contracts/hunter/bhtToken.sol#105) lacks a zero-check on :
- devAddress = _devAddress (contracts/hunter/bhtToken.sol#119)
Check that the address is not zero.
Additional information: link
Reentrancy in BHTToken.constructor(address,address,address) (contracts/hunter/bhtToken.sol#105-125):
External calls:
- swapPairAddress = ISwapFactory(_router.factory()).createPair(address(this),weth) (contracts/hunter/bhtToken.sol#114-115)
State variables written after the call(s):
- devAddress = _devAddress (contracts/hunter/bhtToken.sol#119)
- swapRouterAddress = address(_routerAddress) (contracts/hunter/bhtToken.sol#118)
- whiteList[address(this)] = true (contracts/hunter/bhtToken.sol#120)
- whiteList[msg.sender] = true (contracts/hunter/bhtToken.sol#121)
- whiteList[devAddress] = true (contracts/hunter/bhtToken.sol#123)
Reentrancy in BHTToken.swapAndLiquify(uint256) (contracts/hunter/bhtToken.sol#473-495):
External calls:
- swapTokensForEth(half) (contracts/hunter/bhtToken.sol#485)
- ISwapRouter(swapRouterAddress).swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/hunter/bhtToken.sol#508-514)
- addLiquidity(otherHalf,newBalance) (contracts/hunter/bhtToken.sol#492)
- (liquidity) = ISwapRouter(swapRouterAddress).addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (contracts/hunter/bhtToken.sol#523-530)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (contracts/hunter/bhtToken.sol#492)
- (liquidity) = ISwapRouter(swapRouterAddress).addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (contracts/hunter/bhtToken.sol#523-530)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (contracts/hunter/bhtToken.sol#492)
- _allowances[owner][spender] = amount (contracts/hunter/bhtToken.sol#410)
Reentrancy in BHTToken.transferFrom(address,address,uint256) (contracts/hunter/bhtToken.sol#218-232):
External calls:
- _transfer(sender,recipient,amount) (contracts/hunter/bhtToken.sol#223)
- (liquidity) = ISwapRouter(swapRouterAddress).addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (contracts/hunter/bhtToken.sol#523-530)
- ISwapRouter(swapRouterAddress).swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/hunter/bhtToken.sol#508-514)
External calls sending eth:
- _transfer(sender,recipient,amount) (contracts/hunter/bhtToken.sol#223)
- (liquidity) = ISwapRouter(swapRouterAddress).addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (contracts/hunter/bhtToken.sol#523-530)
State variables written after the call(s):
- _approve(sender,_msgSender(),currentAllowance - amount) (contracts/hunter/bhtToken.sol#228)
- _allowances[owner][spender] = amount (contracts/hunter/bhtToken.sol#410)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in BHTToken._transfer(address,address,uint256) (contracts/hunter/bhtToken.sol#289-337):
External calls:
- swapAndLiquify(contractTokenBalance) (contracts/hunter/bhtToken.sol#307)
- (liquidity) = ISwapRouter(swapRouterAddress).addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (contracts/hunter/bhtToken.sol#523-530)
- ISwapRouter(swapRouterAddress).swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/hunter/bhtToken.sol#508-514)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (contracts/hunter/bhtToken.sol#307)
- (liquidity) = ISwapRouter(swapRouterAddress).addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (contracts/hunter/bhtToken.sol#523-530)
Event emitted after the call(s):
- Transfer(sender,devAddress,_devAmount) (contracts/hunter/bhtToken.sol#324)
- Transfer(sender,address(this),_lpAmount) (contracts/hunter/bhtToken.sol#327)
- Transfer(sender,recipient,amount) (contracts/hunter/bhtToken.sol#335)
Reentrancy in BHTToken.swapAndLiquify(uint256) (contracts/hunter/bhtToken.sol#473-495):
External calls:
- swapTokensForEth(half) (contracts/hunter/bhtToken.sol#485)
- ISwapRouter(swapRouterAddress).swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/hunter/bhtToken.sol#508-514)
- addLiquidity(otherHalf,newBalance) (contracts/hunter/bhtToken.sol#492)
- (liquidity) = ISwapRouter(swapRouterAddress).addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (contracts/hunter/bhtToken.sol#523-530)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (contracts/hunter/bhtToken.sol#492)
- (liquidity) = ISwapRouter(swapRouterAddress).addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (contracts/hunter/bhtToken.sol#523-530)
Event emitted after the call(s):
- Approval(owner,spender,amount) (contracts/hunter/bhtToken.sol#411)
- addLiquidity(otherHalf,newBalance) (contracts/hunter/bhtToken.sol#492)
- SwapAndLiquify(half,newBalance,otherHalf) (contracts/hunter/bhtToken.sol#494)
Reentrancy in BHTToken.transferFrom(address,address,uint256) (contracts/hunter/bhtToken.sol#218-232):
External calls:
- _transfer(sender,recipient,amount) (contracts/hunter/bhtToken.sol#223)
- (liquidity) = ISwapRouter(swapRouterAddress).addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (contracts/hunter/bhtToken.sol#523-530)
- ISwapRouter(swapRouterAddress).swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/hunter/bhtToken.sol#508-514)
External calls sending eth:
- _transfer(sender,recipient,amount) (contracts/hunter/bhtToken.sol#223)
- (liquidity) = ISwapRouter(swapRouterAddress).addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (contracts/hunter/bhtToken.sol#523-530)
Event emitted after the call(s):
- Approval(owner,spender,amount) (contracts/hunter/bhtToken.sol#411)
- _approve(sender,_msgSender(),currentAllowance - amount) (contracts/hunter/bhtToken.sol#228)
Apply the check-effects-interactions pattern.
Additional information: link
BHTToken.addLiquidity(uint256,uint256) (contracts/hunter/bhtToken.sol#518-532) uses timestamp for comparisons
Dangerous comparisons:
- require(bool)(liquidity > 0) (contracts/hunter/bhtToken.sol#531)
Avoid relying on block.timestamp.
Additional information: link
Context._msgData() (contracts/hunter/openzeppelin/contracts/utils/Context.sol#20-23) is never used and should be removed
SafeMath.div(uint256,uint256,string) (contracts/hunter/openzeppelin/contracts/utils/math/SafeMath.sol#190-195) is never used and should be removed
SafeMath.mod(uint256,uint256) (contracts/hunter/openzeppelin/contracts/utils/math/SafeMath.sol#150-152) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (contracts/hunter/openzeppelin/contracts/utils/math/SafeMath.sol#212-217) is never used and should be removed
SafeMath.sub(uint256,uint256,string) (contracts/hunter/openzeppelin/contracts/utils/math/SafeMath.sol#167-172) is never used and should be removed
SafeMath.tryAdd(uint256,uint256) (contracts/hunter/openzeppelin/contracts/utils/math/SafeMath.sol#21-27) is never used and should be removed
SafeMath.tryDiv(uint256,uint256) (contracts/hunter/openzeppelin/contracts/utils/math/SafeMath.sol#63-68) is never used and should be removed
SafeMath.tryMod(uint256,uint256) (contracts/hunter/openzeppelin/contracts/utils/math/SafeMath.sol#75-80) is never used and should be removed
SafeMath.tryMul(uint256,uint256) (contracts/hunter/openzeppelin/contracts/utils/math/SafeMath.sol#46-56) is never used and should be removed
SafeMath.trySub(uint256,uint256) (contracts/hunter/openzeppelin/contracts/utils/math/SafeMath.sol#34-39) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version^0.8.0 (contracts/hunter/bhtToken.sol#1) allows old versions
Pragma version^0.8.0 (contracts/hunter/openzeppelin/contracts/access/Ownable.sol#3) allows old versions
Pragma version^0.8.0 (contracts/hunter/openzeppelin/contracts/security/Pausable.sol#3) allows old versions
Pragma version^0.8.0 (contracts/hunter/openzeppelin/contracts/token/ERC20/IERC20.sol#3) allows old versions
Pragma version^0.8.0 (contracts/hunter/openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol#3) allows old versions
Pragma version^0.8.0 (contracts/hunter/openzeppelin/contracts/utils/Context.sol#3) allows old versions
Pragma version^0.8.0 (contracts/hunter/openzeppelin/contracts/utils/math/SafeMath.sol#3) 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
Function ISwapRouter.WETH() (contracts/hunter/bhtToken.sol#11) is not in mixedCase
Parameter BHTToken.burn(address,uint256)._user (contracts/hunter/bhtToken.sol#384) is not in mixedCase
Parameter BHTToken.burn(address,uint256)._amount (contracts/hunter/bhtToken.sol#384) is not in mixedCase
Parameter BHTToken.setSetting(address,uint256,uint256,uint256,bool,bool)._devAddress (contracts/hunter/bhtToken.sol#416) is not in mixedCase
Parameter BHTToken.setSetting(address,uint256,uint256,uint256,bool,bool)._lpFeeRate (contracts/hunter/bhtToken.sol#416) is not in mixedCase
Parameter BHTToken.setSetting(address,uint256,uint256,uint256,bool,bool)._devFeeRate (contracts/hunter/bhtToken.sol#416) is not in mixedCase
Parameter BHTToken.setSetting(address,uint256,uint256,uint256,bool,bool)._numTokensSellToAddToLiquidity (contracts/hunter/bhtToken.sol#416) is not in mixedCase
Parameter BHTToken.setSetting(address,uint256,uint256,uint256,bool,bool)._swapAndLiquifyEnabled (contracts/hunter/bhtToken.sol#416) is not in mixedCase
Parameter BHTToken.setSetting(address,uint256,uint256,uint256,bool,bool)._enForce (contracts/hunter/bhtToken.sol#416) is not in mixedCase
Parameter BHTToken.addWhiteList(address[])._addresses (contracts/hunter/bhtToken.sol#436) is not in mixedCase
Parameter BHTToken.removeWhiteList(address)._address (contracts/hunter/bhtToken.sol#446) is not in mixedCase
Parameter BHTToken.addBurnContracts(address[])._addresses (contracts/hunter/bhtToken.sol#452) is not in mixedCase
Parameter BHTToken.removeBurnContract(address)._address (contracts/hunter/bhtToken.sol#462) is not in mixedCase
Variable Ownable._owner (contracts/hunter/openzeppelin/contracts/access/Ownable.sol#19) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (contracts/hunter/openzeppelin/contracts/utils/Context.sol#21)" inContext (contracts/hunter/openzeppelin/contracts/utils/Context.sol#15-24)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable ISwapRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (contracts/hunter/bhtToken.sol#46) is too similar to ISwapRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (contracts/hunter/bhtToken.sol#47)
Prevent variables from having similar names.
Additional information: link
BHTToken.constructor(address,address,address) (contracts/hunter/bhtToken.sol#105-125) uses literals with too many digits:
- _mint(msg.sender,1000000000 * (10 ** 18)) (contracts/hunter/bhtToken.sol#106)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
BHTToken._name (contracts/hunter/bhtToken.sol#73) should be constant
BHTToken._symbol (contracts/hunter/bhtToken.sol#74) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
name() should be declared external:
- BHTToken.name() (contracts/hunter/bhtToken.sol#130-132)
symbol() should be declared external:
- BHTToken.symbol() (contracts/hunter/bhtToken.sol#138-140)
decimals() should be declared external:
- BHTToken.decimals() (contracts/hunter/bhtToken.sol#155-157)
totalSupply() should be declared external:
- BHTToken.totalSupply() (contracts/hunter/bhtToken.sol#162-164)
transfer(address,uint256) should be declared external:
- BHTToken.transfer(address,uint256) (contracts/hunter/bhtToken.sol#181-184)
allowance(address,address) should be declared external:
- BHTToken.allowance(address,address) (contracts/hunter/bhtToken.sol#189-191)
approve(address,uint256) should be declared external:
- BHTToken.approve(address,uint256) (contracts/hunter/bhtToken.sol#200-203)
transferFrom(address,address,uint256) should be declared external:
- BHTToken.transferFrom(address,address,uint256) (contracts/hunter/bhtToken.sol#218-232)
increaseAllowance(address,uint256) should be declared external:
- BHTToken.increaseAllowance(address,uint256) (contracts/hunter/bhtToken.sol#246-249)
decreaseAllowance(address,uint256) should be declared external:
- BHTToken.decreaseAllowance(address,uint256) (contracts/hunter/bhtToken.sol#265-273)
burn(address,uint256) should be declared external:
- BHTToken.burn(address,uint256) (contracts/hunter/bhtToken.sol#384-388)
setSetting(address,uint256,uint256,uint256,bool,bool) should be declared external:
- BHTToken.setSetting(address,uint256,uint256,uint256,bool,bool) (contracts/hunter/bhtToken.sol#416-434)
addWhiteList(address[]) should be declared external:
- BHTToken.addWhiteList(address[]) (contracts/hunter/bhtToken.sol#436-444)
removeWhiteList(address) should be declared external:
- BHTToken.removeWhiteList(address) (contracts/hunter/bhtToken.sol#446-449)
addBurnContracts(address[]) should be declared external:
- BHTToken.addBurnContracts(address[]) (contracts/hunter/bhtToken.sol#452-460)
removeBurnContract(address) should be declared external:
- BHTToken.removeBurnContract(address) (contracts/hunter/bhtToken.sol#462-465)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (contracts/hunter/openzeppelin/contracts/access/Ownable.sol#54-57)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (contracts/hunter/openzeppelin/contracts/access/Ownable.sol#63-67)
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 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
Token is marked as scam (rug pull, honeypot, phishing, etc.)
Additional information: link
Young tokens have high risks of price dump / death
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Token has relatively low CoinGecko rank
Token has relatively low CoinMarketCap rank
Twitter account link seems to be invalid