LUNA 2.0 Token Logo

LUNA2.0 [LUNA 2.0] Token

ALERT: rug pull scam

About LUNA2.0

Listings

Not Found
Token 2 years

Website

Not Found

Description

Not Found

Social

Not Found

Laser Scorebeta Last Audit: 28 May 2022

report
Token seems to be a scam (type: rug pull scam).

LUNA.addLiquidity(uint256,uint256) (#491-504) sends eth to arbitrary user
Dangerous calls:
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#496-503)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in LUNA._transfer(address,address,uint256) (#413-430):
External calls:
- swapAndLiquify(swapTokensAtAmount) (#426)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#496-503)
- (success) = recipient.call{value: amount}() (#32)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#515-521)
- address(marketingWallet).sendValue(marketingAmt) (#486)
External calls sending eth:
- swapAndLiquify(swapTokensAtAmount) (#426)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#496-503)
- (success) = recipient.call{value: amount}() (#32)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,! (_isExcludedFromFee[from] || _isExcludedFromFee[to])) (#429)
- _rOwned[address(this)] += rMarketing (#339)
- _rOwned[address(this)] += rLiquidity (#329)
- _rOwned[deadAddress] += rBurn (#349)
- _rOwned[sender] = _rOwned[sender] - s.rAmount (#445)
- _rOwned[recipient] = _rOwned[recipient] + s.rTransferAmount (#446)
- _tokenTransfer(from,to,amount,! (_isExcludedFromFee[from] || _isExcludedFromFee[to])) (#429)
- _rTotal -= rRfi (#318)
- _tokenTransfer(from,to,amount,! (_isExcludedFromFee[from] || _isExcludedFromFee[to])) (#429)
- _tOwned[deadAddress] += tBurn (#347)
- _tOwned[sender] = _tOwned[sender] - tAmount (#439)
- _tOwned[address(this)] += tMarketing (#337)
- _tOwned[address(this)] += tLiquidity (#327)
- _tOwned[recipient] = _tOwned[recipient] + s.tTransferAmount (#442)
Apply the check-effects-interactions pattern.

Additional information: link

LUNA.rescueAnyBEP20Tokens(address,address,uint256) (#559-561) ignores return value by IERC20(_tokenAddr).transfer(_to,_amount) (#560)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.

Additional information: link


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


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.


Combination 2: Unchecked transfer + 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.


Combination 3: Reentrancy vulnerabilities + Unchecked transfer vulnerability. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.

LUNA.slitherConstructorConstantVariables() (#106-566) uses literals with too many digits:
- deadAddress = 0x000000000000000000000000000000000000dEaD (#134)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

LUNA._tTotal (#126) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

LUNA.swapAndLiquify(uint256) (#465-489) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - taxes.liquidity) (#476)
-bnbToAddLiquidityWith = unitBalance * taxes.liquidity (#477)
LUNA.swapAndLiquify(uint256) (#465-489) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - taxes.liquidity) (#476)
-marketingAmt = unitBalance * 2 * taxes.marketing (#484)
Consider ordering multiplication before division.

Additional information: link

LUNA.addLiquidity(uint256,uint256) (#491-504) ignores return value by router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#496-503)
Ensure that all the return values of the function calls are used.

Additional information: link

LUNA.allowance(address,address).owner (#224) shadows:
- Ownable.owner() (#57-59) (function)
LUNA._approve(address,address,uint256).owner (#405) shadows:
- Ownable.owner() (#57-59) (function)
Rename the local variables that shadow another component.

Additional information: link

LUNA.updateMaxTxAmount(uint256) (#529-531) should emit an event for:
- maxTxAmount = amount * 10 ** _decimals (#530)
LUNA.updateMaxWalletBalance(uint256) (#533-535) should emit an event for:
- maxWalletAmount = amount * 10 ** _decimals (#534)
LUNA.updateSwapTokensAtAmount(uint256) (#537-539) should emit an event for:
- swapTokensAtAmount = amount * 10 ** _decimals (#538)
Emit an event for critical parameter changes.

Additional information: link

LUNA.updatemarketingWallet(address).newWallet (#524) lacks a zero-check on :
- marketingWallet = newWallet (#525)
LUNA.updateRouterAndPair(address,address).newPair (#545) lacks a zero-check on :
- pair = newPair (#548)
Check that the address is not zero.

Additional information: link

Reentrancy in LUNA._transfer(address,address,uint256) (#413-430):
External calls:
- swapAndLiquify(swapTokensAtAmount) (#426)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#496-503)
- (success) = recipient.call{value: amount}() (#32)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#515-521)
- address(marketingWallet).sendValue(marketingAmt) (#486)
External calls sending eth:
- swapAndLiquify(swapTokensAtAmount) (#426)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#496-503)
- (success) = recipient.call{value: amount}() (#32)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,! (_isExcludedFromFee[from] || _isExcludedFromFee[to])) (#429)
- totFeesPaid.burn += tBurn (#343)
- totFeesPaid.marketing += tMarketing (#333)
- totFeesPaid.liquidity += tLiquidity (#323)
- totFeesPaid.rfi += tRfi (#319)
Reentrancy in LUNA.constructor() (#179-198):
External calls:
- _pair = IFactory(_router.factory()).createPair(address(this),_router.WETH()) (#182-183)
State variables written after the call(s):
- excludeFromReward(pair) (#188)
- _excluded.push(account) (#283)
- excludeFromReward(deadAddress) (#189)
- _excluded.push(account) (#283)
- excludeFromReward(pair) (#188)
- _isExcluded[account] = true (#282)
- excludeFromReward(deadAddress) (#189)
- _isExcluded[account] = true (#282)
- _isExcludedFromFee[owner()] = true (#192)
- _isExcludedFromFee[address(this)] = true (#193)
- _isExcludedFromFee[marketingWallet] = true (#194)
- _isExcludedFromFee[deadAddress] = true (#195)
- _rOwned[owner()] = _rTotal (#191)
- excludeFromReward(pair) (#188)
- _tOwned[account] = tokenFromReflection(_rOwned[account]) (#280)
- excludeFromReward(deadAddress) (#189)
- _tOwned[account] = tokenFromReflection(_rOwned[account]) (#280)
- pair = _pair (#186)
- router = _router (#185)
Reentrancy in LUNA.swapAndLiquify(uint256) (#465-489):
External calls:
- swapTokensForBNB(toSwap) (#473)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#515-521)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#481)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#496-503)
External calls sending eth:
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#481)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#496-503)
State variables written after the call(s):
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#481)
- _allowances[owner][spender] = amount (#408)
Reentrancy in LUNA.transferFrom(address,address,uint256) (#233-241):
External calls:
- _transfer(sender,recipient,amount) (#234)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#496-503)
- (success) = recipient.call{value: amount}() (#32)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#515-521)
- address(marketingWallet).sendValue(marketingAmt) (#486)
External calls sending eth:
- _transfer(sender,recipient,amount) (#234)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#496-503)
- (success) = recipient.call{value: amount}() (#32)
State variables written after the call(s):
- _approve(sender,_msgSender(),currentAllowance - amount) (#238)
- _allowances[owner][spender] = amount (#408)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in LUNA._transfer(address,address,uint256) (#413-430):
External calls:
- swapAndLiquify(swapTokensAtAmount) (#426)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#496-503)
- (success) = recipient.call{value: amount}() (#32)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#515-521)
- address(marketingWallet).sendValue(marketingAmt) (#486)
External calls sending eth:
- swapAndLiquify(swapTokensAtAmount) (#426)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#496-503)
- (success) = recipient.call{value: amount}() (#32)
Event emitted after the call(s):
- Transfer(sender,deadAddress,s.tBurn) (#457)
- _tokenTransfer(from,to,amount,! (_isExcludedFromFee[from] || _isExcludedFromFee[to])) (#429)
- Transfer(sender,recipient,s.tTransferAmount) (#460)
- _tokenTransfer(from,to,amount,! (_isExcludedFromFee[from] || _isExcludedFromFee[to])) (#429)
- Transfer(sender,address(this),s.tLiquidity + s.tMarketing) (#461)
- _tokenTransfer(from,to,amount,! (_isExcludedFromFee[from] || _isExcludedFromFee[to])) (#429)
Reentrancy in LUNA.constructor() (#179-198):
External calls:
- _pair = IFactory(_router.factory()).createPair(address(this),_router.WETH()) (#182-183)
Event emitted after the call(s):
- Transfer(address(0),owner(),_tTotal) (#197)
Reentrancy in LUNA.swapAndLiquify(uint256) (#465-489):
External calls:
- swapTokensForBNB(toSwap) (#473)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#515-521)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#481)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#496-503)
External calls sending eth:
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#481)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#496-503)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#409)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#481)
Reentrancy in LUNA.transferFrom(address,address,uint256) (#233-241):
External calls:
- _transfer(sender,recipient,amount) (#234)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#496-503)
- (success) = recipient.call{value: amount}() (#32)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#515-521)
- address(marketingWallet).sendValue(marketingAmt) (#486)
External calls sending eth:
- _transfer(sender,recipient,amount) (#234)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#496-503)
- (success) = recipient.call{value: amount}() (#32)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#409)
- _approve(sender,_msgSender(),currentAllowance - amount) (#238)
Apply the check-effects-interactions pattern.

Additional information: link

LUNA.includeInReward(address) (#286-297) has costly operations inside a loop:
- _excluded.pop() (#293)
Use a local variable to hold the loop computation result.

Additional information: link

Context._msgData() (#42-45) is never used and should be removed
Remove unused functions.

Additional information: link

LUNA._rTotal (#127) is set pre-construction with a non-constant function or state variable:
- (MAX - (MAX % _tTotal))
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

Pragma version^0.8.10 (#4) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
solc-0.8.10 is not recommended for deployment
Deploy with any of the following Solidity versions: 0.5.16 - 0.5.17, 0.6.11 - 0.6.12, 0.7.5 - 0.7.6 Use a simple pragma version that allows any of these versions. Consider using the latest version of Solidity for testing.

Additional information: link

Low level call in Address.sendValue(address,uint256) (#29-34):
- (success) = recipient.call{value: amount}() (#32)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence

Additional information: link

Function IRouter.WETH() (#88) is not in mixedCase
Struct LUNA.valuesFromGetValues (#157-169) is not in CapWords
Parameter LUNA.setTaxes(uint256,uint256,uint256,uint256)._rfi (#313) is not in mixedCase
Parameter LUNA.setTaxes(uint256,uint256,uint256,uint256)._marketing (#313) is not in mixedCase
Parameter LUNA.setTaxes(uint256,uint256,uint256,uint256)._liquidity (#313) is not in mixedCase
Parameter LUNA.setTaxes(uint256,uint256,uint256,uint256)._burn (#313) is not in mixedCase
Parameter LUNA.updateSwapEnabled(bool)._enabled (#541) is not in mixedCase
Parameter LUNA.rescueAnyBEP20Tokens(address,address,uint256)._tokenAddr (#559) is not in mixedCase
Parameter LUNA.rescueAnyBEP20Tokens(address,address,uint256)._to (#559) is not in mixedCase
Parameter LUNA.rescueAnyBEP20Tokens(address,address,uint256)._amount (#559) is not in mixedCase
Constant LUNA._decimals (#123) is not in UPPER_CASE_WITH_UNDERSCORES
Constant LUNA.deadAddress (#134) is not in UPPER_CASE_WITH_UNDERSCORES
Constant LUNA._name (#137) is not in UPPER_CASE_WITH_UNDERSCORES
Constant LUNA._symbol (#138) is not in UPPER_CASE_WITH_UNDERSCORES
Follow the Solidity naming convention.

Additional information: link

Redundant expression "this (#43)" inContext (#37-46)
Remove redundant statements if they congest code but offer no value.

Additional information: link

renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#66-68)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#70-73)
name() should be declared external:
- LUNA.name() (#200-202)
symbol() should be declared external:
- LUNA.symbol() (#203-205)
decimals() should be declared external:
- LUNA.decimals() (#206-208)
totalSupply() should be declared external:
- LUNA.totalSupply() (#210-212)
transfer(address,uint256) should be declared external:
- LUNA.transfer(address,uint256) (#219-222)
allowance(address,address) should be declared external:
- LUNA.allowance(address,address) (#224-226)
approve(address,uint256) should be declared external:
- LUNA.approve(address,uint256) (#228-231)
transferFrom(address,address,uint256) should be declared external:
- LUNA.transferFrom(address,address,uint256) (#233-241)
increaseAllowance(address,uint256) should be declared external:
- LUNA.increaseAllowance(address,uint256) (#243-246)
decreaseAllowance(address,uint256) should be declared external:
- LUNA.decreaseAllowance(address,uint256) (#248-254)
isExcludedFromReward(address) should be declared external:
- LUNA.isExcludedFromReward(address) (#256-258)
reflectionFromToken(uint256,bool) should be declared external:
- LUNA.reflectionFromToken(uint256,bool) (#260-269)
excludeFromFee(address) should be declared external:
- LUNA.excludeFromFee(address) (#300-302)
includeInFee(address) should be declared external:
- LUNA.includeInFee(address) (#304-306)
isExcludedFromFee(address) should be declared external:
- LUNA.isExcludedFromFee(address) (#309-311)
setTaxes(uint256,uint256,uint256,uint256) should be declared external:
- LUNA.setTaxes(uint256,uint256,uint256,uint256) (#313-315)
rescueAnyBEP20Tokens(address,address,uint256) should be declared external:
- LUNA.rescueAnyBEP20Tokens(address,address,uint256) (#559-561)
Use the external attribute for functions never called from the contract.

Additional information: link

Contract name (LUNA 2.0) 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.

Contract ticker (LUNA2.0) 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.


Contract ownership is semi-renounced (passed to a contract)

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.


Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive. Ignore for presale.


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

Contract has 12% buy tax and 6% sell tax.
Taxes are high (over 10%) but contract ownership is renounced.


Average 30d number of PancakeSwap swaps is low.


Token is deployed only at one blockchain


Token has only one trading pair


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 LUNA2.0