MoonAstronauts Token Logo

MOON [MoonAstronauts] Token

About MOON

Listings

Not Found
Token 7 months

Moon Astronauts, the new smartchain contract designed and build to really Moon.

Social

Laser Scorebeta Last Audit: 9 January 2022

report
Token has too many issues. Scam probability is high.

Anti-Scam

Links


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

MoonAstronauts.addLiquidity(uint256,uint256) (#1678-1693) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1684-1691)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in MoonAstronauts._transfer(address,address,uint256) (#1522-1611):
External calls:
- pinkAntiBot.onPreTransferCheck(from,to,amount) (#1530)
- pinkAntiBot.onPreTransferCheck(from,to,amount) (#1534)
- swapTokensForEth(walletTokens) (#1562)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1649-1655)
- swapAndLiquify(swapTokens) (#1570)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1684-1691)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1649-1655)
- swapAndSendDividends(sellTokens) (#1573)
- success = IERC20(BUSD).transfer(address(dividendTracker),dividends) (#1698)
- dividendTracker.distributeBUSDDividends(dividends) (#1701)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1669-1675)
External calls sending eth:
- address(_marketingWalletAddress).transfer(marketingShare) (#1566)
- address(_stackingWalletAddress).transfer(buybackShare) (#1567)
- swapAndLiquify(swapTokens) (#1570)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1684-1691)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (#1593)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#481)
- _balances[recipient] = _balances[recipient].add(amount) (#482)
- super._transfer(from,to,amount) (#1596)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#481)
- _balances[recipient] = _balances[recipient].add(amount) (#482)
- swapping = false (#1575)
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.

Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (#817-833):
External calls:
- success = IERC20(BUSD).transfer(user,_withdrawableDividend) (#822)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (#825)
Reentrancy in MoonAstronauts.updateDividendTracker(address) (#1328-1343):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1335)
- newDividendTracker.excludeFromDividends(address(this)) (#1336)
- newDividendTracker.excludeFromDividends(owner()) (#1337)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1338)
State variables written after the call(s):
- dividendTracker = newDividendTracker (#1342)
Apply the check-effects-interactions pattern.

Additional information: link

MoonAstronauts._transfer(address,address,uint256).lastProcessedIndex (#1604) is a local variable never initialized
MoonAstronauts._transfer(address,address,uint256).iterations (#1604) is a local variable never initialized
MoonAstronauts._transfer(address,address,uint256).claims (#1604) 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

MoonAstronauts.claim() (#1509-1511) ignores return value by dividendTracker.processAccount(msg.sender,false) (#1510)
MoonAstronauts._transfer(address,address,uint256) (#1522-1611) ignores return value by dividendTracker.process(gas) (#1604-1609)
MoonAstronauts.addLiquidity(uint256,uint256) (#1678-1693) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1684-1691)
Ensure that all the return values of the function calls are used.

Additional information: link

DividendPayingToken.constructor(string,string)._name (#791) shadows:
- ERC20._name (#303) (state variable)
DividendPayingToken.constructor(string,string)._symbol (#791) shadows:
- ERC20._symbol (#304) (state variable)
DividendPayingToken.dividendOf(address)._owner (#839) shadows:
- Ownable._owner (#702) (state variable)
DividendPayingToken.withdrawableDividendOf(address)._owner (#846) shadows:
- Ownable._owner (#702) (state variable)
DividendPayingToken.withdrawnDividendOf(address)._owner (#853) shadows:
- Ownable._owner (#702) (state variable)
DividendPayingToken.accumulativeDividendOf(address)._owner (#863) shadows:
- Ownable._owner (#702) (state variable)
Rename the local variables that shadow another component.

Additional information: link

MoonAstronauts.setSwapTokensAmount(uint256) (#1370-1372) should emit an event for:
- swapTokensAtAmount = newAmount (#1371)
MoonAstronauts.setMaxSelltx(uint256) (#1374-1376) should emit an event for:
- maxSellTransactionAmount = _maxSellTxAmount (#1375)
MoonAstronauts.setBUSDRewardsFee(uint256) (#1390-1393) should emit an event for:
- BUSDRewardsFee = value (#1391)
- totalFees = BUSDRewardsFee.add(liquidityFee).add(marketingFee).add(StakingandBurn) (#1392)
MoonAstronauts.setLiquiditFee(uint256) (#1395-1398) should emit an event for:
- liquidityFee = value (#1396)
- totalFees = BUSDRewardsFee.add(liquidityFee).add(marketingFee).add(StakingandBurn) (#1397)
MoonAstronauts.setMarketingFee(uint256) (#1400-1404) should emit an event for:
- marketingFee = _marketingFee (#1401)
- totalFees = BUSDRewardsFee.add(liquidityFee).add(marketingFee).add(StakingandBurn) (#1402)
MoonAstronauts.setStakingandBurn(uint256) (#1406-1410) should emit an event for:
- StakingandBurn = _StakingandBurn (#1407)
- totalFees = BUSDRewardsFee.add(liquidityFee).add(marketingFee).add(StakingandBurn) (#1408)
Emit an event for critical parameter changes.

Additional information: link

MoonAstronauts.updateUniswapV2Router(address)._uniswapV2Pair (#1349-1350) lacks a zero-check on :
- uniswapV2Pair = _uniswapV2Pair (#1351)
MoonAstronauts.setMarketingWallet(address).wallet (#1382) lacks a zero-check on :
- _marketingWalletAddress = wallet (#1383)
MoonAstronauts.setBuybackWallet(address).wallet (#1386) lacks a zero-check on :
- _stackingWalletAddress = wallet (#1387)
Check that the address is not zero.

Additional information: link

DividendPayingToken._withdrawDividendOfUser(address) (#817-833) has external calls inside a loop: success = IERC20(BUSD).transfer(user,_withdrawableDividend) (#822)
Favor pull over push strategy for external calls.

Additional information: link

Variable 'MoonAstronauts._transfer(address,address,uint256).claims (#1604)' in MoonAstronauts._transfer(address,address,uint256) (#1522-1611) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1605)
Variable 'MoonAstronauts._transfer(address,address,uint256).iterations (#1604)' in MoonAstronauts._transfer(address,address,uint256) (#1522-1611) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1605)
Variable 'MoonAstronauts._transfer(address,address,uint256).lastProcessedIndex (#1604)' in MoonAstronauts._transfer(address,address,uint256) (#1522-1611) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1605)
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 MoonAstronauts._transfer(address,address,uint256) (#1522-1611):
External calls:
- pinkAntiBot.onPreTransferCheck(from,to,amount) (#1530)
- pinkAntiBot.onPreTransferCheck(from,to,amount) (#1534)
State variables written after the call(s):
- super._transfer(from,to,0) (#1538)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#481)
- _balances[recipient] = _balances[recipient].add(amount) (#482)
- swapping = true (#1558)
Reentrancy in MoonAstronauts._transfer(address,address,uint256) (#1522-1611):
External calls:
- pinkAntiBot.onPreTransferCheck(from,to,amount) (#1530)
- pinkAntiBot.onPreTransferCheck(from,to,amount) (#1534)
- swapTokensForEth(walletTokens) (#1562)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1649-1655)
State variables written after the call(s):
- swapTokensForEth(walletTokens) (#1562)
- _allowances[owner][spender] = amount (#547)
Reentrancy in MoonAstronauts._transfer(address,address,uint256) (#1522-1611):
External calls:
- pinkAntiBot.onPreTransferCheck(from,to,amount) (#1530)
- pinkAntiBot.onPreTransferCheck(from,to,amount) (#1534)
- swapTokensForEth(walletTokens) (#1562)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1649-1655)
- swapAndLiquify(swapTokens) (#1570)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1684-1691)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1649-1655)
External calls sending eth:
- address(_marketingWalletAddress).transfer(marketingShare) (#1566)
- address(_stackingWalletAddress).transfer(buybackShare) (#1567)
- swapAndLiquify(swapTokens) (#1570)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1684-1691)
State variables written after the call(s):
- swapAndLiquify(swapTokens) (#1570)
- _allowances[owner][spender] = amount (#547)
Reentrancy in MoonAstronauts._transfer(address,address,uint256) (#1522-1611):
External calls:
- pinkAntiBot.onPreTransferCheck(from,to,amount) (#1530)
- pinkAntiBot.onPreTransferCheck(from,to,amount) (#1534)
- swapTokensForEth(walletTokens) (#1562)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1649-1655)
- swapAndLiquify(swapTokens) (#1570)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1684-1691)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1649-1655)
- swapAndSendDividends(sellTokens) (#1573)
- success = IERC20(BUSD).transfer(address(dividendTracker),dividends) (#1698)
- dividendTracker.distributeBUSDDividends(dividends) (#1701)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1669-1675)
External calls sending eth:
- address(_marketingWalletAddress).transfer(marketingShare) (#1566)
- address(_stackingWalletAddress).transfer(buybackShare) (#1567)
- swapAndLiquify(swapTokens) (#1570)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1684-1691)
State variables written after the call(s):
- swapAndSendDividends(sellTokens) (#1573)
- _allowances[owner][spender] = amount (#547)
Reentrancy in MoonAstronauts.constructor() (#1279-1322):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1288-1289)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#1292)
- uniswapV2Router = _uniswapV2Router (#1291)
Reentrancy in MoonAstronauts.constructor() (#1279-1322):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1288-1289)
- pinkAntiBot.setTokenOwner(msg.sender) (#1293)
State variables written after the call(s):
- antiBotEnabled = true (#1294)
Reentrancy in MoonAstronauts.constructor() (#1279-1322):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1288-1289)
- pinkAntiBot.setTokenOwner(msg.sender) (#1293)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1296)
- dividendTracker.excludeFromDividends(pair) (#1436)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#1299)
- dividendTracker.excludeFromDividends(address(this)) (#1300)
- dividendTracker.excludeFromDividends(owner()) (#1301)
- dividendTracker.excludeFromDividends(deadWallet) (#1302)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#1303)
State variables written after the call(s):
- _mint(owner(),1000000000 * (10 ** 9)) (#1321)
- _balances[account] = _balances[account].add(amount) (#501)
- excludeFromFees(owner(),true) (#1306)
- _isExcludedFromFees[account] = excluded (#1356)
- excludeFromFees(_marketingWalletAddress,true) (#1307)
- _isExcludedFromFees[account] = excluded (#1356)
- excludeFromFees(_stackingWalletAddress,true) (#1308)
- _isExcludedFromFees[account] = excluded (#1356)
- excludeFromFees(address(this),true) (#1309)
- _isExcludedFromFees[account] = excluded (#1356)
- excludeFromFees(owner(),true) (#1306)
- _isExcludedFromMaxTx[account] = excluded (#1357)
- excludeFromFees(_marketingWalletAddress,true) (#1307)
- _isExcludedFromMaxTx[account] = excluded (#1357)
- excludeFromFees(_stackingWalletAddress,true) (#1308)
- _isExcludedFromMaxTx[account] = excluded (#1357)
- excludeFromFees(address(this),true) (#1309)
- _isExcludedFromMaxTx[account] = excluded (#1357)
- _isExcludedFromMaxTx[owner()] = true (#1312)
- _isExcludedFromMaxTx[address(this)] = true (#1313)
- _isExcludedFromMaxTx[_marketingWalletAddress] = true (#1314)
- _isExcludedFromMaxTx[_stackingWalletAddress] = true (#1315)
- _mint(owner(),1000000000 * (10 ** 9)) (#1321)
- _totalSupply = _totalSupply.add(amount) (#500)
Reentrancy in MoonAstronautsDividendTracker.processAccount(address,bool) (#1903-1913):
External calls:
- amount = _withdrawDividendOfUser(account) (#1904)
- success = IERC20(BUSD).transfer(user,_withdrawableDividend) (#822)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (#1907)
Reentrancy in MoonAstronauts.swapAndLiquify(uint256) (#1614-1635):
External calls:
- swapTokensForEth(half) (#1626)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1649-1655)
- addLiquidity(otherHalf,newBalance) (#1632)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1684-1691)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1632)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1684-1691)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#1632)
- _allowances[owner][spender] = amount (#547)
Reentrancy in MoonAstronauts.updateUniswapV2Router(address) (#1345-1352):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this),uniswapV2Router.WETH()) (#1349-1350)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#1351)
Reentrancy in MoonAstronauts.whitelist(address) (#1412-1417):
External calls:
- dividendTracker.excludeFromDividends(_address) (#1415)
State variables written after the call(s):
- excludeFromFees(_address,true) (#1416)
- _isExcludedFromFees[account] = excluded (#1356)
- excludeFromFees(_address,true) (#1416)
- _isExcludedFromMaxTx[account] = excluded (#1357)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in MoonAstronauts._setAutomatedMarketMakerPair(address,bool) (#1431-1440):
External calls:
- dividendTracker.excludeFromDividends(pair) (#1436)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1439)
Reentrancy in MoonAstronauts._transfer(address,address,uint256) (#1522-1611):
External calls:
- pinkAntiBot.onPreTransferCheck(from,to,amount) (#1530)
- pinkAntiBot.onPreTransferCheck(from,to,amount) (#1534)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (#483)
- super._transfer(from,to,0) (#1538)
Reentrancy in MoonAstronauts._transfer(address,address,uint256) (#1522-1611):
External calls:
- pinkAntiBot.onPreTransferCheck(from,to,amount) (#1530)
- pinkAntiBot.onPreTransferCheck(from,to,amount) (#1534)
- swapTokensForEth(walletTokens) (#1562)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1649-1655)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#548)
- swapTokensForEth(walletTokens) (#1562)
Reentrancy in MoonAstronauts._transfer(address,address,uint256) (#1522-1611):
External calls:
- pinkAntiBot.onPreTransferCheck(from,to,amount) (#1530)
- pinkAntiBot.onPreTransferCheck(from,to,amount) (#1534)
- swapTokensForEth(walletTokens) (#1562)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1649-1655)
- swapAndLiquify(swapTokens) (#1570)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1684-1691)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1649-1655)
External calls sending eth:
- address(_marketingWalletAddress).transfer(marketingShare) (#1566)
- address(_stackingWalletAddress).transfer(buybackShare) (#1567)
- swapAndLiquify(swapTokens) (#1570)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1684-1691)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#548)
- swapAndLiquify(swapTokens) (#1570)
- SwapAndLiquify(half,newBalance,otherHalf) (#1634)
- swapAndLiquify(swapTokens) (#1570)
Reentrancy in MoonAstronauts._transfer(address,address,uint256) (#1522-1611):
External calls:
- pinkAntiBot.onPreTransferCheck(from,to,amount) (#1530)
- pinkAntiBot.onPreTransferCheck(from,to,amount) (#1534)
- swapTokensForEth(walletTokens) (#1562)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1649-1655)
- swapAndLiquify(swapTokens) (#1570)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1684-1691)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1649-1655)
- swapAndSendDividends(sellTokens) (#1573)
- success = IERC20(BUSD).transfer(address(dividendTracker),dividends) (#1698)
- dividendTracker.distributeBUSDDividends(dividends) (#1701)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1669-1675)
External calls sending eth:
- address(_marketingWalletAddress).transfer(marketingShare) (#1566)
- address(_stackingWalletAddress).transfer(buybackShare) (#1567)
- swapAndLiquify(swapTokens) (#1570)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1684-1691)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#548)
- swapAndSendDividends(sellTokens) (#1573)
- SendDividends(tokens,dividends) (#1702)
- swapAndSendDividends(sellTokens) (#1573)
- Transfer(sender,recipient,amount) (#483)
- super._transfer(from,to,amount) (#1596)
- Transfer(sender,recipient,amount) (#483)
- super._transfer(from,address(this),fees) (#1593)
Reentrancy in MoonAstronauts._transfer(address,address,uint256) (#1522-1611):
External calls:
- pinkAntiBot.onPreTransferCheck(from,to,amount) (#1530)
- pinkAntiBot.onPreTransferCheck(from,to,amount) (#1534)
- swapTokensForEth(walletTokens) (#1562)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1649-1655)
- swapAndLiquify(swapTokens) (#1570)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1684-1691)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1649-1655)
- swapAndSendDividends(sellTokens) (#1573)
- success = IERC20(BUSD).transfer(address(dividendTracker),dividends) (#1698)
- dividendTracker.distributeBUSDDividends(dividends) (#1701)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1669-1675)
- dividendTracker.setBalance(address(from),balanceOf(from)) (#1598)
- dividendTracker.setBalance(address(to),balanceOf(to)) (#1599)
- dividendTracker.process(gas) (#1604-1609)
External calls sending eth:
- address(_marketingWalletAddress).transfer(marketingShare) (#1566)
- address(_stackingWalletAddress).transfer(buybackShare) (#1567)
- swapAndLiquify(swapTokens) (#1570)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1684-1691)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1605)
Reentrancy in MoonAstronauts.constructor() (#1279-1322):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1288-1289)
- pinkAntiBot.setTokenOwner(msg.sender) (#1293)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1296)
- dividendTracker.excludeFromDividends(pair) (#1436)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1439)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1296)
Reentrancy in MoonAstronauts.constructor() (#1279-1322):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#1288-1289)
- pinkAntiBot.setTokenOwner(msg.sender) (#1293)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#1296)
- dividendTracker.excludeFromDividends(pair) (#1436)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#1299)
- dividendTracker.excludeFromDividends(address(this)) (#1300)
- dividendTracker.excludeFromDividends(owner()) (#1301)
- dividendTracker.excludeFromDividends(deadWallet) (#1302)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#1303)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (#1359)
- excludeFromFees(address(this),true) (#1309)
- ExcludeFromFees(account,excluded) (#1359)
- excludeFromFees(_stackingWalletAddress,true) (#1308)
- ExcludeFromFees(account,excluded) (#1359)
- excludeFromFees(_marketingWalletAddress,true) (#1307)
- ExcludeFromFees(account,excluded) (#1359)
- excludeFromFees(owner(),true) (#1306)
- Transfer(address(0),account,amount) (#502)
- _mint(owner(),1000000000 * (10 ** 9)) (#1321)
Reentrancy in MoonAstronautsDividendTracker.processAccount(address,bool) (#1903-1913):
External calls:
- amount = _withdrawDividendOfUser(account) (#1904)
- success = IERC20(BUSD).transfer(user,_withdrawableDividend) (#822)
Event emitted after the call(s):
- Claim(account,amount,automatic) (#1908)
Reentrancy in MoonAstronauts.processDividendTracker(uint256) (#1504-1507):
External calls:
- (iterations,claims,lastProcessedIndex) = dividendTracker.process(gas) (#1505)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,false,gas,tx.origin) (#1506)
Reentrancy in MoonAstronauts.swapAndLiquify(uint256) (#1614-1635):
External calls:
- swapTokensForEth(half) (#1626)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1649-1655)
- addLiquidity(otherHalf,newBalance) (#1632)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1684-1691)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1632)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1684-1691)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#548)
- addLiquidity(otherHalf,newBalance) (#1632)
- SwapAndLiquify(half,newBalance,otherHalf) (#1634)
Reentrancy in MoonAstronauts.swapAndSendDividends(uint256) (#1695-1704):
External calls:
- swapTokensForBUSD(tokens) (#1696)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1669-1675)
- success = IERC20(BUSD).transfer(address(dividendTracker),dividends) (#1698)
- dividendTracker.distributeBUSDDividends(dividends) (#1701)
Event emitted after the call(s):
- SendDividends(tokens,dividends) (#1702)
Reentrancy in MoonAstronauts.updateDividendTracker(address) (#1328-1343):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1335)
- newDividendTracker.excludeFromDividends(address(this)) (#1336)
- newDividendTracker.excludeFromDividends(owner()) (#1337)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1338)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (#1340)
Reentrancy in MoonAstronauts.whitelist(address) (#1412-1417):
External calls:
- dividendTracker.excludeFromDividends(_address) (#1415)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (#1359)
- excludeFromFees(_address,true) (#1416)
Apply the check-effects-interactions pattern.

Additional information: link

MoonAstronautsDividendTracker.getAccount(address) (#1767-1810) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (#1807-1809)
MoonAstronautsDividendTracker.canAutoClaim(uint256) (#1831-1837) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#1832)
- block.timestamp.sub(lastClaimTime) >= claimWait (#1836)
Avoid relying on block.timestamp.

Additional information: link

Different versions of Solidity is used:
- Version used: ['^0.6.12', '^0.6.2']
- ^0.6.12 (#3)
- ^0.6.2 (#1048)
Use one Solidity version.

Additional information: link

Context._msgData() (#120-123) is never used and should be removed
DividendPayingToken._transfer(address,address,uint256) (#873-879) is never used and should be removed
SafeMath.mod(uint256,uint256) (#247-249) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#263-266) is never used and should be removed
SafeMathInt.abs(int256) (#636-639) is never used and should be removed
SafeMathInt.div(int256,int256) (#607-613) is never used and should be removed
SafeMathInt.mul(int256,int256) (#595-602) is never used and should be removed
Remove unused functions.

Additional information: link

MoonAstronauts.totalFees (#1224) is set pre-construction with a non-constant function or state variable:
- BUSDRewardsFee.add(liquidityFee).add(marketingFee).add(StakingandBurn)
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.6.2 (#1048) allows old versions
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

Parameter DividendPayingToken.dividendOf(address)._owner (#839) is not in mixedCase
Parameter DividendPayingToken.withdrawableDividendOf(address)._owner (#846) is not in mixedCase
Parameter DividendPayingToken.withdrawnDividendOf(address)._owner (#853) is not in mixedCase
Parameter DividendPayingToken.accumulativeDividendOf(address)._owner (#863) is not in mixedCase
Variable DividendPayingToken.BUSD (#765) is not in mixedCase
Constant DividendPayingToken.magnitude (#771) is not in UPPER_CASE_WITH_UNDERSCORES
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#994) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#995) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#1012) is not in mixedCase
Function IUniswapV2Router01.WETH() (#1052) is not in mixedCase
Parameter MoonAstronauts.setMaxSelltx(uint256)._maxSellTxAmount (#1374) is not in mixedCase
Parameter MoonAstronauts.setEnableAntiBot(bool)._enable (#1378) is not in mixedCase
Parameter MoonAstronauts.setMarketingFee(uint256)._marketingFee (#1400) is not in mixedCase
Parameter MoonAstronauts.setStakingandBurn(uint256)._StakingandBurn (#1406) is not in mixedCase
Parameter MoonAstronauts.whitelist(address)._address (#1412) is not in mixedCase
Variable MoonAstronauts.BUSD (#1211) is not in mixedCase
Variable MoonAstronauts._isBlacklisted (#1216) is not in mixedCase
Variable MoonAstronauts._isWhiteListed (#1217) is not in mixedCase
Variable MoonAstronauts.BUSDRewardsFee (#1220) is not in mixedCase
Variable MoonAstronauts.StakingandBurn (#1223) is not in mixedCase
Variable MoonAstronauts._marketingWalletAddress (#1226) is not in mixedCase
Variable MoonAstronauts._stackingWalletAddress (#1227) is not in mixedCase
Parameter MoonAstronautsDividendTracker.getAccount(address)._account (#1767) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Redundant expression "this (#121)" inContext (#115-124)
Remove redundant statements if they congest code but offer no value.

Additional information: link

Reentrancy in MoonAstronauts._transfer(address,address,uint256) (#1522-1611):
External calls:
- address(_marketingWalletAddress).transfer(marketingShare) (#1566)
- address(_stackingWalletAddress).transfer(buybackShare) (#1567)
External calls sending eth:
- address(_marketingWalletAddress).transfer(marketingShare) (#1566)
- address(_stackingWalletAddress).transfer(buybackShare) (#1567)
- swapAndLiquify(swapTokens) (#1570)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1684-1691)
State variables written after the call(s):
- swapAndLiquify(swapTokens) (#1570)
- _allowances[owner][spender] = amount (#547)
- swapAndSendDividends(sellTokens) (#1573)
- _allowances[owner][spender] = amount (#547)
- super._transfer(from,address(this),fees) (#1593)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#481)
- _balances[recipient] = _balances[recipient].add(amount) (#482)
- super._transfer(from,to,amount) (#1596)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#481)
- _balances[recipient] = _balances[recipient].add(amount) (#482)
- swapping = false (#1575)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#548)
- swapAndLiquify(swapTokens) (#1570)
- Approval(owner,spender,amount) (#548)
- swapAndSendDividends(sellTokens) (#1573)
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1605)
- SendDividends(tokens,dividends) (#1702)
- swapAndSendDividends(sellTokens) (#1573)
- SwapAndLiquify(half,newBalance,otherHalf) (#1634)
- swapAndLiquify(swapTokens) (#1570)
- Transfer(sender,recipient,amount) (#483)
- super._transfer(from,address(this),fees) (#1593)
- Transfer(sender,recipient,amount) (#483)
- super._transfer(from,to,amount) (#1596)
Apply the check-effects-interactions pattern.

Additional information: link

Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#1057) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#1058)
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#818) is too similar to MoonAstronautsDividendTracker.getAccount(address).withdrawableDividends (#1772)
Prevent variables from having similar names.

Additional information: link

MoonAstronauts.constructor() (#1279-1322) uses literals with too many digits:
- _mint(owner(),1000000000 * (10 ** 9)) (#1321)
MoonAstronauts.updateGasForProcessing(uint256) (#1443-1448) uses literals with too many digits:
- require(bool,string)(newValue >= 200000 && newValue <= 800000,MoonAstronauts : gasForProcessing must be between 200,000 and 500,000) (#1444)
MoonAstronauts.slitherConstructorVariables() (#1197-1705) uses literals with too many digits:
- deadWallet = 0x000000000000000000000000000000000000dEaD (#1209)
MoonAstronauts.slitherConstructorVariables() (#1197-1705) uses literals with too many digits:
- swapTokensAtAmount = 1000000 * (10 ** 9) (#1213)
MoonAstronauts.slitherConstructorVariables() (#1197-1705) uses literals with too many digits:
- maxSellTransactionAmount = 10000000 * 10 ** 9 (#1214)
MoonAstronauts.slitherConstructorVariables() (#1197-1705) uses literals with too many digits:
- gasForProcessing = 300000 (#1231)
MoonAstronautsDividendTracker.constructor() (#1727-1730) uses literals with too many digits:
- minimumTokenBalanceForDividends = 200000 * (10 ** 9) (#1729)
MoonAstronautsDividendTracker.getAccountAtIndex(uint256) (#1812-1829) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (#1823)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

SafeMathInt.MAX_INT256 (#590) is never used in SafeMathInt (#588-646)
Remove unused state variables.

Additional information: link

MoonAstronauts.deadWallet (#1209) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

name() should be declared external:
- ERC20.name() (#323-325)
symbol() should be declared external:
- ERC20.symbol() (#331-333)
decimals() should be declared external:
- ERC20.decimals() (#348-350)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#374-377)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#382-384)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#393-396)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#411-419)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#433-436)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#452-455)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#737-740)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#746-750)
distributeBUSDDividends(uint256) should be declared external:
- DividendPayingToken.distributeBUSDDividends(uint256) (#796-807)
withdrawDividend() should be declared external:
- DividendPayingToken.withdrawDividend() (#811-813)
- MoonAstronautsDividendTracker.withdrawDividend() (#1736-1738)
dividendOf(address) should be declared external:
- DividendPayingToken.dividendOf(address) (#839-841)
withdrawnDividendOf(address) should be declared external:
- DividendPayingToken.withdrawnDividendOf(address) (#853-855)
get(IterableMapping.Map,address) should be declared external:
- IterableMapping.get(IterableMapping.Map,address) (#926-928)
getIndexOfKey(IterableMapping.Map,address) should be declared external:
- IterableMapping.getIndexOfKey(IterableMapping.Map,address) (#930-935)
getKeyAtIndex(IterableMapping.Map,uint256) should be declared external:
- IterableMapping.getKeyAtIndex(IterableMapping.Map,uint256) (#937-939)
size(IterableMapping.Map) should be declared external:
- IterableMapping.size(IterableMapping.Map) (#943-945)
updateDividendTracker(address) should be declared external:
- MoonAstronauts.updateDividendTracker(address) (#1328-1343)
updateUniswapV2Router(address) should be declared external:
- MoonAstronauts.updateUniswapV2Router(address) (#1345-1352)
excludeMultipleAccountsFromFees(address[],bool) should be declared external:
- MoonAstronauts.excludeMultipleAccountsFromFees(address[],bool) (#1362-1368)
setMaxSelltx(uint256) should be declared external:
- MoonAstronauts.setMaxSelltx(uint256) (#1374-1376)
setAutomatedMarketMakerPair(address,bool) should be declared external:
- MoonAstronauts.setAutomatedMarketMakerPair(address,bool) (#1420-1424)
updateGasForProcessing(uint256) should be declared external:
- MoonAstronauts.updateGasForProcessing(uint256) (#1443-1448)
isExcludedFromFees(address) should be declared external:
- MoonAstronauts.isExcludedFromFees(address) (#1462-1464)
withdrawableDividendOf(address) should be declared external:
- MoonAstronauts.withdrawableDividendOf(address) (#1466-1468)
dividendTokenBalanceOf(address) should be declared external:
- MoonAstronauts.dividendTokenBalanceOf(address) (#1470-1472)
getAccountAtIndex(uint256) should be declared external:
- MoonAstronautsDividendTracker.getAccountAtIndex(uint256) (#1812-1829)
process(uint256) should be declared external:
- MoonAstronautsDividendTracker.process(uint256) (#1856-1901)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


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.


Token is deployed only at one blockchain


Token has only one trading pair


Unable to find PancakeSwap trading pair to compute liquidity.


Unable to find PancakeSwap trading pair to compute volume.


Unable to find PancakeSwap trading pair to compute number of swaps.


Twitter account has less than 100 followers


Telegram account has relatively few subscribers


Last post in Twitter was more than 30 days ago


Unable to find Blog account (Reddit or Medium)


Unable to find Youtube account


Unable to find Discord account


Twitter account has few posts


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

Additional information: link


Unable to find token on CoinGecko

Additional information: link


Unable to find token on CoinMarketCap

Additional information: link


Unable to find token/project description on the website or on BscScan, CoinMarketCap


Unable to find token contract audit


Unable to find audit link on the website


Unable to find whitepaper link on the website


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


Token has no active CoinGecko listing / rank


Token has no active CoinMarketCap listing / rank


Young tokens have high risks of price dump / death

Price for MOON

News for MOON