Luna Cat Token Logo

LUNACAT [Luna Cat] Token

About LUNACAT

Listings

Token 2 years
white paper

🐱🌙 The Sailor Guardians saw what happened to $LUNA in May and decided to team up and save the world by sending Luna, the cat, to the moon!

Luna Cat is developed in the direction focusing on NFTs, staking rewards and comical anime stories to give Saylor Moon fans an experience of the journey to the moon with the moon cat Luna.
Mint your NFT and deposit it into the staking pool whilst your staking APY will depend on the rarity of the NFT you hold. There will only be 1,000 NFTs available to be minted!

Social

Laser Scorebeta Last Audit: 9 June 2022

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

Anti-Scam

Links


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

LUNACAT.rescueTokens(address) (#607-612) sends eth to arbitrary user
Dangerous calls:
- address(DevelopmentWalletAddress).transfer(address(this).balance) (#611)
LUNACAT.swapAndLiquify(uint256) (#776-795) sends eth to arbitrary user
Dangerous calls:
- address(DevelopmentWalletAddress).transfer(bnbToDevelopment) (#788)
LUNACAT.swapETHforRewardsandSendToDividends() (#811-828) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(dividendTracker),block.timestamp) (#818-823)
LUNACAT.addLiquidity(uint256,uint256) (#830-840) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(DevelopmentWalletAddress),block.timestamp) (#832-839)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in LUNACAT._transfer(address,address,uint256) (#711-774):
External calls:
- swapAndLiquify(swapTokens) (#744)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(DevelopmentWalletAddress),block.timestamp) (#832-839)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#802-808)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(dividendTracker),block.timestamp) (#818-823)
- dividendTracker.distributeRewardsDividends(dividends) (#825)
External calls sending eth:
- swapAndLiquify(swapTokens) (#744)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(DevelopmentWalletAddress),block.timestamp) (#832-839)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(dividendTracker),block.timestamp) (#818-823)
- address(DevelopmentWalletAddress).transfer(bnbToDevelopment) (#788)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (#761)
- _balances[sender] = senderBalance - amount (#347)
- _balances[recipient] += amount (#348)
- super._transfer(from,to,amount) (#763)
- _balances[sender] = senderBalance - amount (#347)
- _balances[recipient] += amount (#348)
- swapping = false (#745)
Apply the check-effects-interactions pattern.

Additional information: link

DividendPayingToken.rescueTokens() (#428-431) ignores return value by IERC20(rewards).transfer(address(0xdabcC054797e521aA345883d8ED3f47664C412E4),tokensToRescue) (#430)
LUNACAT.withdrawToken(address,address,uint256) (#596-601) ignores return value by IERC20(_tokenAddr).transfer(_to,_amount) (#599)
LUNACAT.rescueTokens(address) (#607-612) ignores return value by IERC20(tokenAddress).transfer(address(DevelopmentWalletAddress),tokensToRescue) (#609)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.

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.


Contract ownership is not renounced (belongs to a wallet)

Reentrancy in LUNACAT._setAutomatedMarketMakerPair(address,bool) (#624-631):
External calls:
- dividendTracker.excludeFromDividends(pair) (#628)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#630)
Reentrancy in LUNACAT._transfer(address,address,uint256) (#711-774):
External calls:
- swapAndLiquify(swapTokens) (#744)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(DevelopmentWalletAddress),block.timestamp) (#832-839)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#802-808)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(dividendTracker),block.timestamp) (#818-823)
- dividendTracker.distributeRewardsDividends(dividends) (#825)
External calls sending eth:
- swapAndLiquify(swapTokens) (#744)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(DevelopmentWalletAddress),block.timestamp) (#832-839)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(dividendTracker),block.timestamp) (#818-823)
- address(DevelopmentWalletAddress).transfer(bnbToDevelopment) (#788)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (#349)
- super._transfer(from,to,amount) (#763)
- Transfer(sender,recipient,amount) (#349)
- super._transfer(from,address(this),fees) (#761)
Reentrancy in LUNACAT._transfer(address,address,uint256) (#711-774):
External calls:
- swapAndLiquify(swapTokens) (#744)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(DevelopmentWalletAddress),block.timestamp) (#832-839)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#802-808)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(dividendTracker),block.timestamp) (#818-823)
- dividendTracker.distributeRewardsDividends(dividends) (#825)
- dividendTracker.setBalance(address(from),balanceOf(from)) (#765)
- dividendTracker.setBalance(address(to),balanceOf(to)) (#766)
- dividendTracker.process(gas) (#769-772)
External calls sending eth:
- swapAndLiquify(swapTokens) (#744)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(DevelopmentWalletAddress),block.timestamp) (#832-839)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(dividendTracker),block.timestamp) (#818-823)
- address(DevelopmentWalletAddress).transfer(bnbToDevelopment) (#788)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#770)
Reentrancy in LUNACAT.constructor() (#511-531):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#514)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#517)
- dividendTracker.excludeFromDividends(pair) (#628)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#630)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#517)
Reentrancy in LUNACAT.constructor() (#511-531):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#514)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#517)
- dividendTracker.excludeFromDividends(pair) (#628)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#518)
- dividendTracker.excludeFromDividends(address(this)) (#519)
- dividendTracker.excludeFromDividends(owner()) (#520)
- dividendTracker.excludeFromDividends(deadWallet) (#521)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#522)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (#558)
- excludeFromFees(address(this),true) (#525)
- ExcludeFromFees(account,excluded) (#558)
- excludeFromFees(DevelopmentWalletAddress,true) (#524)
- ExcludeFromFees(account,excluded) (#558)
- excludeFromFees(owner(),true) (#523)
- Transfer(address(0),account,amount) (#357)
- _mint(owner(),250000000 * (10 ** 18)) (#530)
Reentrancy in LUNACATDividendTracker.processAccount(address,bool) (#1029-1039):
External calls:
- amount = _withdrawDividendOfUser(account) (#1030)
- success = IERC20(rewards).transfer(user,_withdrawableDividend) (#419)
Event emitted after the call(s):
- Claim(account,amount,automatic) (#1034)
Reentrancy in LUNACAT.processDividendTracker(uint256) (#694-697):
External calls:
- (iterations,claims,lastProcessedIndex) = dividendTracker.process(gas) (#695)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,false,gas,tx.origin) (#696)
Reentrancy in LUNACAT.swapAndLiquify(uint256) (#776-795):
External calls:
- swapTokensForEth(totalSwapTokens) (#780)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#802-808)
- addLiquidity(liquidityTokens,newBalance) (#784)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(DevelopmentWalletAddress),block.timestamp) (#832-839)
External calls sending eth:
- addLiquidity(liquidityTokens,newBalance) (#784)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(DevelopmentWalletAddress),block.timestamp) (#832-839)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#374)
- addLiquidity(liquidityTokens,newBalance) (#784)
Reentrancy in LUNACAT.swapAndLiquify(uint256) (#776-795):
External calls:
- swapTokensForEth(totalSwapTokens) (#780)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#802-808)
- addLiquidity(liquidityTokens,newBalance) (#784)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(DevelopmentWalletAddress),block.timestamp) (#832-839)
- swapETHforRewardsandSendToDividends() (#791)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(dividendTracker),block.timestamp) (#818-823)
- dividendTracker.distributeRewardsDividends(dividends) (#825)
External calls sending eth:
- addLiquidity(liquidityTokens,newBalance) (#784)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(DevelopmentWalletAddress),block.timestamp) (#832-839)
- address(DevelopmentWalletAddress).transfer(bnbToDevelopment) (#788)
- swapETHforRewardsandSendToDividends() (#791)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(dividendTracker),block.timestamp) (#818-823)
Event emitted after the call(s):
- SendDividends(dividends) (#826)
- swapETHforRewardsandSendToDividends() (#791)
- SwapAndLiquify(liquidityTokens) (#794)
Reentrancy in LUNACAT.swapETHforRewardsandSendToDividends() (#811-828):
External calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(dividendTracker),block.timestamp) (#818-823)
- dividendTracker.distributeRewardsDividends(dividends) (#825)
External calls sending eth:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(dividendTracker),block.timestamp) (#818-823)
Event emitted after the call(s):
- SendDividends(dividends) (#826)
Reentrancy in LUNACAT.updateDividendTracker(address) (#535-545):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#539)
- newDividendTracker.excludeFromDividends(address(this)) (#540)
- newDividendTracker.excludeFromDividends(owner()) (#541)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#542)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (#543)
Apply the check-effects-interactions pattern.

Additional information: link

LUNACATDividendTracker.getAccount(address) (#899-936) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (#933-935)
LUNACATDividendTracker.canAutoClaim(uint256) (#957-963) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#958)
- block.timestamp - (lastClaimTime) >= claimWait (#962)
Avoid relying on block.timestamp.

Additional information: link

Context._msgData() (#22) is never used and should be removed
DividendPayingToken._transfer(address,address,uint256) (#448-453) is never used and should be removed
Remove unused functions.

Additional information: link

LUNACAT.totalFees (#486) is set pre-construction with a non-constant function or state variable:
- rewardFees + liquidityFee + developmentFee
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 version0.8.11 (#7) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
solc-0.8.11 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

Function IUniswapV2Router01.WETH() (#27) is not in mixedCase
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#182) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#183) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#197) is not in mixedCase
Parameter DividendPayingToken.dividendOf(address)._owner (#432) is not in mixedCase
Parameter DividendPayingToken.withdrawableDividendOf(address)._owner (#435) is not in mixedCase
Parameter DividendPayingToken.withdrawnDividendOf(address)._owner (#438) is not in mixedCase
Parameter DividendPayingToken.accumulativeDividendOf(address)._owner (#441) is not in mixedCase
Constant DividendPayingToken.magnitude (#397) is not in UPPER_CASE_WITH_UNDERSCORES
Parameter LUNACAT.withdrawToken(address,address,uint256)._tokenAddr (#596) is not in mixedCase
Parameter LUNACAT.withdrawToken(address,address,uint256)._to (#596) is not in mixedCase
Parameter LUNACAT.withdrawToken(address,address,uint256)._amount (#596) is not in mixedCase
Variable LUNACAT.DevelopmentWalletAddress (#489) is not in mixedCase
Parameter LUNACATDividendTracker.getAccount(address)._account (#899) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Redundant expression "this (#22)" inContext (#20-23)
Remove redundant statements if they congest code but offer no value.

Additional information: link

Reentrancy in LUNACAT._transfer(address,address,uint256) (#711-774):
External calls:
- swapAndLiquify(swapTokens) (#744)
- address(DevelopmentWalletAddress).transfer(bnbToDevelopment) (#788)
External calls sending eth:
- swapAndLiquify(swapTokens) (#744)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(DevelopmentWalletAddress),block.timestamp) (#832-839)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(dividendTracker),block.timestamp) (#818-823)
- address(DevelopmentWalletAddress).transfer(bnbToDevelopment) (#788)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (#761)
- _balances[sender] = senderBalance - amount (#347)
- _balances[recipient] += amount (#348)
- super._transfer(from,to,amount) (#763)
- _balances[sender] = senderBalance - amount (#347)
- _balances[recipient] += amount (#348)
- swapping = false (#745)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#770)
- Transfer(sender,recipient,amount) (#349)
- super._transfer(from,address(this),fees) (#761)
- Transfer(sender,recipient,amount) (#349)
- super._transfer(from,to,amount) (#763)
Reentrancy in LUNACAT.swapAndLiquify(uint256) (#776-795):
External calls:
- address(DevelopmentWalletAddress).transfer(bnbToDevelopment) (#788)
External calls sending eth:
- addLiquidity(liquidityTokens,newBalance) (#784)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(DevelopmentWalletAddress),block.timestamp) (#832-839)
- address(DevelopmentWalletAddress).transfer(bnbToDevelopment) (#788)
- swapETHforRewardsandSendToDividends() (#791)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(dividendTracker),block.timestamp) (#818-823)
Event emitted after the call(s):
- SendDividends(dividends) (#826)
- swapETHforRewardsandSendToDividends() (#791)
- SwapAndLiquify(liquidityTokens) (#794)
Apply the check-effects-interactions pattern.

Additional information: link

Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#31) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#32)
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#415) is too similar to LUNACATDividendTracker.getAccount(address).withdrawableDividends (#904)
Prevent variables from having similar names.

Additional information: link

LUNACAT.constructor() (#511-531) uses literals with too many digits:
- _mint(owner(),250000000 * (10 ** 18)) (#530)
LUNACAT.limitMaxWallet(uint256) (#619-622) uses literals with too many digits:
- maxWalletTokens = 15000000 * 10 ** 18 * maxWalletPercent (#620)
LUNACAT.updateGasForProcessing(uint256) (#633-638) uses literals with too many digits:
- require(bool,string)(newValue >= 200000 && newValue <= 500000,LUNACAT: gasForProcessing must be between 200,000 and 500,000) (#634)
LUNACAT.slitherConstructorVariables() (#474-841) uses literals with too many digits:
- deadWallet = 0x000000000000000000000000000000000000dEaD (#479)
LUNACAT.slitherConstructorVariables() (#474-841) uses literals with too many digits:
- swapTokensAtAmount = 300000 * (10 ** 18) (#481)
LUNACAT.slitherConstructorVariables() (#474-841) uses literals with too many digits:
- maxWalletTokens = 250000000 * (10 ** 18) (#482)
LUNACAT.slitherConstructorVariables() (#474-841) uses literals with too many digits:
- gasForProcessing = 300000 (#490)
LUNACATDividendTracker.getAccountAtIndex(uint256) (#938-955) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (#949)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

LUNACAT.deadWallet (#479) should be constant
LUNACAT.swapTokensAtAmount (#481) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#234-237)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#238-242)
get(IterableMapping.Map,address) should be declared external:
- IterableMapping.get(IterableMapping.Map,address) (#270)
getIndexOfKey(IterableMapping.Map,address) should be declared external:
- IterableMapping.getIndexOfKey(IterableMapping.Map,address) (#271-274)
getKeyAtIndex(IterableMapping.Map,uint256) should be declared external:
- IterableMapping.getKeyAtIndex(IterableMapping.Map,uint256) (#275)
size(IterableMapping.Map) should be declared external:
- IterableMapping.size(IterableMapping.Map) (#276)
name() should be declared external:
- ERC20.name() (#310)
symbol() should be declared external:
- ERC20.symbol() (#311)
decimals() should be declared external:
- ERC20.decimals() (#312)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#315-318)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#320-323)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#324-330)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#331-334)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#335-340)
withdrawDividend() should be declared external:
- DividendPayingToken.withdrawDividend() (#411-413)
- LUNACATDividendTracker.withdrawDividend() (#872-874)
rescueTokens() should be declared external:
- DividendPayingToken.rescueTokens() (#428-431)
dividendOf(address) should be declared external:
- DividendPayingToken.dividendOf(address) (#432-434)
withdrawnDividendOf(address) should be declared external:
- DividendPayingToken.withdrawnDividendOf(address) (#438-440)
withdrawToken(address,address,uint256) should be declared external:
- LUNACAT.withdrawToken(address,address,uint256) (#596-601)
isExcludedFromFees(address) should be declared external:
- LUNACAT.isExcludedFromFees(address) (#652-654)
withdrawableDividendOf(address) should be declared external:
- LUNACAT.withdrawableDividendOf(address) (#656-658)
dividendTokenBalanceOf(address) should be declared external:
- LUNACAT.dividendTokenBalanceOf(address) (#660-662)
getAccountAtIndex(uint256) should be declared external:
- LUNACATDividendTracker.getAccountAtIndex(uint256) (#938-955)
process(uint256) should be declared external:
- LUNACATDividendTracker.process(uint256) (#982-1027)
Use the external attribute for functions never called from the contract.

Additional information: link

DividendPayingToken.constructor(string,string)._name (#402) shadows:
- ERC20._name (#304) (state variable)
DividendPayingToken.constructor(string,string)._symbol (#402) shadows:
- ERC20._symbol (#305) (state variable)
DividendPayingToken.dividendOf(address)._owner (#432) shadows:
- Ownable._owner (#220) (state variable)
DividendPayingToken.withdrawableDividendOf(address)._owner (#435) shadows:
- Ownable._owner (#220) (state variable)
DividendPayingToken.withdrawnDividendOf(address)._owner (#438) shadows:
- Ownable._owner (#220) (state variable)
DividendPayingToken.accumulativeDividendOf(address)._owner (#441) shadows:
- Ownable._owner (#220) (state variable)
Rename the local variables that shadow another component.

Additional information: link

LUNACAT.updateUniswapV2Router(address)._uniswapV2Pair (#551) lacks a zero-check on :
- uniswapV2Pair = _uniswapV2Pair (#552)
LUNACAT.setDevelopmentWallet(address).wallet (#569) lacks a zero-check on :
- DevelopmentWalletAddress = wallet (#570)
Check that the address is not zero.

Additional information: link

SafeMathInt.MIN_INT256 (#247) is never used in SafeMathInt (#246-253)
SafeMathInt.MAX_INT256 (#248) is never used in SafeMathInt (#246-253)
Remove unused state variables.

Additional information: link

Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (#414-427):
External calls:
- success = IERC20(rewards).transfer(user,_withdrawableDividend) (#419)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user] - (_withdrawableDividend) (#421)
Reentrancy in LUNACAT.updateDividendTracker(address) (#535-545):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#539)
- newDividendTracker.excludeFromDividends(address(this)) (#540)
- newDividendTracker.excludeFromDividends(owner()) (#541)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#542)
State variables written after the call(s):
- dividendTracker = newDividendTracker (#544)
Apply the check-effects-interactions pattern.

Additional information: link

LUNACAT._transfer(address,address,uint256).lastProcessedIndex (#769) is a local variable never initialized
LUNACAT._transfer(address,address,uint256).iterations (#769) is a local variable never initialized
LUNACAT._transfer(address,address,uint256).claims (#769) is a local variable never initialized
Initialize all the variables. If a variable is meant to be initialized to zero, explicitly set it to zero to improve code readability.

Additional information: link

LUNACAT.claim() (#699-701) ignores return value by dividendTracker.processAccount(address(msg.sender),false) (#700)
LUNACAT._transfer(address,address,uint256) (#711-774) ignores return value by dividendTracker.process(gas) (#769-772)
LUNACAT.addLiquidity(uint256,uint256) (#830-840) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(DevelopmentWalletAddress),block.timestamp) (#832-839)
Ensure that all the return values of the function calls are used.

Additional information: link

LUNACAT.setrewardFees(uint256) (#573-577) should emit an event for:
- rewardFees = value (#574)
- totalFees = rewardFees + liquidityFee + developmentFee (#575)
LUNACAT.setLiquidityFee(uint256) (#579-583) should emit an event for:
- liquidityFee = value (#580)
- totalFees = rewardFees + liquidityFee + developmentFee (#581)
LUNACAT.setDevelopmentFee(uint256) (#585-589) should emit an event for:
- developmentFee = value (#586)
- totalFees = rewardFees + liquidityFee + developmentFee (#587)
LUNACAT.setExtraSellFee(uint256) (#591-594) should emit an event for:
- extraSellFee = value (#593)
LUNACAT.limitMaxWallet(uint256) (#619-622) should emit an event for:
- maxWalletTokens = 15000000 * 10 ** 18 * maxWalletPercent (#620)
Emit an event for critical parameter changes.

Additional information: link

DividendPayingToken._withdrawDividendOfUser(address) (#414-427) has external calls inside a loop: success = IERC20(rewards).transfer(user,_withdrawableDividend) (#419)
Favor pull over push strategy for external calls.

Additional information: link

Variable 'LUNACAT._transfer(address,address,uint256).claims (#769)' in LUNACAT._transfer(address,address,uint256) (#711-774) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#770)
Variable 'LUNACAT._transfer(address,address,uint256).iterations (#769)' in LUNACAT._transfer(address,address,uint256) (#711-774) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#770)
Variable 'LUNACAT._transfer(address,address,uint256).lastProcessedIndex (#769)' in LUNACAT._transfer(address,address,uint256) (#711-774) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#770)
Move all variable declarations prior to any usage of the variable, and ensure that reaching a variable declaration does not depend on some conditional if it is used unconditionally.

Additional information: link

Reentrancy in LUNACAT.constructor() (#511-531):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#514)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#516)
- uniswapV2Router = _uniswapV2Router (#515)
Reentrancy in LUNACAT.constructor() (#511-531):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#514)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#517)
- dividendTracker.excludeFromDividends(pair) (#628)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#518)
- dividendTracker.excludeFromDividends(address(this)) (#519)
- dividendTracker.excludeFromDividends(owner()) (#520)
- dividendTracker.excludeFromDividends(deadWallet) (#521)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#522)
State variables written after the call(s):
- _mint(owner(),250000000 * (10 ** 18)) (#530)
- _balances[account] += amount (#356)
- excludeFromFees(owner(),true) (#523)
- _isExcludedFromFees[account] = excluded (#557)
- excludeFromFees(DevelopmentWalletAddress,true) (#524)
- _isExcludedFromFees[account] = excluded (#557)
- excludeFromFees(address(this),true) (#525)
- _isExcludedFromFees[account] = excluded (#557)
- _mint(owner(),250000000 * (10 ** 18)) (#530)
- _totalSupply += amount (#355)
Reentrancy in LUNACATDividendTracker.processAccount(address,bool) (#1029-1039):
External calls:
- amount = _withdrawDividendOfUser(account) (#1030)
- success = IERC20(rewards).transfer(user,_withdrawableDividend) (#419)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (#1033)
Reentrancy in LUNACAT.updateUniswapV2Router(address) (#547-553):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this),uniswapV2Router.WETH()) (#551)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#552)
Apply the check-effects-interactions pattern.

Additional information: link

Holders:


Token seems to be untradeable: there is no PancakeSwap trading pair and no trading volumes. Ignore for presale.


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


Telegram account has relatively few subscribers


Unable to find Youtube account


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

Additional information: link


Unable to find token contract audit


Unable to find audit 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 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


Token has no active CoinMarketCap listing / rank

Price for LUNACAT

News for LUNACAT