In Lemon Haze Trivia, users can earn rewards by completing rounds, answering questions correctly, and perfecting their scores. Their main objective is to create an environment where users can enjoy learning new facts, testing their skills and earning money on the way.
Reentrancy in LemonHaze._transfer(address,address,uint256) (contracts/LemonHaze.sol#689-736):
External calls:
- BP.protect(from,to,amount) (contracts/LemonHaze.sol#706)
- swapTokens(contractTokenBalance) (contracts/LemonHaze.sol#715)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/LemonHaze.sol#765-774)
- buyBackTokens(balance.div(100)) (contracts/LemonHaze.sol#724)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp) (contracts/LemonHaze.sol#787-795)
External calls sending eth:
- swapTokens(contractTokenBalance) (contracts/LemonHaze.sol#715)
- recipient.transfer(amount) (contracts/LemonHaze.sol#1054)
- buyBackTokens(balance.div(100)) (contracts/LemonHaze.sol#724)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp) (contracts/LemonHaze.sol#787-795)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (contracts/LemonHaze.sol#735)
- _liquidityFee = _previousLiquidityFee (contracts/LemonHaze.sol#947)
- _liquidityFee = 0 (contracts/LemonHaze.sol#942)
- _tokenTransfer(from,to,amount,takeFee) (contracts/LemonHaze.sol#735)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (contracts/LemonHaze.sol#916)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (contracts/LemonHaze.sol#832)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (contracts/LemonHaze.sol#841)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (contracts/LemonHaze.sol#852)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (contracts/LemonHaze.sol#862)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (contracts/LemonHaze.sol#833)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (contracts/LemonHaze.sol#843)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (contracts/LemonHaze.sol#853)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (contracts/LemonHaze.sol#864)
- _tokenTransfer(from,to,amount,takeFee) (contracts/LemonHaze.sol#735)
- _rTotal = _rTotal.sub(rFee) (contracts/LemonHaze.sol#871)
- _tokenTransfer(from,to,amount,takeFee) (contracts/LemonHaze.sol#735)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (contracts/LemonHaze.sol#918)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (contracts/LemonHaze.sol#851)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (contracts/LemonHaze.sol#861)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (contracts/LemonHaze.sol#842)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (contracts/LemonHaze.sol#863)
- buyBackTokens(balance.div(100)) (contracts/LemonHaze.sol#724)
- inSwapAndLiquify = true (contracts/LemonHaze.sol#518)
- inSwapAndLiquify = false (contracts/LemonHaze.sol#520)
Apply the check-effects-interactions pattern.
Additional information: link
Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains
Contract ownership is not renounced (belongs to a wallet)
LemonHaze.slitherConstructorVariables() (contracts/LemonHaze.sol#415-1062) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (contracts/LemonHaze.sol#421)
LemonHaze.slitherConstructorVariables() (contracts/LemonHaze.sol#415-1062) uses literals with too many digits:
- _tTotal = 1000000000 * 10 ** 18 (contracts/LemonHaze.sol#436)
LemonHaze.slitherConstructorVariables() (contracts/LemonHaze.sol#415-1062) uses literals with too many digits:
- _maxTxAmount = 1000000 * 10 ** 18 (contracts/LemonHaze.sol#482)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
Ownable._previousOwner (contracts/LemonHaze.sol#162) is never used in LemonHaze (contracts/LemonHaze.sol#415-1062)
Remove unused state variables.
Additional information: link
LemonHaze.MAX_INT (contracts/LemonHaze.sol#495) should be constant
LemonHaze.MAX_LIQUIDITY_FEE (contracts/LemonHaze.sol#472) should be constant
LemonHaze.MAX_TAX_FEE (contracts/LemonHaze.sol#473) should be constant
LemonHaze._decimals (contracts/LemonHaze.sol#442) should be constant
LemonHaze._name (contracts/LemonHaze.sol#440) should be constant
LemonHaze._symbol (contracts/LemonHaze.sol#441) should be constant
LemonHaze._tTotal (contracts/LemonHaze.sol#436) should be constant
Ownable._previousOwner (contracts/LemonHaze.sol#162) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
LemonHaze.addLiquidity(uint256,uint256) (contracts/LemonHaze.sol#799-810) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (contracts/LemonHaze.sol#802-809)
Ensure that all the return values of the function calls are used.
Additional information: link
LemonHaze.allowance(address,address).owner (contracts/LemonHaze.sol#574) shadows:
- Ownable.owner() (contracts/LemonHaze.sol#172-174) (function)
LemonHaze._approve(address,address,uint256).owner (contracts/LemonHaze.sol#681) shadows:
- Ownable.owner() (contracts/LemonHaze.sol#172-174) (function)
Rename the local variables that shadow another component.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (contracts/LemonHaze.sol#279) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (contracts/LemonHaze.sol#280)
Variable LemonHaze._transferStandard(address,address,uint256).rTransferAmount (contracts/LemonHaze.sol#831) is too similar to LemonHaze._transferStandard(address,address,uint256).tTransferAmount (contracts/LemonHaze.sol#831)
Variable LemonHaze._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (contracts/LemonHaze.sol#892) is too similar to LemonHaze._getTValues(uint256).tTransferAmount (contracts/LemonHaze.sol#884)
Variable LemonHaze._getValues(uint256).rTransferAmount (contracts/LemonHaze.sol#877) is too similar to LemonHaze._getTValues(uint256).tTransferAmount (contracts/LemonHaze.sol#884)
Variable LemonHaze._transferStandard(address,address,uint256).rTransferAmount (contracts/LemonHaze.sol#831) is too similar to LemonHaze._transferBothExcluded(address,address,uint256).tTransferAmount (contracts/LemonHaze.sol#860)
Variable LemonHaze._transferToExcluded(address,address,uint256).rTransferAmount (contracts/LemonHaze.sol#840) is too similar to LemonHaze._transferStandard(address,address,uint256).tTransferAmount (contracts/LemonHaze.sol#831)
Variable LemonHaze.reflectionFromToken(uint256,bool).rTransferAmount (contracts/LemonHaze.sol#646) is too similar to LemonHaze._transferBothExcluded(address,address,uint256).tTransferAmount (contracts/LemonHaze.sol#860)
Variable LemonHaze._transferBothExcluded(address,address,uint256).rTransferAmount (contracts/LemonHaze.sol#860) is too similar to LemonHaze._transferBothExcluded(address,address,uint256).tTransferAmount (contracts/LemonHaze.sol#860)
Variable LemonHaze._transferToExcluded(address,address,uint256).rTransferAmount (contracts/LemonHaze.sol#840) is too similar to LemonHaze._transferBothExcluded(address,address,uint256).tTransferAmount (contracts/LemonHaze.sol#860)
Variable LemonHaze._transferFromExcluded(address,address,uint256).rTransferAmount (contracts/LemonHaze.sol#850) is too similar to LemonHaze._transferBothExcluded(address,address,uint256).tTransferAmount (contracts/LemonHaze.sol#860)
Variable LemonHaze._transferToExcluded(address,address,uint256).rTransferAmount (contracts/LemonHaze.sol#840) is too similar to LemonHaze._transferFromExcluded(address,address,uint256).tTransferAmount (contracts/LemonHaze.sol#850)
Variable LemonHaze._getValues(uint256).rTransferAmount (contracts/LemonHaze.sol#877) is too similar to LemonHaze._transferBothExcluded(address,address,uint256).tTransferAmount (contracts/LemonHaze.sol#860)
Variable LemonHaze._transferToExcluded(address,address,uint256).rTransferAmount (contracts/LemonHaze.sol#840) is too similar to LemonHaze._transferToExcluded(address,address,uint256).tTransferAmount (contracts/LemonHaze.sol#840)
Variable LemonHaze._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (contracts/LemonHaze.sol#892) is too similar to LemonHaze._transferBothExcluded(address,address,uint256).tTransferAmount (contracts/LemonHaze.sol#860)
Variable LemonHaze._transferStandard(address,address,uint256).rTransferAmount (contracts/LemonHaze.sol#831) is too similar to LemonHaze._getTValues(uint256).tTransferAmount (contracts/LemonHaze.sol#884)
Variable LemonHaze.reflectionFromToken(uint256,bool).rTransferAmount (contracts/LemonHaze.sol#646) is too similar to LemonHaze._getTValues(uint256).tTransferAmount (contracts/LemonHaze.sol#884)
Variable LemonHaze._transferToExcluded(address,address,uint256).rTransferAmount (contracts/LemonHaze.sol#840) is too similar to LemonHaze._getTValues(uint256).tTransferAmount (contracts/LemonHaze.sol#884)
Variable LemonHaze._transferToExcluded(address,address,uint256).rTransferAmount (contracts/LemonHaze.sol#840) is too similar to LemonHaze._getValues(uint256).tTransferAmount (contracts/LemonHaze.sol#876)
Variable LemonHaze.reflectionFromToken(uint256,bool).rTransferAmount (contracts/LemonHaze.sol#646) is too similar to LemonHaze._transferFromExcluded(address,address,uint256).tTransferAmount (contracts/LemonHaze.sol#850)
Variable LemonHaze._transferFromExcluded(address,address,uint256).rTransferAmount (contracts/LemonHaze.sol#850) is too similar to LemonHaze._getValues(uint256).tTransferAmount (contracts/LemonHaze.sol#876)
Variable LemonHaze._transferFromExcluded(address,address,uint256).rTransferAmount (contracts/LemonHaze.sol#850) is too similar to LemonHaze._getTValues(uint256).tTransferAmount (contracts/LemonHaze.sol#884)
Variable LemonHaze.reflectionFromToken(uint256,bool).rTransferAmount (contracts/LemonHaze.sol#646) is too similar to LemonHaze._getValues(uint256).tTransferAmount (contracts/LemonHaze.sol#876)
Variable LemonHaze._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (contracts/LemonHaze.sol#892) is too similar to LemonHaze._transferStandard(address,address,uint256).tTransferAmount (contracts/LemonHaze.sol#831)
Variable LemonHaze._transferStandard(address,address,uint256).rTransferAmount (contracts/LemonHaze.sol#831) is too similar to LemonHaze._transferToExcluded(address,address,uint256).tTransferAmount (contracts/LemonHaze.sol#840)
Variable LemonHaze._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (contracts/LemonHaze.sol#892) is too similar to LemonHaze._transferToExcluded(address,address,uint256).tTransferAmount (contracts/LemonHaze.sol#840)
Variable LemonHaze._transferBothExcluded(address,address,uint256).rTransferAmount (contracts/LemonHaze.sol#860) is too similar to LemonHaze._transferToExcluded(address,address,uint256).tTransferAmount (contracts/LemonHaze.sol#840)
Variable LemonHaze._transferBothExcluded(address,address,uint256).rTransferAmount (contracts/LemonHaze.sol#860) is too similar to LemonHaze._transferStandard(address,address,uint256).tTransferAmount (contracts/LemonHaze.sol#831)
Variable LemonHaze._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (contracts/LemonHaze.sol#892) is too similar to LemonHaze._transferFromExcluded(address,address,uint256).tTransferAmount (contracts/LemonHaze.sol#850)
Variable LemonHaze._transferStandard(address,address,uint256).rTransferAmount (contracts/LemonHaze.sol#831) is too similar to LemonHaze._transferFromExcluded(address,address,uint256).tTransferAmount (contracts/LemonHaze.sol#850)
Variable LemonHaze._transferBothExcluded(address,address,uint256).rTransferAmount (contracts/LemonHaze.sol#860) is too similar to LemonHaze._transferFromExcluded(address,address,uint256).tTransferAmount (contracts/LemonHaze.sol#850)
Variable LemonHaze._getValues(uint256).rTransferAmount (contracts/LemonHaze.sol#877) is too similar to LemonHaze._transferToExcluded(address,address,uint256).tTransferAmount (contracts/LemonHaze.sol#840)
Variable LemonHaze._getValues(uint256).rTransferAmount (contracts/LemonHaze.sol#877) is too similar to LemonHaze._transferStandard(address,address,uint256).tTransferAmount (contracts/LemonHaze.sol#831)
Variable LemonHaze._transferFromExcluded(address,address,uint256).rTransferAmount (contracts/LemonHaze.sol#850) is too similar to LemonHaze._transferToExcluded(address,address,uint256).tTransferAmount (contracts/LemonHaze.sol#840)
Variable LemonHaze._transferFromExcluded(address,address,uint256).rTransferAmount (contracts/LemonHaze.sol#850) is too similar to LemonHaze._transferStandard(address,address,uint256).tTransferAmount (contracts/LemonHaze.sol#831)
Variable LemonHaze._transferStandard(address,address,uint256).rTransferAmount (contracts/LemonHaze.sol#831) is too similar to LemonHaze._getValues(uint256).tTransferAmount (contracts/LemonHaze.sol#876)
Variable LemonHaze._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (contracts/LemonHaze.sol#892) is too similar to LemonHaze._getValues(uint256).tTransferAmount (contracts/LemonHaze.sol#876)
Variable LemonHaze._transferBothExcluded(address,address,uint256).rTransferAmount (contracts/LemonHaze.sol#860) is too similar to LemonHaze._getValues(uint256).tTransferAmount (contracts/LemonHaze.sol#876)
Variable LemonHaze._getValues(uint256).rTransferAmount (contracts/LemonHaze.sol#877) is too similar to LemonHaze._transferFromExcluded(address,address,uint256).tTransferAmount (contracts/LemonHaze.sol#850)
Variable LemonHaze.reflectionFromToken(uint256,bool).rTransferAmount (contracts/LemonHaze.sol#646) is too similar to LemonHaze._transferStandard(address,address,uint256).tTransferAmount (contracts/LemonHaze.sol#831)
Variable LemonHaze.reflectionFromToken(uint256,bool).rTransferAmount (contracts/LemonHaze.sol#646) is too similar to LemonHaze._transferToExcluded(address,address,uint256).tTransferAmount (contracts/LemonHaze.sol#840)
Variable LemonHaze._transferFromExcluded(address,address,uint256).rTransferAmount (contracts/LemonHaze.sol#850) is too similar to LemonHaze._transferFromExcluded(address,address,uint256).tTransferAmount (contracts/LemonHaze.sol#850)
Variable LemonHaze._transferBothExcluded(address,address,uint256).rTransferAmount (contracts/LemonHaze.sol#860) is too similar to LemonHaze._getTValues(uint256).tTransferAmount (contracts/LemonHaze.sol#884)
Variable LemonHaze._getValues(uint256).rTransferAmount (contracts/LemonHaze.sol#877) is too similar to LemonHaze._getValues(uint256).tTransferAmount (contracts/LemonHaze.sol#876)
Prevent variables from having similar names.
Additional information: link
LemonHaze.constructor(address) (contracts/LemonHaze.sol#523-545) performs a multiplication on the result of a division:
-ownerBalance = _rTotal.div(10).mul(7) (contracts/LemonHaze.sol#525)
LemonHaze.swapTokens(uint256) (contracts/LemonHaze.sol#738-748) performs a multiplication on the result of a division:
-transferToAddressETH(rewardAddress,transferredBalance.div(_liquidityFee).mul(rewardDivisor)) (contracts/LemonHaze.sol#745)
LemonHaze.swapTokens(uint256) (contracts/LemonHaze.sol#738-748) performs a multiplication on the result of a division:
-transferToAddressETH(developmentAddress,transferredBalance.div(_liquidityFee).mul(developmentDivisor)) (contracts/LemonHaze.sol#746)
Consider ordering multiplication before division.
Additional information: link
LemonHaze.setRewardAddress(address)._rewardAddress (contracts/LemonHaze.sol#1014) lacks a zero-check on :
- rewardAddress = address(_rewardAddress) (contracts/LemonHaze.sol#1015)
LemonHaze.setDevelopmentAddress(address)._developmentAddress (contracts/LemonHaze.sol#1020) lacks a zero-check on :
- developmentAddress = address(_developmentAddress) (contracts/LemonHaze.sol#1021)
LemonHaze.SetEnabledAddLiquidityAddress(address).newEnabledAddLiquidityAddress (contracts/LemonHaze.sol#1031) lacks a zero-check on :
- _enabledAddLiquidityAddress = newEnabledAddLiquidityAddress (contracts/LemonHaze.sol#1032)
Check that the address is not zero.
Additional information: link
Reentrancy in LemonHaze._transfer(address,address,uint256) (contracts/LemonHaze.sol#689-736):
External calls:
- BP.protect(from,to,amount) (contracts/LemonHaze.sol#706)
- swapTokens(contractTokenBalance) (contracts/LemonHaze.sol#715)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/LemonHaze.sol#765-774)
- buyBackTokens(balance.div(100)) (contracts/LemonHaze.sol#724)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp) (contracts/LemonHaze.sol#787-795)
External calls sending eth:
- swapTokens(contractTokenBalance) (contracts/LemonHaze.sol#715)
- recipient.transfer(amount) (contracts/LemonHaze.sol#1054)
- buyBackTokens(balance.div(100)) (contracts/LemonHaze.sol#724)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp) (contracts/LemonHaze.sol#787-795)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (contracts/LemonHaze.sol#735)
- _previousLiquidityFee = _liquidityFee (contracts/LemonHaze.sol#939)
- _tokenTransfer(from,to,amount,takeFee) (contracts/LemonHaze.sol#735)
- _previousTaxFee = _taxFee (contracts/LemonHaze.sol#938)
- _tokenTransfer(from,to,amount,takeFee) (contracts/LemonHaze.sol#735)
- _tFeeTotal = _tFeeTotal.add(tFee) (contracts/LemonHaze.sol#872)
- _tokenTransfer(from,to,amount,takeFee) (contracts/LemonHaze.sol#735)
- _taxFee = _previousTaxFee (contracts/LemonHaze.sol#946)
- _taxFee = 0 (contracts/LemonHaze.sol#941)
Reentrancy in LemonHaze.constructor(address) (contracts/LemonHaze.sol#523-545):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (contracts/LemonHaze.sol#533-534)
State variables written after the call(s):
- _approve(address(this),address(_uniswapV2Router),MAX_INT) (contracts/LemonHaze.sol#537)
- _allowances[owner][spender] = amount (contracts/LemonHaze.sol#685)
- _enabledAddLiquidityAddress = owner() (contracts/LemonHaze.sol#539)
- _isExcludedFromFee[owner()] = true (contracts/LemonHaze.sol#541)
- _isExcludedFromFee[address(this)] = true (contracts/LemonHaze.sol#542)
- uniswapV2Router = _uniswapV2Router (contracts/LemonHaze.sol#536)
Reentrancy in LemonHaze.transferFrom(address,address,uint256) (contracts/LemonHaze.sol#584-588):
External calls:
- _transfer(sender,recipient,amount) (contracts/LemonHaze.sol#585)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/LemonHaze.sol#765-774)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp) (contracts/LemonHaze.sol#787-795)
- BP.protect(from,to,amount) (contracts/LemonHaze.sol#706)
External calls sending eth:
- _transfer(sender,recipient,amount) (contracts/LemonHaze.sol#585)
- recipient.transfer(amount) (contracts/LemonHaze.sol#1054)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp) (contracts/LemonHaze.sol#787-795)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (contracts/LemonHaze.sol#586)
- _allowances[owner][spender] = amount (contracts/LemonHaze.sol#685)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in LemonHaze._transfer(address,address,uint256) (contracts/LemonHaze.sol#689-736):
External calls:
- BP.protect(from,to,amount) (contracts/LemonHaze.sol#706)
- swapTokens(contractTokenBalance) (contracts/LemonHaze.sol#715)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/LemonHaze.sol#765-774)
External calls sending eth:
- swapTokens(contractTokenBalance) (contracts/LemonHaze.sol#715)
- recipient.transfer(amount) (contracts/LemonHaze.sol#1054)
Event emitted after the call(s):
- SwapTokensForETH(tokenAmount,path) (contracts/LemonHaze.sol#772)
- swapTokens(contractTokenBalance) (contracts/LemonHaze.sol#715)
Reentrancy in LemonHaze._transfer(address,address,uint256) (contracts/LemonHaze.sol#689-736):
External calls:
- BP.protect(from,to,amount) (contracts/LemonHaze.sol#706)
- swapTokens(contractTokenBalance) (contracts/LemonHaze.sol#715)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/LemonHaze.sol#765-774)
- buyBackTokens(balance.div(100)) (contracts/LemonHaze.sol#724)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp) (contracts/LemonHaze.sol#787-795)
External calls sending eth:
- swapTokens(contractTokenBalance) (contracts/LemonHaze.sol#715)
- recipient.transfer(amount) (contracts/LemonHaze.sol#1054)
- buyBackTokens(balance.div(100)) (contracts/LemonHaze.sol#724)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp) (contracts/LemonHaze.sol#787-795)
Event emitted after the call(s):
- SwapETHForTokens(amount,path) (contracts/LemonHaze.sol#793)
- buyBackTokens(balance.div(100)) (contracts/LemonHaze.sol#724)
- Transfer(msg.sender,address(this),tLiquidity) (contracts/LemonHaze.sol#919)
- _tokenTransfer(from,to,amount,takeFee) (contracts/LemonHaze.sol#735)
- Transfer(sender,recipient,tTransferAmount) (contracts/LemonHaze.sol#836)
- _tokenTransfer(from,to,amount,takeFee) (contracts/LemonHaze.sol#735)
- Transfer(sender,recipient,tTransferAmount) (contracts/LemonHaze.sol#856)
- _tokenTransfer(from,to,amount,takeFee) (contracts/LemonHaze.sol#735)
- Transfer(sender,recipient,tTransferAmount) (contracts/LemonHaze.sol#846)
- _tokenTransfer(from,to,amount,takeFee) (contracts/LemonHaze.sol#735)
- Transfer(sender,recipient,tTransferAmount) (contracts/LemonHaze.sol#867)
- _tokenTransfer(from,to,amount,takeFee) (contracts/LemonHaze.sol#735)
Reentrancy in LemonHaze.constructor(address) (contracts/LemonHaze.sol#523-545):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (contracts/LemonHaze.sol#533-534)
Event emitted after the call(s):
- Approval(owner,spender,amount) (contracts/LemonHaze.sol#686)
- _approve(address(this),address(_uniswapV2Router),MAX_INT) (contracts/LemonHaze.sol#537)
- Transfer(address(0),_msgSender(),_tTotal) (contracts/LemonHaze.sol#544)
Reentrancy in LemonHaze.swapETHForTokens(uint256) (contracts/LemonHaze.sol#780-797):
External calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp) (contracts/LemonHaze.sol#787-795)
Event emitted after the call(s):
- SwapETHForTokens(amount,path) (contracts/LemonHaze.sol#793)
Reentrancy in LemonHaze.swapTokensForEth(uint256) (contracts/LemonHaze.sol#757-778):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/LemonHaze.sol#765-774)
Event emitted after the call(s):
- SwapTokensForETH(tokenAmount,path) (contracts/LemonHaze.sol#772)
Reentrancy in LemonHaze.transferFrom(address,address,uint256) (contracts/LemonHaze.sol#584-588):
External calls:
- _transfer(sender,recipient,amount) (contracts/LemonHaze.sol#585)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (contracts/LemonHaze.sol#765-774)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp) (contracts/LemonHaze.sol#787-795)
- BP.protect(from,to,amount) (contracts/LemonHaze.sol#706)
External calls sending eth:
- _transfer(sender,recipient,amount) (contracts/LemonHaze.sol#585)
- recipient.transfer(amount) (contracts/LemonHaze.sol#1054)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp) (contracts/LemonHaze.sol#787-795)
Event emitted after the call(s):
- Approval(owner,spender,amount) (contracts/LemonHaze.sol#686)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (contracts/LemonHaze.sol#586)
Apply the check-effects-interactions pattern.
Additional information: link
Address.isContract(address) (contracts/LemonHaze.sol#103-112) uses assembly
- INLINE ASM (contracts/LemonHaze.sol#110)
Address._functionCallWithValue(address,bytes,uint256,string) (contracts/LemonHaze.sol#140-157) uses assembly
- INLINE ASM (contracts/LemonHaze.sol#149-152)
Do not use evm assembly.
Additional information: link
LemonHaze.setBotProtectionDisableForever() (contracts/LemonHaze.sol#625-628) compares to a boolean constant:
-require(bool)(BPDisabledForever == false) (contracts/LemonHaze.sol#626)
Remove the equality to the boolean constant.
Additional information: link
LemonHaze.includeInReward(address) (contracts/LemonHaze.sol#668-679) has costly operations inside a loop:
- _excluded.pop() (contracts/LemonHaze.sol#675)
Use a local variable to hold the loop computation result.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (contracts/LemonHaze.sol#140-157) is never used and should be removed
Address.functionCall(address,bytes) (contracts/LemonHaze.sol#123-125) is never used and should be removed
Address.functionCall(address,bytes,string) (contracts/LemonHaze.sol#127-129) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (contracts/LemonHaze.sol#131-133) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (contracts/LemonHaze.sol#135-138) is never used and should be removed
Address.isContract(address) (contracts/LemonHaze.sol#103-112) is never used and should be removed
Address.sendValue(address,uint256) (contracts/LemonHaze.sol#114-120) is never used and should be removed
Context._msgData() (contracts/LemonHaze.sol#26-29) is never used and should be removed
LemonHaze.addLiquidity(uint256,uint256) (contracts/LemonHaze.sol#799-810) is never used and should be removed
SafeMath.mod(uint256,uint256) (contracts/LemonHaze.sol#91-93) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (contracts/LemonHaze.sol#95-98) is never used and should be removed
Remove unused functions.
Additional information: link
LemonHaze._rTotal (contracts/LemonHaze.sol#437) is set pre-construction with a non-constant function or state variable:
- (MAX - (MAX % _tTotal))
LemonHaze._previousTaxFee (contracts/LemonHaze.sol#446) is set pre-construction with a non-constant function or state variable:
- _taxFee
LemonHaze._previousLiquidityFee (contracts/LemonHaze.sol#449) 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) (contracts/LemonHaze.sol#114-120):
- (success) = recipient.call{value: amount}() (contracts/LemonHaze.sol#118)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (contracts/LemonHaze.sol#140-157):
- (success,returndata) = target.call{value: weiValue}(data) (contracts/LemonHaze.sol#143)
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() (contracts/LemonHaze.sol#236) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (contracts/LemonHaze.sol#237) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (contracts/LemonHaze.sol#253) is not in mixedCase
Function IUniswapV2Router01.WETH() (contracts/LemonHaze.sol#274) is not in mixedCase
Event LemonHazeonTaxFeeUpdated(uint256) (contracts/LemonHaze.sol#454) is not in CapWords
Event LemonHazeonLiquidityFeeUpdated(uint256) (contracts/LemonHaze.sol#455) is not in CapWords
Event LemonHazeonMaxTxAmountUpdated(uint256) (contracts/LemonHaze.sol#457) is not in CapWords
Event LemonHazeonRewardDivisorUpdated(uint256) (contracts/LemonHaze.sol#459) is not in CapWords
Event LemonHazeonDevelopmentDivisorUpdated(uint256) (contracts/LemonHaze.sol#460) is not in CapWords
Event LemonHazeonNumTokensSellToAddToLiquidityUpdated(uint256) (contracts/LemonHaze.sol#461) is not in CapWords
Event LemonHazeonBuybackUpperLimitUpdated(uint256) (contracts/LemonHaze.sol#462) is not in CapWords
Event LemonHazeonRewardAddressUpdated(address) (contracts/LemonHaze.sol#464) is not in CapWords
Event LemonHazeonDevelopmentAddressUpdated(address) (contracts/LemonHaze.sol#465) is not in CapWords
Parameter LemonHaze.setBPAddrss(address)._bp (contracts/LemonHaze.sol#616) is not in mixedCase
Parameter LemonHaze.setBpEnabled(bool)._enabled (contracts/LemonHaze.sol#621) is not in mixedCase
Parameter LemonHaze.calculateTaxFee(uint256)._amount (contracts/LemonHaze.sol#923) is not in mixedCase
Parameter LemonHaze.calculateLiquidityFee(uint256)._amount (contracts/LemonHaze.sol#929) is not in mixedCase
Function LemonHaze.Sweep() (contracts/LemonHaze.sol#962-965) is not in mixedCase
Parameter LemonHaze.setNumTokensSellToAddToLiquidity(uint256)._minimumTokensBeforeSwap (contracts/LemonHaze.sol#1002) is not in mixedCase
Parameter LemonHaze.setRewardAddress(address)._rewardAddress (contracts/LemonHaze.sol#1014) is not in mixedCase
Parameter LemonHaze.setDevelopmentAddress(address)._developmentAddress (contracts/LemonHaze.sol#1020) is not in mixedCase
Parameter LemonHaze.setSwapAndLiquifyEnabled(bool)._enabled (contracts/LemonHaze.sol#1026) is not in mixedCase
Function LemonHaze.SetEnabledAddLiquidityAddress(address) (contracts/LemonHaze.sol#1031-1033) is not in mixedCase
Parameter LemonHaze.setBuyBackEnabled(bool)._enabled (contracts/LemonHaze.sol#1035) is not in mixedCase
Variable LemonHaze.BP (contracts/LemonHaze.sol#426) is not in mixedCase
Variable LemonHaze.BPDisabledForever (contracts/LemonHaze.sol#428) is not in mixedCase
Variable LemonHaze._taxFee (contracts/LemonHaze.sol#445) is not in mixedCase
Variable LemonHaze._liquidityFee (contracts/LemonHaze.sol#448) is not in mixedCase
Variable LemonHaze.MAX_LIQUIDITY_FEE (contracts/LemonHaze.sol#472) is not in mixedCase
Variable LemonHaze.MAX_TAX_FEE (contracts/LemonHaze.sol#473) is not in mixedCase
Variable LemonHaze._maxTxAmount (contracts/LemonHaze.sol#482) is not in mixedCase
Variable LemonHaze._enabledAddLiquidityAddress (contracts/LemonHaze.sol#486) is not in mixedCase
Variable LemonHaze.MAX_INT (contracts/LemonHaze.sol#495) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (contracts/LemonHaze.sol#27)" inContext (contracts/LemonHaze.sol#21-30)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in LemonHaze._transfer(address,address,uint256) (contracts/LemonHaze.sol#689-736):
External calls:
- swapTokens(contractTokenBalance) (contracts/LemonHaze.sol#715)
- recipient.transfer(amount) (contracts/LemonHaze.sol#1054)
External calls sending eth:
- swapTokens(contractTokenBalance) (contracts/LemonHaze.sol#715)
- recipient.transfer(amount) (contracts/LemonHaze.sol#1054)
- buyBackTokens(balance.div(100)) (contracts/LemonHaze.sol#724)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp) (contracts/LemonHaze.sol#787-795)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (contracts/LemonHaze.sol#735)
- _liquidityFee = _previousLiquidityFee (contracts/LemonHaze.sol#947)
- _liquidityFee = 0 (contracts/LemonHaze.sol#942)
- _tokenTransfer(from,to,amount,takeFee) (contracts/LemonHaze.sol#735)
- _previousLiquidityFee = _liquidityFee (contracts/LemonHaze.sol#939)
- _tokenTransfer(from,to,amount,takeFee) (contracts/LemonHaze.sol#735)
- _previousTaxFee = _taxFee (contracts/LemonHaze.sol#938)
- _tokenTransfer(from,to,amount,takeFee) (contracts/LemonHaze.sol#735)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (contracts/LemonHaze.sol#916)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (contracts/LemonHaze.sol#832)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (contracts/LemonHaze.sol#841)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (contracts/LemonHaze.sol#852)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (contracts/LemonHaze.sol#862)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (contracts/LemonHaze.sol#833)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (contracts/LemonHaze.sol#843)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (contracts/LemonHaze.sol#853)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (contracts/LemonHaze.sol#864)
- _tokenTransfer(from,to,amount,takeFee) (contracts/LemonHaze.sol#735)
- _rTotal = _rTotal.sub(rFee) (contracts/LemonHaze.sol#871)
- _tokenTransfer(from,to,amount,takeFee) (contracts/LemonHaze.sol#735)
- _tFeeTotal = _tFeeTotal.add(tFee) (contracts/LemonHaze.sol#872)
- _tokenTransfer(from,to,amount,takeFee) (contracts/LemonHaze.sol#735)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (contracts/LemonHaze.sol#918)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (contracts/LemonHaze.sol#851)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (contracts/LemonHaze.sol#861)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (contracts/LemonHaze.sol#842)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (contracts/LemonHaze.sol#863)
- _tokenTransfer(from,to,amount,takeFee) (contracts/LemonHaze.sol#735)
- _taxFee = _previousTaxFee (contracts/LemonHaze.sol#946)
- _taxFee = 0 (contracts/LemonHaze.sol#941)
- buyBackTokens(balance.div(100)) (contracts/LemonHaze.sol#724)
- inSwapAndLiquify = true (contracts/LemonHaze.sol#518)
- inSwapAndLiquify = false (contracts/LemonHaze.sol#520)
Event emitted after the call(s):
- SwapETHForTokens(amount,path) (contracts/LemonHaze.sol#793)
- buyBackTokens(balance.div(100)) (contracts/LemonHaze.sol#724)
- Transfer(msg.sender,address(this),tLiquidity) (contracts/LemonHaze.sol#919)
- _tokenTransfer(from,to,amount,takeFee) (contracts/LemonHaze.sol#735)
- Transfer(sender,recipient,tTransferAmount) (contracts/LemonHaze.sol#836)
- _tokenTransfer(from,to,amount,takeFee) (contracts/LemonHaze.sol#735)
- Transfer(sender,recipient,tTransferAmount) (contracts/LemonHaze.sol#856)
- _tokenTransfer(from,to,amount,takeFee) (contracts/LemonHaze.sol#735)
- Transfer(sender,recipient,tTransferAmount) (contracts/LemonHaze.sol#846)
- _tokenTransfer(from,to,amount,takeFee) (contracts/LemonHaze.sol#735)
- Transfer(sender,recipient,tTransferAmount) (contracts/LemonHaze.sol#867)
- _tokenTransfer(from,to,amount,takeFee) (contracts/LemonHaze.sol#735)
Reentrancy in LemonHaze.transferFrom(address,address,uint256) (contracts/LemonHaze.sol#584-588):
External calls:
- _transfer(sender,recipient,amount) (contracts/LemonHaze.sol#585)
- recipient.transfer(amount) (contracts/LemonHaze.sol#1054)
External calls sending eth:
- _transfer(sender,recipient,amount) (contracts/LemonHaze.sol#585)
- recipient.transfer(amount) (contracts/LemonHaze.sol#1054)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,deadAddress,block.timestamp) (contracts/LemonHaze.sol#787-795)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (contracts/LemonHaze.sol#586)
- _allowances[owner][spender] = amount (contracts/LemonHaze.sol#685)
Event emitted after the call(s):
- Approval(owner,spender,amount) (contracts/LemonHaze.sol#686)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (contracts/LemonHaze.sol#586)
Apply the check-effects-interactions pattern.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (contracts/LemonHaze.sol#181-184)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (contracts/LemonHaze.sol#186-190)
getTime() should be declared external:
- Ownable.getTime() (contracts/LemonHaze.sol#193-195)
name() should be declared external:
- LemonHaze.name() (contracts/LemonHaze.sol#548-550)
symbol() should be declared external:
- LemonHaze.symbol() (contracts/LemonHaze.sol#552-554)
decimals() should be declared external:
- LemonHaze.decimals() (contracts/LemonHaze.sol#556-558)
totalSupply() should be declared external:
- LemonHaze.totalSupply() (contracts/LemonHaze.sol#560-562)
transfer(address,uint256) should be declared external:
- LemonHaze.transfer(address,uint256) (contracts/LemonHaze.sol#569-572)
allowance(address,address) should be declared external:
- LemonHaze.allowance(address,address) (contracts/LemonHaze.sol#574-576)
approve(address,uint256) should be declared external:
- LemonHaze.approve(address,uint256) (contracts/LemonHaze.sol#578-581)
transferFrom(address,address,uint256) should be declared external:
- LemonHaze.transferFrom(address,address,uint256) (contracts/LemonHaze.sol#584-588)
increaseAllowance(address,uint256) should be declared external:
- LemonHaze.increaseAllowance(address,uint256) (contracts/LemonHaze.sol#590-593)
decreaseAllowance(address,uint256) should be declared external:
- LemonHaze.decreaseAllowance(address,uint256) (contracts/LemonHaze.sol#595-598)
isExcludedFromReward(address) should be declared external:
- LemonHaze.isExcludedFromReward(address) (contracts/LemonHaze.sol#600-602)
totalFees() should be declared external:
- LemonHaze.totalFees() (contracts/LemonHaze.sol#604-606)
minimumTokensBeforeSwapAmount() should be declared external:
- LemonHaze.minimumTokensBeforeSwapAmount() (contracts/LemonHaze.sol#608-610)
buyBackUpperLimitAmount() should be declared external:
- LemonHaze.buyBackUpperLimitAmount() (contracts/LemonHaze.sol#612-614)
deliver(uint256) should be declared external:
- LemonHaze.deliver(uint256) (contracts/LemonHaze.sol#630-637)
reflectionFromToken(uint256,bool) should be declared external:
- LemonHaze.reflectionFromToken(uint256,bool) (contracts/LemonHaze.sol#640-649)
excludeFromReward(address) should be declared external:
- LemonHaze.excludeFromReward(address) (contracts/LemonHaze.sol#657-666)
isExcludedFromFee(address) should be declared external:
- LemonHaze.isExcludedFromFee(address) (contracts/LemonHaze.sol#950-952)
excludeFromFee(address) should be declared external:
- LemonHaze.excludeFromFee(address) (contracts/LemonHaze.sol#954-956)
includeInFee(address) should be declared external:
- LemonHaze.includeInFee(address) (contracts/LemonHaze.sol#958-960)
setBuyBackEnabled(bool) should be declared external:
- LemonHaze.setBuyBackEnabled(bool) (contracts/LemonHaze.sol#1035-1038)
Use the external attribute for functions never called from the contract.
Additional information: link
Contract ticker ($Lmonz) 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.
Unable to find KYC or doxxing proof
Unable to find whitepaper link on the website
Unable to find token on CoinGecko
Additional information: link
Unable to find token on CoinMarketCap
Additional information: link
Token is not listed at Mobula.Finance
Additional information: link
Unable to find token on CoinHunt
Additional information: link
Unable to find code repository for the project
Young tokens have high risks of price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Last post in Twitter was more than 30 days ago
Unable to find Youtube account