Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
FirstHare.addLiquidity(uint256,uint256) (#757-770) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#762-769)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in FirstHare._transfer(address,address,uint256) (#666-704):
External calls:
- swapAndLiquify(contractTokenBalance) (#688)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#762-769)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#746-752)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#688)
- recipient.transfer(amount) (#630)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#762-769)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#691)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#699)
- finalAmount = takeFee(sender,recipient,amount) (#693-694)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#784)
Apply the check-effects-interactions pattern.
Additional information: link
Combination 1: Reentrancy vulnerabilities + Functions that send Ether to arbitraty destination. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
FirstHare.addLiquidity(uint256,uint256) (#757-770) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#762-769)
Ensure that all the return values of the function calls are used.
Additional information: link
FirstHare.allowance(address,address).owner (#521) shadows:
- Ownable.owner() (#156-158) (function)
FirstHare._approve(address,address,uint256).owner (#544) shadows:
- Ownable.owner() (#156-158) (function)
Rename the local variables that shadow another component.
Additional information: link
FirstHare.setBuyTaxes(uint256,uint256,uint256) (#564-570) should emit an event for:
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyTeamFee) (#569)
FirstHare.setSellTaxes(uint256,uint256,uint256) (#572-578) should emit an event for:
- _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellTeamFee) (#577)
FirstHare.setDistributionSettings(uint256,uint256,uint256) (#580-586) should emit an event for:
- _liquidityShare = newLiquidityShare (#581)
- _teamShare = newTeamShare (#583)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_teamShare) (#585)
FirstHare.setMaxTxAmount(uint256) (#588-590) should emit an event for:
- _maxTxAmount = maxTxAmount (#589)
FirstHare.setWalletLimit(uint256) (#600-602) should emit an event for:
- _walletMax = newLimit (#601)
FirstHare.setNumTokensBeforeSwap(uint256) (#604-606) should emit an event for:
- minimumTokensBeforeSwap = newLimit (#605)
Emit an event for critical parameter changes.
Additional information: link
FirstHare.setMarketingWalletAddress(address).newAddress (#608) lacks a zero-check on :
- marketingWalletAddress = address(newAddress) (#609)
FirstHare.setTeamWalletAddress(address).newAddress (#612) lacks a zero-check on :
- teamWalletAddress = address(newAddress) (#613)
Check that the address is not zero.
Additional information: link
Reentrancy in FirstHare.changeRouterVersion(address) (#633-650):
External calls:
- newPairAddress = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#641-642)
State variables written after the call(s):
- isMarketPair[address(uniswapPair)] = true (#649)
- isWalletLimitExempt[address(uniswapPair)] = true (#648)
- uniswapPair = newPairAddress (#645)
- uniswapV2Router = _uniswapV2Router (#646)
Reentrancy in FirstHare.constructor() (#471-499):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#475-476)
State variables written after the call(s):
- _allowances[address(this)][address(uniswapV2Router)] = _totalSupply (#479)
- _balances[_msgSender()] = _totalSupply (#497)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_teamShare) (#486)
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyTeamFee) (#484)
- _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellTeamFee) (#485)
- isExcludedFromFee[owner()] = true (#481)
- isExcludedFromFee[address(this)] = true (#482)
- isMarketPair[address(uniswapPair)] = true (#495)
- isTxLimitExempt[owner()] = true (#492)
- isTxLimitExempt[address(this)] = true (#493)
- isWalletLimitExempt[owner()] = true (#488)
- isWalletLimitExempt[address(uniswapPair)] = true (#489)
- isWalletLimitExempt[address(this)] = true (#490)
- uniswapV2Router = _uniswapV2Router (#478)
Reentrancy in FirstHare.swapAndLiquify(uint256) (#713-735):
External calls:
- swapTokensForEth(tokensForSwap) (#718)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#746-752)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#734)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#762-769)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#728)
- recipient.transfer(amount) (#630)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#731)
- recipient.transfer(amount) (#630)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#734)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#762-769)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#734)
- _allowances[owner][spender] = amount (#548)
Reentrancy in FirstHare.transferFrom(address,address,uint256) (#660-664):
External calls:
- _transfer(sender,recipient,amount) (#661)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#762-769)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#746-752)
External calls sending eth:
- _transfer(sender,recipient,amount) (#661)
- recipient.transfer(amount) (#630)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#762-769)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#662)
- _allowances[owner][spender] = amount (#548)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in FirstHare._transfer(address,address,uint256) (#666-704):
External calls:
- swapAndLiquify(contractTokenBalance) (#688)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#762-769)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#746-752)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#688)
- recipient.transfer(amount) (#630)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#762-769)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#785)
- finalAmount = takeFee(sender,recipient,amount) (#693-694)
- Transfer(sender,recipient,finalAmount) (#701)
Reentrancy in FirstHare.constructor() (#471-499):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#475-476)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_totalSupply) (#498)
Reentrancy in FirstHare.swapAndLiquify(uint256) (#713-735):
External calls:
- swapTokensForEth(tokensForSwap) (#718)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#746-752)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#734)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#762-769)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#728)
- recipient.transfer(amount) (#630)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#731)
- recipient.transfer(amount) (#630)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#734)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#762-769)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#549)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#734)
Reentrancy in FirstHare.swapTokensForEth(uint256) (#737-755):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#746-752)
Event emitted after the call(s):
- SwapTokensForETH(tokenAmount,path) (#754)
Reentrancy in FirstHare.transferFrom(address,address,uint256) (#660-664):
External calls:
- _transfer(sender,recipient,amount) (#661)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#762-769)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#746-752)
External calls sending eth:
- _transfer(sender,recipient,amount) (#661)
- recipient.transfer(amount) (#630)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#762-769)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#549)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#662)
Apply the check-effects-interactions pattern.
Additional information: link
Ownable.unlock() (#191-196) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp > _lockTime,Contract is locked until 7 days) (#193)
Avoid relying on block.timestamp.
Additional information: link
Address.isContract(address) (#87-96) uses assembly
- INLINE ASM (#94)
Address._functionCallWithValue(address,bytes,uint256,string) (#123-140) uses assembly
- INLINE ASM (#132-135)
Do not use evm assembly.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#123-140) is never used and should be removed
Address.functionCall(address,bytes) (#106-108) is never used and should be removed
Address.functionCall(address,bytes,string) (#110-112) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#114-116) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#118-121) is never used and should be removed
Address.isContract(address) (#87-96) is never used and should be removed
Address.sendValue(address,uint256) (#98-104) is never used and should be removed
Context._msgData() (#14-17) is never used and should be removed
SafeMath.mod(uint256,uint256) (#75-77) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#79-82) is never used and should be removed
Remove unused functions.
Additional information: link
FirstHare._totalSupply (#435) is set pre-construction with a non-constant function or state variable:
- 1 * 10 ** 6 * 10 ** 6 * 10 ** _decimals
FirstHare._maxTxAmount (#436) is set pre-construction with a non-constant function or state variable:
- 1 * 10 ** 6 * 10 ** 6 * 10 ** _decimals
FirstHare._walletMax (#437) is set pre-construction with a non-constant function or state variable:
- 1 * 10 ** 6 * 10 ** 6 * 10 ** _decimals
FirstHare.minimumTokensBeforeSwap (#438) is set pre-construction with a non-constant function or state variable:
- 1 * 10 ** 6 * 10 ** _decimals
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) (#98-104):
- (success) = recipient.call{value: amount}() (#102)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#123-140):
- (success,returndata) = target.call{value: weiValue}(data) (#126)
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() (#230) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#231) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#247) is not in mixedCase
Function IUniswapV2Router01.WETH() (#266) is not in mixedCase
Parameter FirstHare.setSwapAndLiquifyEnabled(bool)._enabled (#616) is not in mixedCase
Variable FirstHare._balances (#412) is not in mixedCase
Variable FirstHare._buyLiquidityFee (#420) is not in mixedCase
Variable FirstHare._buyMarketingFee (#421) is not in mixedCase
Variable FirstHare._buyTeamFee (#422) is not in mixedCase
Variable FirstHare._sellLiquidityFee (#424) is not in mixedCase
Variable FirstHare._sellMarketingFee (#425) is not in mixedCase
Variable FirstHare._sellTeamFee (#426) is not in mixedCase
Variable FirstHare._liquidityShare (#427) is not in mixedCase
Variable FirstHare._marketingShare (#428) is not in mixedCase
Variable FirstHare._teamShare (#429) is not in mixedCase
Variable FirstHare._totalTaxIfBuying (#431) is not in mixedCase
Variable FirstHare._totalTaxIfSelling (#432) is not in mixedCase
Variable FirstHare._totalDistributionShares (#433) is not in mixedCase
Variable FirstHare._maxTxAmount (#436) is not in mixedCase
Variable FirstHare._walletMax (#437) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#15)" inContext (#8-18)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in FirstHare._transfer(address,address,uint256) (#666-704):
External calls:
- swapAndLiquify(contractTokenBalance) (#688)
- recipient.transfer(amount) (#630)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#688)
- recipient.transfer(amount) (#630)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#762-769)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#691)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#699)
- finalAmount = takeFee(sender,recipient,amount) (#693-694)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#784)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#785)
- finalAmount = takeFee(sender,recipient,amount) (#693-694)
- Transfer(sender,recipient,finalAmount) (#701)
Reentrancy in FirstHare.swapAndLiquify(uint256) (#713-735):
External calls:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#728)
- recipient.transfer(amount) (#630)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#731)
- recipient.transfer(amount) (#630)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#728)
- recipient.transfer(amount) (#630)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#731)
- recipient.transfer(amount) (#630)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#734)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#762-769)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#734)
- _allowances[owner][spender] = amount (#548)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#549)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#734)
Reentrancy in FirstHare.transferFrom(address,address,uint256) (#660-664):
External calls:
- _transfer(sender,recipient,amount) (#661)
- recipient.transfer(amount) (#630)
External calls sending eth:
- _transfer(sender,recipient,amount) (#661)
- recipient.transfer(amount) (#630)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#762-769)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#662)
- _allowances[owner][spender] = amount (#548)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#549)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#662)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#271) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#272)
Prevent variables from having similar names.
Additional information: link
FirstHare.slitherConstructorVariables() (#399-792) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#410)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
FirstHare._decimals (#406) should be constant
FirstHare._name (#404) should be constant
FirstHare._symbol (#405) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
waiveOwnership() should be declared external:
- Ownable.waiveOwnership() (#165-168)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#170-174)
getUnlockTime() should be declared external:
- Ownable.getUnlockTime() (#176-178)
getTime() should be declared external:
- Ownable.getTime() (#180-182)
lock(uint256) should be declared external:
- Ownable.lock(uint256) (#184-189)
unlock() should be declared external:
- Ownable.unlock() (#191-196)
name() should be declared external:
- FirstHare.name() (#501-503)
symbol() should be declared external:
- FirstHare.symbol() (#505-507)
decimals() should be declared external:
- FirstHare.decimals() (#509-511)
totalSupply() should be declared external:
- FirstHare.totalSupply() (#513-515)
allowance(address,address) should be declared external:
- FirstHare.allowance(address,address) (#521-523)
increaseAllowance(address,uint256) should be declared external:
- FirstHare.increaseAllowance(address,uint256) (#525-528)
decreaseAllowance(address,uint256) should be declared external:
- FirstHare.decreaseAllowance(address,uint256) (#530-533)
minimumTokensBeforeSwapAmount() should be declared external:
- FirstHare.minimumTokensBeforeSwapAmount() (#535-537)
approve(address,uint256) should be declared external:
- FirstHare.approve(address,uint256) (#539-542)
setMarketPairStatus(address,bool) should be declared external:
- FirstHare.setMarketPairStatus(address,bool) (#552-554)
setIsExcludedFromFee(address,bool) should be declared external:
- FirstHare.setIsExcludedFromFee(address,bool) (#560-562)
setSwapAndLiquifyEnabled(bool) should be declared external:
- FirstHare.setSwapAndLiquifyEnabled(bool) (#616-619)
setSwapAndLiquifyByLimitOnly(bool) should be declared external:
- FirstHare.setSwapAndLiquifyByLimitOnly(bool) (#621-623)
getCirculatingSupply() should be declared external:
- FirstHare.getCirculatingSupply() (#625-627)
changeRouterVersion(address) should be declared external:
- FirstHare.changeRouterVersion(address) (#633-650)
transfer(address,uint256) should be declared external:
- FirstHare.transfer(address,uint256) (#655-658)
transferFrom(address,address,uint256) should be declared external:
- FirstHare.transferFrom(address,address,uint256) (#660-664)
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