Reentrancy in GreenHornetCoin._transfer(address,address,uint256) (#797-833):
External calls:
- swapAndSendToFee(sellTokens) (#819)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#867-873)
External calls sending eth:
- swapAndSendToFee(sellTokens) (#819)
- address(_marketingWallet).transfer(ethToSend) (#840)
State variables written after the call(s):
- _tOwned[from] -= amount (#823)
- transferAmount = _getValues(amount,from) (#828)
- _tOwned[address(this)] += marketingFee + liquidityFee (#779)
- _tOwned[to] += transferAmount (#831)
- swapping = false (#820)
Apply the check-effects-interactions pattern.
Additional information: link
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
GreenHornetCoin.allowance(address,address).owner (#738) shadows:
- Ownable.owner() (#417-419) (function)
GreenHornetCoin._approve(address,address,uint256).owner (#789) shadows:
- Ownable.owner() (#417-419) (function)
Rename the local variables that shadow another component.
Additional information: link
Reentrancy in GreenHornetCoin.constructor() (#695-711):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#700)
State variables written after the call(s):
- _isExcludedFromFee[owner()] = true (#706)
- _isExcludedFromFee[address(this)] = true (#707)
- _isExcludedFromFee[_marketingWallet] = true (#708)
- uniswapV2Pair = _uniswapV2Pair (#703)
- uniswapV2Router = _uniswapV2Router (#702)
Reentrancy in GreenHornetCoin.swapAndLiquify() (#843-855):
External calls:
- newBalance = swapTokensForEth(half) (#848)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#867-873)
- addLiquidity(otherHalf,newBalance) (#852)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#882-889)
- (success) = recipient.call{value: amount}() (#302)
- address(_marketingWallet).sendValue(ethAmount - ethFromLiquidity) (#892)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#852)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#882-889)
- (success) = recipient.call{value: amount}() (#302)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#852)
- _allowances[owner][spender] = amount (#793)
Reentrancy in GreenHornetCoin.transferFrom(address,address,uint256) (#747-751):
External calls:
- _transfer(sender,recipient,amount) (#748)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#867-873)
External calls sending eth:
- _transfer(sender,recipient,amount) (#748)
- address(_marketingWallet).transfer(ethToSend) (#840)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()] - amount) (#749)
- _allowances[owner][spender] = amount (#793)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in GreenHornetCoin._transfer(address,address,uint256) (#797-833):
External calls:
- swapAndSendToFee(sellTokens) (#819)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#867-873)
External calls sending eth:
- swapAndSendToFee(sellTokens) (#819)
- address(_marketingWallet).transfer(ethToSend) (#840)
Event emitted after the call(s):
- Transfer(from,address(this),marketingFee + liquidityFee) (#780)
- transferAmount = _getValues(amount,from) (#828)
- Transfer(from,to,transferAmount) (#832)
Reentrancy in GreenHornetCoin.constructor() (#695-711):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#700)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_tTotal) (#710)
Reentrancy in GreenHornetCoin.swapAndLiquify() (#843-855):
External calls:
- newBalance = swapTokensForEth(half) (#848)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#867-873)
- addLiquidity(otherHalf,newBalance) (#852)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#882-889)
- (success) = recipient.call{value: amount}() (#302)
- address(_marketingWallet).sendValue(ethAmount - ethFromLiquidity) (#892)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#852)
- (ethFromLiquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#882-889)
- (success) = recipient.call{value: amount}() (#302)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#794)
- addLiquidity(otherHalf,newBalance) (#852)
- SwapAndLiquify(half,newBalance,otherHalf) (#853)
Reentrancy in GreenHornetCoin.transferFrom(address,address,uint256) (#747-751):
External calls:
- _transfer(sender,recipient,amount) (#748)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#867-873)
External calls sending eth:
- _transfer(sender,recipient,amount) (#748)
- address(_marketingWallet).transfer(ethToSend) (#840)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#794)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()] - amount) (#749)
Apply the check-effects-interactions pattern.
Additional information: link
GreenHornetCoin._transfer(address,address,uint256) (#797-833) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(_lastBuy[to] + _buyCooldown < block.timestamp,Must wait til after coooldown to buy) (#811)
GreenHornetCoin.addLiquidity(uint256,uint256) (#877-893) uses timestamp for comparisons
Dangerous comparisons:
- ethAmount - ethFromLiquidity > 0 (#891)
Avoid relying on block.timestamp.
Additional information: link
Address.isContract(address) (#271-280) uses assembly
- INLINE ASM (#278)
Address._functionCallWithValue(address,bytes,uint256,string) (#364-385) uses assembly
- INLINE ASM (#377-380)
Do not use evm assembly.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#364-385) is never used and should be removed
Address.functionCall(address,bytes) (#324-326) is never used and should be removed
Address.functionCall(address,bytes,string) (#334-336) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#349-351) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#359-362) is never used and should be removed
Address.isContract(address) (#271-280) is never used and should be removed
Address.sendValue(address,uint256) (#298-304) is never used and should be removed
Context._msgData() (#243-246) is never used and should be removed
GreenHornetCoin.addLiquidity(uint256,uint256) (#877-893) is never used and should be removed
GreenHornetCoin.swapAndLiquify() (#843-855) is never used and should be removed
SafeMath.add(uint256,uint256) (#106-111) is never used and should be removed
SafeMath.div(uint256,uint256) (#180-182) is never used and should be removed
SafeMath.div(uint256,uint256,string) (#196-202) is never used and should be removed
SafeMath.mod(uint256,uint256) (#216-218) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#232-235) is never used and should be removed
SafeMath.mul(uint256,uint256) (#154-166) is never used and should be removed
SafeMath.sub(uint256,uint256) (#123-125) is never used and should be removed
SafeMath.sub(uint256,uint256,string) (#137-142) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version^0.8.13 (#5) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
solc-0.8.13 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) (#298-304):
- (success) = recipient.call{value: amount}() (#302)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#364-385):
- (success,returndata) = target.call{value: weiValue}(data) (#368)
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() (#488) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#489) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#506) is not in mixedCase
Function IUniswapV2Router01.WETH() (#528) is not in mixedCase
Variable GreenHornetCoin._maxTxAmount (#678) is not in mixedCase
Constant GreenHornetCoin._name (#680) is not in UPPER_CASE_WITH_UNDERSCORES
Constant GreenHornetCoin._symbol (#681) is not in UPPER_CASE_WITH_UNDERSCORES
Constant GreenHornetCoin._decimals (#682) is not in UPPER_CASE_WITH_UNDERSCORES
Variable GreenHornetCoin._buyCooldown (#688) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#244)" inContext (#238-247)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in GreenHornetCoin._transfer(address,address,uint256) (#797-833):
External calls:
- swapAndSendToFee(sellTokens) (#819)
- address(_marketingWallet).transfer(ethToSend) (#840)
State variables written after the call(s):
- _tOwned[from] -= amount (#823)
- transferAmount = _getValues(amount,from) (#828)
- _tOwned[address(this)] += marketingFee + liquidityFee (#779)
- _tOwned[to] += transferAmount (#831)
- swapping = false (#820)
Event emitted after the call(s):
- Transfer(from,address(this),marketingFee + liquidityFee) (#780)
- transferAmount = _getValues(amount,from) (#828)
- Transfer(from,to,transferAmount) (#832)
Reentrancy in GreenHornetCoin.transferFrom(address,address,uint256) (#747-751):
External calls:
- _transfer(sender,recipient,amount) (#748)
- address(_marketingWallet).transfer(ethToSend) (#840)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()] - amount) (#749)
- _allowances[owner][spender] = amount (#793)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#794)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()] - amount) (#749)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#533) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#534)
Prevent variables from having similar names.
Additional information: link
GreenHornetCoin.slitherConstructorVariables() (#665-895) uses literals with too many digits:
- _tTotal = 1000000000000 * 10 ** 9 (#677)
GreenHornetCoin.slitherConstructorVariables() (#665-895) uses literals with too many digits:
- _maxTxAmount = 1000000000000 * 10 ** 9 (#678)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
Contract ticker ($HORNET) 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.
GreenHornetCoin._buyCooldown (#688) should be constant
GreenHornetCoin._liquidityFee (#685) should be constant
GreenHornetCoin._marketingFee (#684) should be constant
GreenHornetCoin._marketingWallet (#686) should be constant
GreenHornetCoin._maxTxAmount (#678) should be constant
GreenHornetCoin._tTotal (#677) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#436-439)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#445-449)
name() should be declared external:
- GreenHornetCoin.name() (#713-715)
symbol() should be declared external:
- GreenHornetCoin.symbol() (#717-719)
decimals() should be declared external:
- GreenHornetCoin.decimals() (#721-723)
totalSupply() should be declared external:
- GreenHornetCoin.totalSupply() (#725-727)
transfer(address,uint256) should be declared external:
- GreenHornetCoin.transfer(address,uint256) (#733-736)
allowance(address,address) should be declared external:
- GreenHornetCoin.allowance(address,address) (#738-740)
approve(address,uint256) should be declared external:
- GreenHornetCoin.approve(address,uint256) (#742-745)
transferFrom(address,address,uint256) should be declared external:
- GreenHornetCoin.transferFrom(address,address,uint256) (#747-751)
increaseAllowance(address,uint256) should be declared external:
- GreenHornetCoin.increaseAllowance(address,uint256) (#753-756)
decreaseAllowance(address,uint256) should be declared external:
- GreenHornetCoin.decreaseAllowance(address,uint256) (#758-761)
excludeFromFee(address) should be declared external:
- GreenHornetCoin.excludeFromFee(address) (#763-765)
includeInFee(address) should be declared external:
- GreenHornetCoin.includeInFee(address) (#767-769)
isExcludedFromFee(address) should be declared external:
- GreenHornetCoin.isExcludedFromFee(address) (#785-787)
Use the external attribute for functions never called from the contract.
Additional information: link
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