BhpToken.takeOutErrorTransfer(address) (#516-520) ignores return value by IBEP20(tokenaddress).transfer(_owner,IBEP20(tokenaddress).balanceOf(address(this))) (#519)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Reentrancy in BhpToken._transfer(address,address,uint256) (#590-619):
External calls:
- uniswapV2Router.swapExactTokensForTokens(_totalfee,0,path,hua,deadline) (#610)
State variables written after the call(s):
- _balances[recipient] = _balances[recipient].add(real) (#612)
Apply the check-effects-interactions pattern.
Additional information: link
BhpToken._transfer(address,address,uint256) (#590-619) ignores return value by uniswapV2Router.swapExactTokensForTokens(_totalfee,0,path,hua,deadline) (#610)
Ensure that all the return values of the function calls are used.
Additional information: link
BhpToken.sethua(address)._hua (#458) lacks a zero-check on :
- hua = _hua (#461)
BhpToken.setchi(address)._chi (#463) lacks a zero-check on :
- chi = _chi (#466)
Check that the address is not zero.
Additional information: link
Reentrancy in BhpToken.constructor() (#438-451):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),usdt) (#448-449)
State variables written after the call(s):
- uniswapV2Router = _uniswapV2Router (#450)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in BhpToken._transfer(address,address,uint256) (#590-619):
External calls:
- uniswapV2Router.swapExactTokensForTokens(_totalfee,0,path,hua,deadline) (#610)
Event emitted after the call(s):
- Transfer(sender,recipient,real) (#613)
Apply the check-effects-interactions pattern.
Additional information: link
Address.isContract(address) (#112-118) uses assembly
- INLINE ASM (#116)
Address._functionCallWithValue(address,bytes,uint256,string) (#138-157) uses assembly
- INLINE ASM (#149-152)
Do not use evm assembly.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#138-157) is never used and should be removed
Address.functionCall(address,bytes) (#125-127) is never used and should be removed
Address.functionCall(address,bytes,string) (#128-130) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#131-133) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#134-137) is never used and should be removed
Address.isContract(address) (#112-118) is never used and should be removed
Address.sendValue(address,uint256) (#119-124) is never used and should be removed
SafeMath.div(uint256,uint256) (#61-63) is never used and should be removed
SafeMath.div(uint256,uint256,string) (#65-75) is never used and should be removed
SafeMath.min(uint256,uint256) (#90-92) is never used and should be removed
SafeMath.mod(uint256,uint256) (#77-79) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#81-88) is never used and should be removed
SafeMath.mul(uint256,uint256) (#47-59) is never used and should be removed
SafeMath.sqrt(uint256) (#95-106) is never used and should be removed
SafeMath.subwithlesszero(uint256,uint256) (#38-44) is never used and should be removed
TransferHelper.safeApprove(address,address,uint256) (#163-171) is never used and should be removed
TransferHelper.safeTransfer(address,address,uint256) (#173-181) is never used and should be removed
TransferHelper.safeTransferBNB(address,uint256) (#194-197) is never used and should be removed
TransferHelper.safeTransferFrom(address,address,address,uint256) (#183-192) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version>=0.8.0 (#10) allows old versions
solc-0.8.14 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) (#119-124):
- (success) = recipient.call{value: amount}() (#122)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#138-157):
- (success,returndata) = target.call{value: weiValue}(data) (#141)
Low level call in TransferHelper.safeApprove(address,address,uint256) (#163-171):
- (success,data) = token.call(abi.encodeWithSelector(0x095ea7b3,to,value)) (#169)
Low level call in TransferHelper.safeTransfer(address,address,uint256) (#173-181):
- (success,data) = token.call(abi.encodeWithSelector(0xa9059cbb,to,value)) (#179)
Low level call in TransferHelper.safeTransferFrom(address,address,address,uint256) (#183-192):
- (success,data) = token.call(abi.encodeWithSelector(0x23b872dd,from,to,value)) (#190)
Low level call in TransferHelper.safeTransferBNB(address,uint256) (#194-197):
- (success) = to.call{value: value}(new bytes(0)) (#195)
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() (#252) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#253) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#267) is not in mixedCase
Function IUniswapV2Router01.WETH() (#285) is not in mixedCase
Parameter BhpToken.sethua(address)._hua (#458) is not in mixedCase
Parameter BhpToken.setchi(address)._chi (#463) is not in mixedCase
Variable BhpToken._owner (#419) is not in mixedCase
Variable BhpToken._name (#420) is not in mixedCase
Variable BhpToken._symbol (#421) is not in mixedCase
Variable BhpToken._decimals (#422) is not in mixedCase
Variable BhpToken._totalsupply (#423) is not in mixedCase
Variable BhpToken.router_address (#429) is not in mixedCase
Variable BhpToken._minter (#431) is not in mixedCase
Variable BhpToken._balances (#432) is not in mixedCase
Variable BhpToken._isburning (#433) is not in mixedCase
Variable BhpToken._ispair (#434) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#289) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#290)
Prevent variables from having similar names.
Additional information: link
BhpToken.constructor() (#438-451) uses literals with too many digits:
- _mint(_owner,2100000 * 1e8) (#445)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
BhpToken.router_address (#429) should be constant
BhpToken.usdt (#427) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
setispair(bool) should be declared external:
- BhpToken.setispair(bool) (#453-457)
sethua(address) should be declared external:
- BhpToken.sethua(address) (#458-462)
setchi(address) should be declared external:
- BhpToken.setchi(address) (#463-467)
checkminter(address) should be declared external:
- BhpToken.checkminter(address) (#470-473)
addMinter(address) should be declared external:
- BhpToken.addMinter(address) (#474-477)
name() should be declared external:
- BhpToken.name() (#480-482)
symbol() should be declared external:
- BhpToken.symbol() (#484-486)
decimals() should be declared external:
- BhpToken.decimals() (#488-490)
totalSupply() should be declared external:
- BhpToken.totalSupply() (#492-494)
balanceOf(address) should be declared external:
- BhpToken.balanceOf(address) (#505-507)
setAllowtransfer(bool) should be declared external:
- BhpToken.setAllowtransfer(bool) (#509-513)
takeOutErrorTransfer(address) should be declared external:
- BhpToken.takeOutErrorTransfer(address) (#516-520)
allowance(address,address) should be declared external:
- BhpToken.allowance(address,address) (#530-535)
approve(address,uint256) should be declared external:
- BhpToken.approve(address,uint256) (#537-540)
transferFrom(address,address,uint256) should be declared external:
- BhpToken.transferFrom(address,address,uint256) (#542-549)
transfer(address,uint256) should be declared external:
- BhpToken.transfer(address,uint256) (#551-554)
increaseAllowance(address,uint256) should be declared external:
- BhpToken.increaseAllowance(address,uint256) (#556-559)
decreaseAllowance(address,uint256) should be declared external:
- BhpToken.decreaseAllowance(address,uint256) (#561-564)
burnFrom(address,uint256) should be declared external:
- BhpToken.burnFrom(address,uint256) (#566-574)
burn(uint256) should be declared external:
- BhpToken.burn(uint256) (#576-580)
Use the external attribute for functions never called from the contract.
Additional information: link
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.
Unable to find website, listings and other project-related information
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Unable to find Telegram and Twitter accounts