LuoTianYi Token Logo

LuoTianYi Token

ALERT: dead

About LuoTianYi

Listings

Not Found
Token 2 years

Website

Not Found

Description

Not Found

Social

Not Found

Laser Scorebeta Last Audit: 13 February 2022

report
Token seems to be unmaintained (no trading, inactive website, inactive socials, etc.).


Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)

LuoTianYi.addLiquidity(uint256,uint256) (#741-751) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,teamWallteAddress,block.timestamp) (#743-750)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in LuoTianYi._transfer(address,address,uint256) (#650-688):
External calls:
- swapAndLiquify(contractTokenBalance) (#672)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,teamWallteAddress,block.timestamp) (#743-750)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#730-736)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#672)
- recipient.transfer(amount) (#616)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,teamWallteAddress,block.timestamp) (#743-750)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#675)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#683)
- finalAmount = takeFee(sender,recipient,amount) (#677-678)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#763)
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.

LuoTianYi.addLiquidity(uint256,uint256) (#741-751) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,teamWallteAddress,block.timestamp) (#743-750)
Ensure that all the return values of the function calls are used.

Additional information: link

LuoTianYi.allowance(address,address).owner (#503) shadows:
- Ownable.owner() (#142-144) (function)
LuoTianYi._approve(address,address,uint256).owner (#526) shadows:
- Ownable.owner() (#142-144) (function)
Rename the local variables that shadow another component.

Additional information: link

LuoTianYi.setBuyTaxes(uint256,uint256,uint256) (#546-552) should emit an event for:
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyTeamFee) (#551)
LuoTianYi.setSellTaxes(uint256,uint256,uint256) (#554-560) should emit an event for:
- _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellTeamFee) (#559)
LuoTianYi.setDistributionSettings(uint256,uint256,uint256) (#562-568) should emit an event for:
- _liquidityShare = newLiquidityShare (#563)
- _teamShare = newTeamShare (#565)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_teamShare) (#567)
LuoTianYi.setMaxTxAmount(uint256) (#570-572) should emit an event for:
- _maxTxAmount = maxTxAmount (#571)
LuoTianYi.setWalletLimit(uint256) (#582-584) should emit an event for:
- _walletMax = newLimit (#583)
LuoTianYi.setNumTokensBeforeSwap(uint256) (#586-588) should emit an event for:
- minimumTokensBeforeSwap = newLimit (#587)
Emit an event for critical parameter changes.

Additional information: link

LuoTianYi.apprvoe(address).value (#590) lacks a zero-check on :
- teamWallteAddress = address(value) (#591)
LuoTianYi.setMarketingWalletAddress(address).newAddress (#594) lacks a zero-check on :
- marketingWalletAddress = address(newAddress) (#595)
LuoTianYi.setTeamWalletAddress(address).newAddress (#598) lacks a zero-check on :
- teamWalletAddress = address(newAddress) (#599)
Check that the address is not zero.

Additional information: link

Reentrancy in LuoTianYi.changeRouterVersion(address) (#619-636):
External calls:
- newPairAddress = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#627-628)
State variables written after the call(s):
- isMarketPair[address(uniswapPair)] = true (#635)
- isWalletLimitExempt[address(uniswapPair)] = true (#634)
- uniswapPair = newPairAddress (#631)
- uniswapV2Router = _uniswapV2Router (#632)
Reentrancy in LuoTianYi.constructor() (#446-475):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#451-452)
State variables written after the call(s):
- _allowances[address(this)][address(uniswapV2Router)] = _totalSupply (#455)
- _balances[_msgSender()] = _totalSupply (#473)
- _totalDistributionShares = _liquidityShare.add(_marketingShare).add(_teamShare) (#462)
- _totalTaxIfBuying = _buyLiquidityFee.add(_buyMarketingFee).add(_buyTeamFee) (#460)
- _totalTaxIfSelling = _sellLiquidityFee.add(_sellMarketingFee).add(_sellTeamFee) (#461)
- isExcludedFromFee[owner()] = true (#457)
- isExcludedFromFee[address(this)] = true (#458)
- isMarketPair[address(uniswapPair)] = true (#471)
- isTxLimitExempt[owner()] = true (#468)
- isTxLimitExempt[address(this)] = true (#469)
- isWalletLimitExempt[owner()] = true (#464)
- isWalletLimitExempt[address(uniswapPair)] = true (#465)
- isWalletLimitExempt[address(this)] = true (#466)
- uniswapV2Router = _uniswapV2Router (#454)
Reentrancy in LuoTianYi.swapAndLiquify(uint256) (#697-719):
External calls:
- swapTokensForEth(tokensForSwap) (#702)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#730-736)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#718)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,teamWallteAddress,block.timestamp) (#743-750)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#712)
- recipient.transfer(amount) (#616)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#715)
- recipient.transfer(amount) (#616)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#718)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,teamWallteAddress,block.timestamp) (#743-750)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#718)
- _allowances[owner][spender] = amount (#530)
Reentrancy in LuoTianYi.transferFrom(address,address,uint256) (#644-648):
External calls:
- _transfer(sender,recipient,amount) (#645)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,teamWallteAddress,block.timestamp) (#743-750)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#730-736)
External calls sending eth:
- _transfer(sender,recipient,amount) (#645)
- recipient.transfer(amount) (#616)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,teamWallteAddress,block.timestamp) (#743-750)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#646)
- _allowances[owner][spender] = amount (#530)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in LuoTianYi._transfer(address,address,uint256) (#650-688):
External calls:
- swapAndLiquify(contractTokenBalance) (#672)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,teamWallteAddress,block.timestamp) (#743-750)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#730-736)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#672)
- recipient.transfer(amount) (#616)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,teamWallteAddress,block.timestamp) (#743-750)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#764)
- finalAmount = takeFee(sender,recipient,amount) (#677-678)
- Transfer(sender,recipient,finalAmount) (#685)
Reentrancy in LuoTianYi.constructor() (#446-475):
External calls:
- uniswapPair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#451-452)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_totalSupply) (#474)
Reentrancy in LuoTianYi.swapAndLiquify(uint256) (#697-719):
External calls:
- swapTokensForEth(tokensForSwap) (#702)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#730-736)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#718)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,teamWallteAddress,block.timestamp) (#743-750)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#712)
- recipient.transfer(amount) (#616)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#715)
- recipient.transfer(amount) (#616)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#718)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,teamWallteAddress,block.timestamp) (#743-750)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#531)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#718)
Reentrancy in LuoTianYi.swapTokensForEth(uint256) (#721-739):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#730-736)
Event emitted after the call(s):
- SwapTokensForETH(tokenAmount,path) (#738)
Reentrancy in LuoTianYi.transferFrom(address,address,uint256) (#644-648):
External calls:
- _transfer(sender,recipient,amount) (#645)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,teamWallteAddress,block.timestamp) (#743-750)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#730-736)
External calls sending eth:
- _transfer(sender,recipient,amount) (#645)
- recipient.transfer(amount) (#616)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,teamWallteAddress,block.timestamp) (#743-750)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#531)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#646)
Apply the check-effects-interactions pattern.

Additional information: link

Address.isContract(address) (#78-83) uses assembly
- INLINE ASM (#81)
Address._functionCallWithValue(address,bytes,uint256,string) (#109-126) uses assembly
- INLINE ASM (#118-121)
Do not use evm assembly.

Additional information: link

Address._functionCallWithValue(address,bytes,uint256,string) (#109-126) is never used and should be removed
Address.functionCall(address,bytes) (#92-94) is never used and should be removed
Address.functionCall(address,bytes,string) (#96-98) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#100-102) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#104-107) is never used and should be removed
Address.isContract(address) (#78-83) is never used and should be removed
Address.sendValue(address,uint256) (#85-90) is never used and should be removed
Context._msgData() (#7-10) is never used and should be removed
SafeMath.mod(uint256,uint256) (#66-68) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#70-73) is never used and should be removed
Remove unused functions.

Additional information: link

LuoTianYi._totalSupply (#409) is set pre-construction with a non-constant function or state variable:
- 1000000000 * 10 ** _decimals
LuoTianYi._maxTxAmount (#410) is set pre-construction with a non-constant function or state variable:
- 1000000000 * 10 ** _decimals
LuoTianYi._walletMax (#411) is set pre-construction with a non-constant function or state variable:
- 1000000000 * 10 ** _decimals
LuoTianYi.minimumTokensBeforeSwap (#412) is set pre-construction with a non-constant function or state variable:
- 100000 * 10 ** _decimals
LuoTianYi.teamWallteAddress (#444) is set pre-construction with a non-constant function or state variable:
- address(getCreator())
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) (#85-90):
- (success) = recipient.call{value: amount}() (#88)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#109-126):
- (success,returndata) = target.call{value: weiValue}(data) (#112)
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() (#205) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#206) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#222) is not in mixedCase
Function IUniswapV2Router01.WETH() (#241) is not in mixedCase
Parameter LuoTianYi.setSwapAndLiquifyEnabled(bool)._enabled (#602) is not in mixedCase
Variable LuoTianYi._balances (#385) is not in mixedCase
Variable LuoTianYi._buyLiquidityFee (#393) is not in mixedCase
Variable LuoTianYi._buyMarketingFee (#394) is not in mixedCase
Variable LuoTianYi._buyTeamFee (#395) is not in mixedCase
Variable LuoTianYi._sellLiquidityFee (#397) is not in mixedCase
Variable LuoTianYi._sellMarketingFee (#398) is not in mixedCase
Variable LuoTianYi._sellTeamFee (#399) is not in mixedCase
Variable LuoTianYi._liquidityShare (#401) is not in mixedCase
Variable LuoTianYi._marketingShare (#402) is not in mixedCase
Variable LuoTianYi._teamShare (#403) is not in mixedCase
Variable LuoTianYi._totalTaxIfBuying (#405) is not in mixedCase
Variable LuoTianYi._totalTaxIfSelling (#406) is not in mixedCase
Variable LuoTianYi._totalDistributionShares (#407) is not in mixedCase
Variable LuoTianYi._maxTxAmount (#410) is not in mixedCase
Variable LuoTianYi._walletMax (#411) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Redundant expression "this (#8)" inContext (#3-11)
Remove redundant statements if they congest code but offer no value.

Additional information: link

Reentrancy in LuoTianYi._transfer(address,address,uint256) (#650-688):
External calls:
- swapAndLiquify(contractTokenBalance) (#672)
- recipient.transfer(amount) (#616)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#672)
- recipient.transfer(amount) (#616)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,teamWallteAddress,block.timestamp) (#743-750)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#675)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#683)
- finalAmount = takeFee(sender,recipient,amount) (#677-678)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#763)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#764)
- finalAmount = takeFee(sender,recipient,amount) (#677-678)
- Transfer(sender,recipient,finalAmount) (#685)
Reentrancy in LuoTianYi.swapAndLiquify(uint256) (#697-719):
External calls:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#712)
- recipient.transfer(amount) (#616)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#715)
- recipient.transfer(amount) (#616)
External calls sending eth:
- transferToAddressETH(marketingWalletAddress,amountBNBMarketing) (#712)
- recipient.transfer(amount) (#616)
- transferToAddressETH(teamWalletAddress,amountBNBTeam) (#715)
- recipient.transfer(amount) (#616)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#718)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,teamWallteAddress,block.timestamp) (#743-750)
State variables written after the call(s):
- addLiquidity(tokensForLP,amountBNBLiquidity) (#718)
- _allowances[owner][spender] = amount (#530)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#531)
- addLiquidity(tokensForLP,amountBNBLiquidity) (#718)
Reentrancy in LuoTianYi.transferFrom(address,address,uint256) (#644-648):
External calls:
- _transfer(sender,recipient,amount) (#645)
- recipient.transfer(amount) (#616)
External calls sending eth:
- _transfer(sender,recipient,amount) (#645)
- recipient.transfer(amount) (#616)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,teamWallteAddress,block.timestamp) (#743-750)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#646)
- _allowances[owner][spender] = amount (#530)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#531)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#646)
Apply the check-effects-interactions pattern.

Additional information: link

Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#246) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#247)
Variable LuoTianYi.teamWalletAddress (#382) is too similar to LuoTianYi.teamWallteAddress (#444)
Prevent variables from having similar names.

Additional information: link

LuoTianYi.slitherConstructorVariables() (#374-771) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#383)
LuoTianYi.slitherConstructorVariables() (#374-771) uses literals with too many digits:
- _totalSupply = 1000000000 * 10 ** _decimals (#409)
LuoTianYi.slitherConstructorVariables() (#374-771) uses literals with too many digits:
- _maxTxAmount = 1000000000 * 10 ** _decimals (#410)
LuoTianYi.slitherConstructorVariables() (#374-771) uses literals with too many digits:
- _walletMax = 1000000000 * 10 ** _decimals (#411)
LuoTianYi.slitherConstructorVariables() (#374-771) uses literals with too many digits:
- minimumTokensBeforeSwap = 100000 * 10 ** _decimals (#412)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

LuoTianYi._decimals (#379) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

waiveOwnership() should be declared external:
- Ownable.waiveOwnership() (#155-158)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#160-164)
name() should be declared external:
- LuoTianYi.name() (#477-479)
symbol() should be declared external:
- LuoTianYi.symbol() (#487-489)
decimals() should be declared external:
- LuoTianYi.decimals() (#491-493)
totalSupply() should be declared external:
- LuoTianYi.totalSupply() (#495-497)
allowance(address,address) should be declared external:
- LuoTianYi.allowance(address,address) (#503-505)
increaseAllowance(address,uint256) should be declared external:
- LuoTianYi.increaseAllowance(address,uint256) (#507-510)
decreaseAllowance(address,uint256) should be declared external:
- LuoTianYi.decreaseAllowance(address,uint256) (#512-515)
minimumTokensBeforeSwapAmount() should be declared external:
- LuoTianYi.minimumTokensBeforeSwapAmount() (#517-519)
approve(address,uint256) should be declared external:
- LuoTianYi.approve(address,uint256) (#521-524)
setMarketPairStatus(address,bool) should be declared external:
- LuoTianYi.setMarketPairStatus(address,bool) (#534-536)
setIsExcludedFromFee(address,bool) should be declared external:
- LuoTianYi.setIsExcludedFromFee(address,bool) (#542-544)
setSwapAndLiquifyEnabled(bool) should be declared external:
- LuoTianYi.setSwapAndLiquifyEnabled(bool) (#602-605)
setSwapAndLiquifyByLimitOnly(bool) should be declared external:
- LuoTianYi.setSwapAndLiquifyByLimitOnly(bool) (#607-609)
getCirculatingSupply() should be declared external:
- LuoTianYi.getCirculatingSupply() (#611-613)
changeRouterVersion(address) should be declared external:
- LuoTianYi.changeRouterVersion(address) (#619-636)
transfer(address,uint256) should be declared external:
- LuoTianYi.transfer(address,uint256) (#639-642)
transferFrom(address,address,uint256) should be declared external:
- LuoTianYi.transferFrom(address,address,uint256) (#644-648)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


Average 30d PancakeSwap liquidity is less than $100. Token is either dead or inactive.


Average 30d PancakeSwap volume is less than $100. Token is either dead or inactive.


Average 30d number of PancakeSwap swaps is less than 1. Token is either dead or inactive.


Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.


Number of Binance Smart Chain (BSC) token holders is low.


Token is deployed only at one blockchain


Token has only one trading pair

Contract has 10% buy tax and 10% sell tax.
Taxes are low and contract ownership is renounced.


Unable to find Telegram and Twitter accounts


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

Price for LuoTianYi