A community-driven, dog-themed protocol with actual use cases and utility.
Hank Inu is a BEP-20 token with deflationary, autonomous yield, and liquidity generation features..
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Reentrancy in HankInu._transfer(address,address,uint256) (#1033-1061):
External calls:
- swapAndLiquify(contractTokenBalance) (#1056)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1109-1116)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1095-1101)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#1056)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1109-1116)
State variables written after the call(s):
- _tokenTransfer(from,to,amount) (#1060)
- _rOwned[sender] = _rOwned[sender].sub(vs.rAmount) (#1153)
- _rOwned[sender] = _rOwned[sender].sub(vs.rAmount) (#1147)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#977)
- _rOwned[sender] = _rOwned[sender].sub(vs.rAmount) (#1168)
- _rOwned[sender] = _rOwned[sender].sub(vs.rAmount) (#1161)
- _rOwned[recipient] = _rOwned[recipient].add(vs.rTransferAmount) (#1148)
- _rOwned[recipient] = _rOwned[recipient].add(vs.rTransferAmount) (#1162)
- _rOwned[recipient] = _rOwned[recipient].add(vs.rTransferAmount) (#1155)
- _rOwned[recipient] = _rOwned[recipient].add(vs.rTransferAmount) (#1170)
- _rOwned[charityWallet] = _rOwned[charityWallet].add(rCharity) (#915)
- _tokenTransfer(from,to,amount) (#1060)
- _rTotal = _rTotal.sub(rFee).sub(rBurn) (#910)
- _tokenTransfer(from,to,amount) (#1060)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#1160)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#1167)
- _tOwned[recipient] = _tOwned[recipient].add(vs.tTransferAmount) (#1154)
- _tOwned[recipient] = _tOwned[recipient].add(vs.tTransferAmount) (#1169)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#979)
- _tOwned[charityWallet] = _tOwned[charityWallet].add(tCharity) (#917)
- _tokenTransfer(from,to,amount) (#1060)
- _tTotal = _tTotal.sub(tBurn) (#912)
Apply the check-effects-interactions pattern.
Additional information: link
Contract ownership is not renounced (belongs to a wallet)
HankInu.includeInReward(address) (#893-904) has costly operations inside a loop:
- _excluded.pop() (#900)
Use a local variable to hold the loop computation result.
Additional information: link
HankInu.setMaxTxPercent(uint256) (#1211-1216) should emit an event for:
- _maxTxAmount = _tTotal.mul(maxTxPercent).div(10 ** 2) (#1213-1215)
Emit an event for critical parameter changes.
Additional information: link
HankInu.setHankCharityWallet(address).newWallet (#1207) lacks a zero-check on :
- charityWallet = newWallet (#1208)
Check that the address is not zero.
Additional information: link
HankInu.allowance(address,address).owner (#819) shadows:
- Ownable.owner() (#414-416) (function)
HankInu._approve(address,address,uint256).owner (#1025) shadows:
- Ownable.owner() (#414-416) (function)
Rename the local variables that shadow another component.
Additional information: link
Reentrancy in HankInu._transfer(address,address,uint256) (#1033-1061):
External calls:
- swapAndLiquify(contractTokenBalance) (#1056)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1109-1116)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1095-1101)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#1056)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1109-1116)
State variables written after the call(s):
- _tokenTransfer(from,to,amount) (#1060)
- _burnFee = 0 (#1009)
- _burnFee = 1 (#1017)
- _tokenTransfer(from,to,amount) (#1060)
- _charityFee = 2 (#1016)
- _charityFee = 0 (#1010)
- _tokenTransfer(from,to,amount) (#1060)
- _liquidityFee = 3 (#1015)
- _liquidityFee = 0 (#1008)
- _tokenTransfer(from,to,amount) (#1060)
- _tBurnTotal = _tBurnTotal.add(tBurn) (#913)
- _tokenTransfer(from,to,amount) (#1060)
- _tFeeTotal = _tFeeTotal.add(tFee) (#911)
- _tokenTransfer(from,to,amount) (#1060)
- _taxFee = 0 (#1007)
- _taxFee = 4 (#1014)
Reentrancy in HankInu.constructor() (#775-791):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#780-781)
State variables written after the call(s):
- _isExcludedFromFee[owner()] = true (#787)
- _isExcludedFromFee[address(this)] = true (#788)
- uniswapV2Router = _uniswapV2Router (#784)
Reentrancy in HankInu.swapAndLiquify(uint256) (#1063-1084):
External calls:
- swapTokensForEth(half) (#1075)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1095-1101)
- addLiquidity(otherHalf,newBalance) (#1081)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1109-1116)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1081)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1109-1116)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#1081)
- _allowances[owner][spender] = amount (#1029)
Reentrancy in HankInu.transferFrom(address,address,uint256) (#828-832):
External calls:
- _transfer(sender,recipient,amount) (#829)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1109-1116)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1095-1101)
External calls sending eth:
- _transfer(sender,recipient,amount) (#829)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1109-1116)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#830)
- _allowances[owner][spender] = amount (#1029)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in HankInu._transfer(address,address,uint256) (#1033-1061):
External calls:
- swapAndLiquify(contractTokenBalance) (#1056)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1109-1116)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1095-1101)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#1056)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1109-1116)
Event emitted after the call(s):
- Transfer(sender,recipient,vs.tTransferAmount) (#1149)
- _tokenTransfer(from,to,amount) (#1060)
- Transfer(sender,recipient,vs.tTransferAmount) (#1163)
- _tokenTransfer(from,to,amount) (#1060)
- Transfer(sender,recipient,vs.tTransferAmount) (#1156)
- _tokenTransfer(from,to,amount) (#1060)
- Transfer(sender,recipient,vs.tTransferAmount) (#1171)
- _tokenTransfer(from,to,amount) (#1060)
Reentrancy in HankInu.constructor() (#775-791):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#780-781)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_tTotal) (#790)
Reentrancy in HankInu.swapAndLiquify(uint256) (#1063-1084):
External calls:
- swapTokensForEth(half) (#1075)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1095-1101)
- addLiquidity(otherHalf,newBalance) (#1081)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1109-1116)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1081)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1109-1116)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#1030)
- addLiquidity(otherHalf,newBalance) (#1081)
- SwapAndLiquify(half,newBalance,otherHalf) (#1083)
Reentrancy in HankInu.transferFrom(address,address,uint256) (#828-832):
External calls:
- _transfer(sender,recipient,amount) (#829)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1109-1116)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1095-1101)
External calls sending eth:
- _transfer(sender,recipient,amount) (#829)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1109-1116)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#1030)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#830)
Apply the check-effects-interactions pattern.
Additional information: link
Ownable.unlock() (#461-466) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(now > _lockTime,Contract is locked until 7 days) (#463)
Avoid relying on block.timestamp.
Additional information: link
Address.isContract(address) (#266-275) uses assembly
- INLINE ASM (#273)
Address._functionCallWithValue(address,bytes,uint256,string) (#359-380) uses assembly
- INLINE ASM (#372-375)
Do not use evm assembly.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#359-380) is never used and should be removed
Address.functionCall(address,bytes) (#319-321) is never used and should be removed
Address.functionCall(address,bytes,string) (#329-331) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#344-346) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#354-357) is never used and should be removed
Address.isContract(address) (#266-275) is never used and should be removed
Address.sendValue(address,uint256) (#293-299) is never used and should be removed
Context._msgData() (#238-241) is never used and should be removed
SafeMath.mod(uint256,uint256) (#211-213) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#227-230) is never used and should be removed
Remove unused functions.
Additional information: link
HankInu._rTotal (#730) is set pre-construction with a non-constant function or state variable:
- (MAX - (MAX % _tTotal))
HankInu._previousTaxFee (#739) is set pre-construction with a non-constant function or state variable:
- _taxFee
HankInu._previousBurnFee (#742) is set pre-construction with a non-constant function or state variable:
- _burnFee
HankInu._previousCharityFee (#745) is set pre-construction with a non-constant function or state variable:
- _charityFee
HankInu._previousLiquidityFee (#748) 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
Low level call in Address.sendValue(address,uint256) (#293-299):
- (success) = recipient.call{value: amount}() (#297)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#359-380):
- (success,returndata) = target.call{value: weiValue}(data) (#363)
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() (#505) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#506) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#523) is not in mixedCase
Function IUniswapV2Router01.WETH() (#545) is not in mixedCase
Parameter HankInu.calculateTaxFee(uint256)._amount (#982) is not in mixedCase
Parameter HankInu.calculateBurnFee(uint256)._amount (#988) is not in mixedCase
Parameter HankInu.calculateCharityFee(uint256)._amount (#994) is not in mixedCase
Parameter HankInu.calculateLiquidityFee(uint256)._amount (#1000) is not in mixedCase
Parameter HankInu.setSwapAndLiquifyEnabled(bool)._enabled (#1218) is not in mixedCase
Variable HankInu._taxFee (#738) is not in mixedCase
Variable HankInu._burnFee (#741) is not in mixedCase
Variable HankInu._charityFee (#744) is not in mixedCase
Variable HankInu._liquidityFee (#747) is not in mixedCase
Variable HankInu._maxTxAmount (#758) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#239)" inContext (#233-242)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#550) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#551)
Variable HankInu._getRValues(uint256,uint256,uint256,uint256,uint256,uint256).rTransferAmount (#955) is too similar to HankInu._getTValues(uint256).tTransferAmount (#945)
Variable HankInu.reflectionFromToken(uint256,bool).rTransferAmount (#871) is too similar to HankInu._getTValues(uint256).tTransferAmount (#945)
Prevent variables from having similar names.
Additional information: link
HankInu.slitherConstructorVariables() (#683-1224) uses literals with too many digits:
- _tTotal = 1000000000 * 10 ** 6 * 10 ** 9 (#729)
HankInu.slitherConstructorVariables() (#683-1224) uses literals with too many digits:
- _maxTxAmount = 5000000 * 10 ** 6 * 10 ** 9 (#758)
HankInu.slitherConstructorVariables() (#683-1224) uses literals with too many digits:
- numTokensSellToAddToLiquidity = 500000 * 10 ** 6 * 10 ** 9 (#759)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
HankInu._decimals (#736) should be constant
HankInu._name (#734) should be constant
HankInu._symbol (#735) should be constant
HankInu.numTokensSellToAddToLiquidity (#759) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
HankInu.addLiquidity(uint256,uint256) (#1104-1117) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1109-1116)
Ensure that all the return values of the function calls are used.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#433-436)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#442-446)
geUnlockTime() should be declared external:
- Ownable.geUnlockTime() (#448-450)
lock(uint256) should be declared external:
- Ownable.lock(uint256) (#453-458)
unlock() should be declared external:
- Ownable.unlock() (#461-466)
name() should be declared external:
- HankInu.name() (#793-795)
symbol() should be declared external:
- HankInu.symbol() (#797-799)
decimals() should be declared external:
- HankInu.decimals() (#801-803)
totalSupply() should be declared external:
- HankInu.totalSupply() (#805-807)
transfer(address,uint256) should be declared external:
- HankInu.transfer(address,uint256) (#814-817)
allowance(address,address) should be declared external:
- HankInu.allowance(address,address) (#819-821)
approve(address,uint256) should be declared external:
- HankInu.approve(address,uint256) (#823-826)
transferFrom(address,address,uint256) should be declared external:
- HankInu.transferFrom(address,address,uint256) (#828-832)
increaseAllowance(address,uint256) should be declared external:
- HankInu.increaseAllowance(address,uint256) (#834-837)
decreaseAllowance(address,uint256) should be declared external:
- HankInu.decreaseAllowance(address,uint256) (#839-842)
isExcludedFromReward(address) should be declared external:
- HankInu.isExcludedFromReward(address) (#844-846)
totalFees() should be declared external:
- HankInu.totalFees() (#848-850)
totalBurn() should be declared external:
- HankInu.totalBurn() (#852-854)
deliver(uint256) should be declared external:
- HankInu.deliver(uint256) (#856-863)
reflectionFromToken(uint256,bool) should be declared external:
- HankInu.reflectionFromToken(uint256,bool) (#865-874)
excludeFromReward(address) should be declared external:
- HankInu.excludeFromReward(address) (#882-891)
isExcludedFromFee(address) should be declared external:
- HankInu.isExcludedFromFee(address) (#1021-1023)
excludeFromFee(address) should be declared external:
- HankInu.excludeFromFee(address) (#1174-1176)
includeInFee(address) should be declared external:
- HankInu.includeInFee(address) (#1178-1180)
Use the external attribute for functions never called from the contract.
Additional information: link
Average 30d PancakeSwap volume is less than $100. Token is either dead or inactive.
Number of Binance Smart Chain (BSC) token holders is low.
Average PancakeSwap trading volume, liqudity, number of swaps are low. Token seems to be inactive.
Contract has 10% buy tax and 9% sell tax.
Taxes are low but contract ownership is not renounced. Token has a high risk of becoming a honeypot.
Token is deployed only at one blockchain
Average 30d PancakeSwap liquidity is low.
Average 30d number of PancakeSwap swaps is low.
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Twitter account seems to be suspended
Additional information: link
Unable to find Discord account