LunaGens Token Logo

LUNG [LunaGens] Token

About LUNG

Listings

Token 3 years
CoinGecko 3 years
CoinMarketCap 3 years
white paper

A multi utilities community driven token on the binance smart chain with an incorporated swap platform

Social

Laser Scorebeta Last Audit: 28 July 2022

report
Token is either risky or in presale. For presale 30+ is a fine score.

Anti-Scam

Links


Too many vulnerabilities (Unchecked transfer, Reentrancy vulnerability, etc.). High risk of a scam. DYOR & manual audit are advised.

DividendDistributor.distributeDividend(address) (#239-251) ignores return value by RewardToken.transfer(shareholder,amount) (#245)
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...)

LunaGens.swapBack() (#618-667) sends eth to arbitrary user
Dangerous calls:
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#649)
- (tmpSuccess1) = address(buybackWallet).call{gas: 30000,value: anothermarketingShare}() (#650)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in LunaGens._transferFrom(address,address,uint256) (#553-594):
External calls:
- swapBack() (#563)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#628-634)
- dividendDistributor.deposit{value: amountBNBReflection}() (#644)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#649)
- (tmpSuccess1) = address(buybackWallet).call{gas: 30000,value: anothermarketingShare}() (#650)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#657-664)
External calls sending eth:
- swapBack() (#563)
- dividendDistributor.deposit{value: amountBNBReflection}() (#644)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#649)
- (tmpSuccess1) = address(buybackWallet).call{gas: 30000,value: anothermarketingShare}() (#650)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#657-664)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#571)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#579)
- finalAmount = takeFee(sender,recipient,amount) (#578)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#608)
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.


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.

LunaGens.swapBack().tmpSuccess (#649) is written in both
(tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#649)
tmpSuccess = false (#653)
LunaGens.swapBack().tmpSuccess1 (#650) is written in both
(tmpSuccess1) = address(buybackWallet).call{gas: 30000,value: anothermarketingShare}() (#650)
tmpSuccess1 = false (#654)
Fix or remove the writes.

Additional information: link

LunaGens.RewardToken (#358) is never used in LunaGens (#347-672)
Remove unused state variables.

Additional information: link

DividendDistributor.setDistributionCriteria(uint256,uint256) (#168-171) should emit an event for:
- minPeriod = newMinPeriod (#169)
- minDistribution = newMinDistribution (#170)
LunaGens.changeFees(uint256,uint256,uint256,uint256) (#510-518) should emit an event for:
- liquidityFee = newLiqFee (#511)
- rewardsFee = newRewardFee (#512)
- totalFee = liquidityFee.add(marketingFee).add(rewardsFee) (#516)
- totalFeeIfSelling = totalFee.add(extraFeeOnSell) (#517)
Emit an event for critical parameter changes.

Additional information: link

Auth.transferOwnership(address).adr (#338) lacks a zero-check on :
- owner = adr (#339)
LunaGens.changeFeeReceivers(address,address,address).newLiquidityReceiver (#520) lacks a zero-check on :
- autoLiquidityReceiver = newLiquidityReceiver (#521)
LunaGens.changeFeeReceivers(address,address,address).newMarketingWallet (#520) lacks a zero-check on :
- marketingWallet = newMarketingWallet (#522)
LunaGens.changeFeeReceivers(address,address,address).newbuybackWallet (#520) lacks a zero-check on :
- buybackWallet = newbuybackWallet (#523)
Check that the address is not zero.

Additional information: link

DividendDistributor.distributeDividend(address) (#239-251) has external calls inside a loop: RewardToken.transfer(shareholder,amount) (#245)
Favor pull over push strategy for external calls.

Additional information: link

LunaGens.swapBack() (#618-667) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#657-664)
Ensure that all the return values of the function calls are used.

Additional information: link

Reentrancy in DividendDistributor.distributeDividend(address) (#239-251):
External calls:
- RewardToken.transfer(shareholder,amount) (#245)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised.add(amount) (#247)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#248)
Reentrancy in DividendDistributor.process(uint256) (#210-232):
External calls:
- distributeDividend(shareholders[currentIndex]) (#224)
- RewardToken.transfer(shareholder,amount) (#245)
State variables written after the call(s):
- currentIndex ++ (#229)
Reentrancy in DividendDistributor.setShare(address,uint256) (#173-188):
External calls:
- distributeDividend(shareholder) (#176)
- RewardToken.transfer(shareholder,amount) (#245)
State variables written after the call(s):
- shares[shareholder].amount = amount (#186)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#187)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in LunaGens._transferFrom(address,address,uint256) (#553-594):
External calls:
- swapBack() (#563)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#628-634)
- dividendDistributor.deposit{value: amountBNBReflection}() (#644)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#649)
- (tmpSuccess1) = address(buybackWallet).call{gas: 30000,value: anothermarketingShare}() (#650)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#657-664)
External calls sending eth:
- swapBack() (#563)
- dividendDistributor.deposit{value: amountBNBReflection}() (#644)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#649)
- (tmpSuccess1) = address(buybackWallet).call{gas: 30000,value: anothermarketingShare}() (#650)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#657-664)
State variables written after the call(s):
- launch() (#567)
- launchedAt = block.number (#476)
Reentrancy in LunaGens.constructor() (#406-438):
External calls:
- pair = IDEXFactory(router.factory()).createPair(router.WETH(),address(this)) (#409)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = uint256(- 1) (#410)
- _balances[msg.sender] = _totalSupply (#436)
- autoLiquidityReceiver = msg.sender (#429)
- buybackWallet = 0xd68408c20bbB53A18F7bB14281863e626E59F8Da (#431)
- dividendDistributor = new DividendDistributor(address(router)) (#412)
- isDividendExempt[pair] = true (#422)
- isDividendExempt[address(this)] = true (#424)
- isDividendExempt[DEAD] = true (#425)
- isDividendExempt[ZERO] = true (#426)
- isFeeExempt[msg.sender] = true (#414)
- isFeeExempt[address(this)] = true (#415)
- isFeeExempt[buybackWallet] = true (#416)
- isTxLimitExempt[msg.sender] = true (#418)
- isTxLimitExempt[pair] = true (#419)
- isTxLimitExempt[DEAD] = true (#420)
- marketingWallet = 0xa92441478B5c07386f9366D76B16b21673363B9C (#430)
- totalFee = liquidityFee.add(marketingFee).add(rewardsFee) (#433)
- totalFeeIfSelling = totalFee.add(extraFeeOnSell) (#434)
Reentrancy in DividendDistributor.deposit() (#190-208):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp) (#198-203)
State variables written after the call(s):
- dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares)) (#207)
- totalDividends = totalDividends.add(amount) (#206)
Reentrancy in DividendDistributor.distributeDividend(address) (#239-251):
External calls:
- RewardToken.transfer(shareholder,amount) (#245)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (#246)
Reentrancy in DividendDistributor.setShare(address,uint256) (#173-188):
External calls:
- distributeDividend(shareholder) (#176)
- RewardToken.transfer(shareholder,amount) (#245)
State variables written after the call(s):
- addShareholder(shareholder) (#180)
- shareholderIndexes[shareholder] = shareholders.length (#269)
- removeShareholder(shareholder) (#182)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#275)
- addShareholder(shareholder) (#180)
- shareholders.push(shareholder) (#270)
- removeShareholder(shareholder) (#182)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#274)
- shareholders.pop() (#276)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (#185)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in LunaGens._transferFrom(address,address,uint256) (#553-594):
External calls:
- swapBack() (#563)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#628-634)
- dividendDistributor.deposit{value: amountBNBReflection}() (#644)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#649)
- (tmpSuccess1) = address(buybackWallet).call{gas: 30000,value: anothermarketingShare}() (#650)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#657-664)
- dividendDistributor.setShare(sender,_balances[sender]) (#583)
- dividendDistributor.setShare(recipient,_balances[recipient]) (#587)
- dividendDistributor.process(distributorGas) (#590)
External calls sending eth:
- swapBack() (#563)
- dividendDistributor.deposit{value: amountBNBReflection}() (#644)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#649)
- (tmpSuccess1) = address(buybackWallet).call{gas: 30000,value: anothermarketingShare}() (#650)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#657-664)
Event emitted after the call(s):
- Transfer(sender,recipient,finalAmount) (#592)
Reentrancy in LunaGens._transferFrom(address,address,uint256) (#553-594):
External calls:
- swapBack() (#563)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#628-634)
- dividendDistributor.deposit{value: amountBNBReflection}() (#644)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#649)
- (tmpSuccess1) = address(buybackWallet).call{gas: 30000,value: anothermarketingShare}() (#650)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#657-664)
External calls sending eth:
- swapBack() (#563)
- dividendDistributor.deposit{value: amountBNBReflection}() (#644)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#649)
- (tmpSuccess1) = address(buybackWallet).call{gas: 30000,value: anothermarketingShare}() (#650)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#657-664)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#609)
- finalAmount = takeFee(sender,recipient,amount) (#578)
Reentrancy in LunaGens.constructor() (#406-438):
External calls:
- pair = IDEXFactory(router.factory()).createPair(router.WETH(),address(this)) (#409)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#437)
Reentrancy in LunaGens.swapBack() (#618-667):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#628-634)
- dividendDistributor.deposit{value: amountBNBReflection}() (#644)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#649)
- (tmpSuccess1) = address(buybackWallet).call{gas: 30000,value: anothermarketingShare}() (#650)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#657-664)
External calls sending eth:
- dividendDistributor.deposit{value: amountBNBReflection}() (#644)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#649)
- (tmpSuccess1) = address(buybackWallet).call{gas: 30000,value: anothermarketingShare}() (#650)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#657-664)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#665)
Apply the check-effects-interactions pattern.

Additional information: link

DividendDistributor.shouldDistribute(address) (#234-237) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#235-236)
Avoid relying on block.timestamp.

Additional information: link

DividendDistributor.process(uint256) (#210-232) has costly operations inside a loop:
- currentIndex = 0 (#221)
DividendDistributor.distributeDividend(address) (#239-251) has costly operations inside a loop:
- totalDistributed = totalDistributed.add(amount) (#244)
DividendDistributor.process(uint256) (#210-232) has costly operations inside a loop:
- currentIndex ++ (#229)
Use a local variable to hold the loop computation result.

Additional information: link

LunaGens._maxTxAmount (#361) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 3 / 200
LunaGens._walletMax (#362) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 3 / 200
LunaGens.swapThreshold (#398) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 5 / 2000
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.7.4 (#8) allows old versions
solc-0.7.4 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 LunaGens.swapBack() (#618-667):
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#649)
- (tmpSuccess1) = address(buybackWallet).call{gas: 30000,value: anothermarketingShare}() (#650)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence

Additional information: link

Function IDEXRouter.WETH() (#67) is not in mixedCase
Variable DividendDistributor._token (#124) is not in mixedCase
Variable DividendDistributor.RewardToken (#134) is not in mixedCase
Constant LunaGens._name (#351) is not in UPPER_CASE_WITH_UNDERSCORES
Constant LunaGens._symbol (#352) is not in UPPER_CASE_WITH_UNDERSCORES
Constant LunaGens._decimals (#353) is not in UPPER_CASE_WITH_UNDERSCORES
Variable LunaGens.DEAD (#355) is not in mixedCase
Variable LunaGens.ZERO (#356) is not in mixedCase
Variable LunaGens.RewardToken (#358) is not in mixedCase
Variable LunaGens._totalSupply (#360) is not in mixedCase
Variable LunaGens._maxTxAmount (#361) is not in mixedCase
Variable LunaGens._walletMax (#362) is not in mixedCase
Variable LunaGens._balances (#366) is not in mixedCase
Variable LunaGens._allowances (#367) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#72) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#73)
Prevent variables from having similar names.

Additional information: link

LunaGens.slitherConstructorVariables() (#347-672) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#355)
LunaGens.slitherConstructorVariables() (#347-672) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#356)
LunaGens.slitherConstructorVariables() (#347-672) uses literals with too many digits:
- _totalSupply = 1000000000 * (10 ** _decimals) (#360)
LunaGens.slitherConstructorVariables() (#347-672) uses literals with too many digits:
- distributorGas = 300000 (#392)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

DividendDistributor.dividendsPerShareAccuracyFactor (#145) should be constant
DividendDistributor.routerAddress (#133) should be constant
LunaGens.DEAD (#355) should be constant
LunaGens.RewardToken (#358) should be constant
LunaGens.ZERO (#356) should be constant
LunaGens._totalSupply (#360) should be constant
LunaGens.routerAddress (#357) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

authorize(address) should be declared external:
- Auth.authorize(address) (#310-312)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#317-319)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#338-342)
getCirculatingSupply() should be declared external:
- LunaGens.getCirculatingSupply() (#448-450)
claim() should be declared external:
- LunaGens.claim() (#466-469)
tradingStatus(bool) should be declared external:
- LunaGens.tradingStatus(bool) (#614-616)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


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

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


Unable to find Youtube account


Unable to find Discord account


BscScan page for the token does not contain additional info: website, socials, description, etc.

Additional information: link


Unable to crawl data from the website


Unable to find token contract audit


Unable to find KYC or doxxing proof


Unable to find audit link on the website


Token is not listed at Mobula.Finance

Additional information: link


Unable to find code repository for the project


Unable to verify token contract address on the website


Unable to find whitepaper link on the website


Unable to find Telegram link on the website


Unable to find Twitter link on the website


Young tokens have high risks of scam / price dump / death


Young tokens have high risks of scam / price dump / death


Young tokens have high risks of scam / price dump / death


Young tokens have high risks of scam / price dump / death


Token has no active CoinGecko listing / rank

Price for LUNG

News for LUNG