MoonWay is a deflationary, yield-generating token that utilizes a democratized voting system to allow holders to vote on development decisions with the project. A community vote will be taking place this week to determine the direction the project will go: a game, a casino, or a charity. This project became entirely community driven after the developer renounced ownership and sold his tokens on launch day.
A 10% tax is applied to all transactions of which 5% is distributed to fellow MoonWay holders. The remaining 5% is added to a locked liquidity pool to generate an ever rising price floor. A total of 400 trillion tokens were burned at launch which equates to 40% of the total supply. Another 525 trillion tokens were committed to Pancakeswap for liquidity. The liquidity is locked forever, with Cake-LP sent to a dead address.
Moonway.swapAndLiquify(uint256) (#771-817) sends eth to arbitrary user
Dangerous calls:
- address(withdrawcontract).transfer(marketingAmt) (#805)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Reentrancy in Moonway._transfer(address,address,uint256) (#742-769):
External calls:
- swapAndLiquify(contractTokenBalance) (#761)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,withdrawcontract,block.timestamp) (#837-844)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#826-832)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#761)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,withdrawcontract,block.timestamp) (#837-844)
- address(withdrawcontract).transfer(marketingAmt) (#805)
- address(_devwallet).transfer(devAmt) (#809)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#768)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#666)
- _rOwned[address(this)] = _rOwned[address(this)].add(rWallet) (#674)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#910)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#886)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#887)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#935)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#959)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#912)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#936)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#961)
- _tokenTransfer(from,to,amount,takeFee) (#768)
- _rTotal = _rTotal.sub(rFee) (#596)
- _tokenTransfer(from,to,amount,takeFee) (#768)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#668)
- _tOwned[address(this)] = _tOwned[address(this)].add(tWallet) (#676)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#934)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#958)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#911)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#960)
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.
Moonway._transfer(address,address,uint256) (#742-769) uses tx.origin for authorization: require(bool,string)(! _isBlackListedBot[tx.origin],blacklisted) (#749)
Do not use tx.origin for authorization.
Additional information: link
Moonway.addLiquidity(uint256,uint256) (#835-845) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,withdrawcontract,block.timestamp) (#837-844)
Ensure that all the return values of the function calls are used.
Additional information: link
Moonway.allowance(address,address).owner (#397) shadows:
- Ownable.owner() (#188-190) (function)
Moonway._approve(address,address,uint256).owner (#720) shadows:
- Ownable.owner() (#188-190) (function)
Rename the local variables that shadow another component.
Additional information: link
solc-0.8.10 is not recommended for deployment
Pragma version=0.8.10 (#5) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
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._functionCallWithValue(address,bytes,uint256,string) (#151-173):
- (success,returndata) = target.call{value: weiValue}(data) (#158-160)
Low level call in Address.sendValue(address,uint256) (#101-111):
- (success) = recipient.call{value: amount}() (#106)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Redundant expression "this (#88)" inContext (#83-91)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable Moonway._transferToExcluded(address,address,uint256).rTransferAmount (#902) is too similar to Moonway._getTValues(uint256).tTransferAmount (#611)
Variable Moonway._transferStandard(address,address,uint256).rTransferAmount (#878) is too similar to Moonway._getTValues(uint256).tTransferAmount (#611)
Variable Moonway._getRValues(uint256,uint256,uint256,uint256,uint256).rTransferAmount (#636-639) is too similar to Moonway._transferToExcluded(address,address,uint256).tTransferAmount (#897)
Variable Moonway._transferFromExcluded(address,address,uint256).rTransferAmount (#926) is too similar to Moonway._getTValues(uint256).tTransferAmount (#611)
Variable Moonway._transferBothExcluded(address,address,uint256).rTransferAmount (#950) is too similar to Moonway._transferFromExcluded(address,address,uint256).tTransferAmount (#921)
Variable Moonway._transferToExcluded(address,address,uint256).rTransferAmount (#902) is too similar to Moonway._transferToExcluded(address,address,uint256).tTransferAmount (#897)
Variable Moonway.reflectionFromToken(uint256,bool).rTransferAmount (#455) is too similar to Moonway._transferToExcluded(address,address,uint256).tTransferAmount (#897)
Variable Moonway._transferBothExcluded(address,address,uint256).rTransferAmount (#950) is too similar to Moonway._getTValues(uint256).tTransferAmount (#611)
Variable Moonway.reflectionFromToken(uint256,bool).rTransferAmount (#455) is too similar to Moonway._transferStandard(address,address,uint256).tTransferAmount (#873)
Variable Moonway._transferStandard(address,address,uint256).rTransferAmount (#878) is too similar to Moonway._transferStandard(address,address,uint256).tTransferAmount (#873)
Variable Moonway._getRValues(uint256,uint256,uint256,uint256,uint256).rTransferAmount (#636-639) is too similar to Moonway._getTValues(uint256).tTransferAmount (#611)
Variable Moonway._transferFromExcluded(address,address,uint256).rTransferAmount (#926) is too similar to Moonway._transferFromExcluded(address,address,uint256).tTransferAmount (#921)
Variable Moonway._transferFromExcluded(address,address,uint256).rTransferAmount (#926) is too similar to Moonway._transferStandard(address,address,uint256).tTransferAmount (#873)
Variable Moonway._transferToExcluded(address,address,uint256).rTransferAmount (#902) is too similar to Moonway._transferBothExcluded(address,address,uint256).tTransferAmount (#945)
Variable Moonway._getRValues(uint256,uint256,uint256,uint256,uint256).rTransferAmount (#636-639) is too similar to Moonway._transferStandard(address,address,uint256).tTransferAmount (#873)
Variable Moonway._transferBothExcluded(address,address,uint256).rTransferAmount (#950) is too similar to Moonway._transferToExcluded(address,address,uint256).tTransferAmount (#897)
Variable Moonway._transferToExcluded(address,address,uint256).rTransferAmount (#902) is too similar to Moonway._transferFromExcluded(address,address,uint256).tTransferAmount (#921)
Variable Moonway.reflectionFromToken(uint256,bool).rTransferAmount (#455) is too similar to Moonway._transferBothExcluded(address,address,uint256).tTransferAmount (#945)
Variable Moonway._transferBothExcluded(address,address,uint256).rTransferAmount (#950) is too similar to Moonway._transferStandard(address,address,uint256).tTransferAmount (#873)
Variable Moonway._transferStandard(address,address,uint256).rTransferAmount (#878) is too similar to Moonway._transferFromExcluded(address,address,uint256).tTransferAmount (#921)
Variable Moonway._transferBothExcluded(address,address,uint256).rTransferAmount (#950) is too similar to Moonway._transferBothExcluded(address,address,uint256).tTransferAmount (#945)
Variable Moonway.reflectionFromToken(uint256,bool).rTransferAmount (#455) is too similar to Moonway._getTValues(uint256).tTransferAmount (#611)
Variable Moonway._transferToExcluded(address,address,uint256).rTransferAmount (#902) is too similar to Moonway._transferStandard(address,address,uint256).tTransferAmount (#873)
Variable Moonway._getRValues(uint256,uint256,uint256,uint256,uint256).rTransferAmount (#636-639) is too similar to Moonway._transferFromExcluded(address,address,uint256).tTransferAmount (#921)
Variable Moonway._transferStandard(address,address,uint256).rTransferAmount (#878) is too similar to Moonway._transferBothExcluded(address,address,uint256).tTransferAmount (#945)
Variable Moonway._transferStandard(address,address,uint256).rTransferAmount (#878) is too similar to Moonway._transferToExcluded(address,address,uint256).tTransferAmount (#897)
Variable Moonway._getRValues(uint256,uint256,uint256,uint256,uint256).rTransferAmount (#636-639) is too similar to Moonway._transferBothExcluded(address,address,uint256).tTransferAmount (#945)
Variable Moonway._transferFromExcluded(address,address,uint256).rTransferAmount (#926) is too similar to Moonway._transferBothExcluded(address,address,uint256).tTransferAmount (#945)
Variable Moonway.reflectionFromToken(uint256,bool).rTransferAmount (#455) is too similar to Moonway._transferFromExcluded(address,address,uint256).tTransferAmount (#921)
Variable Moonway._transferFromExcluded(address,address,uint256).rTransferAmount (#926) is too similar to Moonway._transferToExcluded(address,address,uint256).tTransferAmount (#897)
Prevent variables from having similar names.
Additional information: link
Ownable._previousOwner (#177) is never used in Moonway (#250-976)
Ownable._lockTime (#178) is never used in Moonway (#250-976)
Remove unused state variables.
Additional information: link
Moonway.swapAndLiquify(uint256) (#771-817) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - (buyFee.liquidity + sellFee.liquidity)) (#788-789)
-devAmt = unitBalance * 2 * (buyFee.dev + sellFee.dev) (#799-802)
Moonway.swapAndLiquify(uint256) (#771-817) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - (buyFee.liquidity + sellFee.liquidity)) (#788-789)
-marketingAmt = unitBalance * 2 * (buyFee.marketing + sellFee.marketing) (#796-798)
Moonway.swapAndLiquify(uint256) (#771-817) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - (buyFee.liquidity + sellFee.liquidity)) (#788-789)
-unitBalance * 2 * (buyFee.dev + sellFee.dev) > address(this).balance (#799-802)
Moonway.swapAndLiquify(uint256) (#771-817) performs a multiplication on the result of a division:
-unitBalance = deltaBalance / (denominator - (buyFee.liquidity + sellFee.liquidity)) (#788-789)
-bnbToAddLiquidityWith = unitBalance * (buyFee.liquidity + sellFee.liquidity) (#790-791)
Consider ordering multiplication before division.
Additional information: link
Moonway.setMultisig(address)._multisig (#389) lacks a zero-check on :
- multisig = _multisig (#390)
Moonway.openTrading(address)._withdrawcontract (#727) lacks a zero-check on :
- withdrawcontract = _withdrawcontract (#738)
Check that the address is not zero.
Additional information: link
Moonway.swapAndLiquify(uint256) (#771-817) has external calls inside a loop: address(withdrawcontract).transfer(marketingAmt) (#805)
Moonway.addLiquidity(uint256,uint256) (#835-845) has external calls inside a loop: uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,withdrawcontract,block.timestamp) (#837-844)
Moonway.swapAndLiquify(uint256) (#771-817) has external calls inside a loop: address(_devwallet).transfer(devAmt) (#809)
Moonway.swapTokensForEth(uint256) (#819-833) has external calls inside a loop: uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#826-832)
Moonway.swapTokensForEth(uint256) (#819-833) has external calls inside a loop: path[1] = uniswapV2Router.WETH() (#822)
Favor pull over push strategy for external calls.
Additional information: link
Reentrancy in Moonway._transfer(address,address,uint256) (#742-769):
External calls:
- swapAndLiquify(contractTokenBalance) (#761)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,withdrawcontract,block.timestamp) (#837-844)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#826-832)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#761)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,withdrawcontract,block.timestamp) (#837-844)
- address(withdrawcontract).transfer(marketingAmt) (#805)
- address(_devwallet).transfer(devAmt) (#809)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#768)
- _devFee = buyFee.dev (#706)
- _devFee = sellFee.dev (#713)
- _devFee = 0 (#699)
- _tokenTransfer(from,to,amount,takeFee) (#768)
- _liquidityFee = sellFee.liquidity (#711)
- _liquidityFee = 0 (#697)
- _liquidityFee = buyFee.liquidity (#704)
- _tokenTransfer(from,to,amount,takeFee) (#768)
- _marketingFee = buyFee.marketing (#705)
- _marketingFee = sellFee.marketing (#712)
- _marketingFee = 0 (#698)
- _tokenTransfer(from,to,amount,takeFee) (#768)
- _tFeeTotal = _tFeeTotal.add(tFee) (#597)
- _tokenTransfer(from,to,amount,takeFee) (#768)
- _taxFee = sellFee.tax (#710)
- _taxFee = 0 (#696)
- _taxFee = buyFee.tax (#703)
Reentrancy in Moonway.swapAndLiquify(uint256) (#771-817):
External calls:
- swapTokensForEth(toSwap) (#785)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#826-832)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#794)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,withdrawcontract,block.timestamp) (#837-844)
External calls sending eth:
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#794)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,withdrawcontract,block.timestamp) (#837-844)
State variables written after the call(s):
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#794)
- _allowances[owner][spender] = amount (#723)
Reentrancy in Moonway.transferFrom(address,address,uint256) (#403-414):
External calls:
- _transfer(sender,recipient,amount) (#404)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,withdrawcontract,block.timestamp) (#837-844)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#826-832)
External calls sending eth:
- _transfer(sender,recipient,amount) (#404)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,withdrawcontract,block.timestamp) (#837-844)
- address(withdrawcontract).transfer(marketingAmt) (#805)
- address(_devwallet).transfer(devAmt) (#809)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#405-412)
- _allowances[owner][spender] = amount (#723)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Moonway._transfer(address,address,uint256) (#742-769):
External calls:
- swapAndLiquify(contractTokenBalance) (#761)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,withdrawcontract,block.timestamp) (#837-844)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#826-832)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#761)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,withdrawcontract,block.timestamp) (#837-844)
- address(withdrawcontract).transfer(marketingAmt) (#805)
- address(_devwallet).transfer(devAmt) (#809)
Event emitted after the call(s):
- Transfer(sender,recipient,tTransferAmount) (#891)
- _tokenTransfer(from,to,amount,takeFee) (#768)
- Transfer(sender,recipient,tTransferAmount) (#916)
- _tokenTransfer(from,to,amount,takeFee) (#768)
- Transfer(sender,recipient,tTransferAmount) (#940)
- _tokenTransfer(from,to,amount,takeFee) (#768)
- Transfer(sender,recipient,tTransferAmount) (#965)
- _tokenTransfer(from,to,amount,takeFee) (#768)
Reentrancy in Moonway.swapAndLiquify(uint256) (#771-817):
External calls:
- swapTokensForEth(toSwap) (#785)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#826-832)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#794)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,withdrawcontract,block.timestamp) (#837-844)
External calls sending eth:
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#794)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,withdrawcontract,block.timestamp) (#837-844)
- address(withdrawcontract).transfer(marketingAmt) (#805)
- address(_devwallet).transfer(devAmt) (#809)
Event emitted after the call(s):
- SwapAndLiquify(toSwap,deltaBalance,tokensToAddLiquidityWith) (#812-816)
Reentrancy in Moonway.transferFrom(address,address,uint256) (#403-414):
External calls:
- _transfer(sender,recipient,amount) (#404)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,withdrawcontract,block.timestamp) (#837-844)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#826-832)
External calls sending eth:
- _transfer(sender,recipient,amount) (#404)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,withdrawcontract,block.timestamp) (#837-844)
- address(withdrawcontract).transfer(marketingAmt) (#805)
- address(_devwallet).transfer(devAmt) (#809)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#724)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#405-412)
Reentrancy in Moonway.swapAndLiquify(uint256) (#771-817):
External calls:
- swapTokensForEth(toSwap) (#785)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#826-832)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#794)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,withdrawcontract,block.timestamp) (#837-844)
External calls sending eth:
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#794)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,withdrawcontract,block.timestamp) (#837-844)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#724)
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#794)
Apply the check-effects-interactions pattern.
Additional information: link
Address.isContract(address) (#93-100) uses assembly
- INLINE ASM (#96-98)
Address._functionCallWithValue(address,bytes,uint256,string) (#151-173) uses assembly
- INLINE ASM (#165-168)
Do not use evm assembly.
Additional information: link
Moonway.setBuy() (#702-707) has costly operations inside a loop:
- _taxFee = buyFee.tax (#703)
Moonway.lockTheSwap() (#336-340) has costly operations inside a loop:
- inSwapAndLiquify = false (#339)
Moonway._reflectFee(uint256,uint256) (#595-598) has costly operations inside a loop:
- _tFeeTotal = _tFeeTotal.add(tFee) (#597)
Moonway.includeInReward(address) (#523-535) has costly operations inside a loop:
- _excluded.pop() (#530)
Moonway.setSell() (#709-714) has costly operations inside a loop:
- _taxFee = sellFee.tax (#710)
Moonway.setSell() (#709-714) has costly operations inside a loop:
- _liquidityFee = sellFee.liquidity (#711)
Moonway.setSell() (#709-714) has costly operations inside a loop:
- _devFee = sellFee.dev (#713)
Moonway.setBuy() (#702-707) has costly operations inside a loop:
- _liquidityFee = buyFee.liquidity (#704)
Moonway.setSell() (#709-714) has costly operations inside a loop:
- _marketingFee = sellFee.marketing (#712)
Moonway.lockTheSwap() (#336-340) has costly operations inside a loop:
- inSwapAndLiquify = true (#337)
Moonway.removeAllFee() (#695-700) has costly operations inside a loop:
- _devFee = 0 (#699)
Moonway.removeAllFee() (#695-700) has costly operations inside a loop:
- _taxFee = 0 (#696)
Moonway._reflectFee(uint256,uint256) (#595-598) has costly operations inside a loop:
- _rTotal = _rTotal.sub(rFee) (#596)
Moonway.removeAllFee() (#695-700) has costly operations inside a loop:
- _marketingFee = 0 (#698)
Moonway.removeAllFee() (#695-700) has costly operations inside a loop:
- _liquidityFee = 0 (#697)
Moonway.removeBotFromBlacklist(address) (#498-511) has costly operations inside a loop:
- _blackListedBots.pop() (#506)
Moonway.setBuy() (#702-707) has costly operations inside a loop:
- _marketingFee = buyFee.marketing (#705)
Moonway.setBuy() (#702-707) has costly operations inside a loop:
- _devFee = buyFee.dev (#706)
Use a local variable to hold the loop computation result.
Additional information: link
Address.sendValue(address,uint256) (#101-111) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#125-137) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#73-80) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#138-149) is never used and should be removed
Context._msgData() (#87-90) is never used and should be removed
SafeMath.mod(uint256,uint256) (#70-72) is never used and should be removed
Address._functionCallWithValue(address,bytes,uint256,string) (#151-173) is never used and should be removed
Address.isContract(address) (#93-100) is never used and should be removed
Address.functionCall(address,bytes,string) (#118-124) is never used and should be removed
Address.functionCall(address,bytes) (#112-117) is never used and should be removed
Remove unused functions.
Additional information: link
Parameter Moonway.setSwapAndLiquifyEnabled(bool)._enabled (#588) is not in mixedCase
Constant Moonway._decimals (#257) is not in UPPER_CASE_WITH_UNDERSCORES
Parameter Moonway.setFees(uint16,uint16,uint16,uint16,uint16,uint16,uint16,uint16).buy_liquidity (#549) is not in mixedCase
Parameter Moonway.setFees(uint16,uint16,uint16,uint16,uint16,uint16,uint16,uint16).buy_marketing (#550) is not in mixedCase
Variable Moonway._isExcludedFromFee (#262) is not in mixedCase
Parameter Moonway.setFees(uint16,uint16,uint16,uint16,uint16,uint16,uint16,uint16).sell_marketing (#554) is not in mixedCase
Constant Moonway._tTotal (#269) is not in UPPER_CASE_WITH_UNDERSCORES
Parameter Moonway.setFees(uint16,uint16,uint16,uint16,uint16,uint16,uint16,uint16).sell_dev (#555) is not in mixedCase
Parameter Moonway.openTrading(address)._withdrawcontract (#727) is not in mixedCase
Parameter Moonway.setFees(uint16,uint16,uint16,uint16,uint16,uint16,uint16,uint16).sell_tax (#552) is not in mixedCase
Variable Moonway._isBlackListedBot (#265) is not in mixedCase
Variable Moonway._isExcluded (#263) is not in mixedCase
Parameter Moonway.setFees(uint16,uint16,uint16,uint16,uint16,uint16,uint16,uint16).buy_tax (#548) is not in mixedCase
Constant Moonway._name (#255) is not in UPPER_CASE_WITH_UNDERSCORES
Parameter Moonway.calculateLiquidityFee(uint256)._amount (#683) is not in mixedCase
Parameter Moonway.calculateMarketingFee(uint256)._amount (#687) is not in mixedCase
Constant Moonway._symbol (#256) is not in UPPER_CASE_WITH_UNDERSCORES
Parameter Moonway.setFees(uint16,uint16,uint16,uint16,uint16,uint16,uint16,uint16).buy_dev (#551) is not in mixedCase
Event MoonwayincludeUserInReward(address) (#315) is not in CapWords
Parameter Moonway.setFees(uint16,uint16,uint16,uint16,uint16,uint16,uint16,uint16).sell_liquidity (#553) is not in mixedCase
Parameter Moonway.setMultisig(address)._multisig (#389) is not in mixedCase
Parameter Moonway.calculateDevFee(uint256)._amount (#691) is not in mixedCase
Function IUniswapV2Router01.WETH() (#223) is not in mixedCase
Event MoonwaybotAddedToBlacklist(address) (#309) is not in CapWords
Parameter Moonway.calculateTaxFee(uint256)._amount (#679) is not in mixedCase
Event MoonwayexcludeUserFromFees(address) (#316) is not in CapWords
Event MoonwayincludeUserInFees(address) (#317) is not in CapWords
Event MoonwaybotRemovedFromBlacklist(address) (#310) is not in CapWords
Event MoonwayexcludeUserFromReward(address) (#314) is not in CapWords
Follow the Solidity naming convention.
Additional information: link
Reentrancy in Moonway.excessFundWithdrawal() (#580-586):
External calls:
- address(withdrawcontract).transfer(amountBNB) (#583)
Event emitted after the call(s):
- RecoverFunds() (#584)
Reentrancy in Moonway._transfer(address,address,uint256) (#742-769):
External calls:
- swapAndLiquify(contractTokenBalance) (#761)
- address(withdrawcontract).transfer(marketingAmt) (#805)
- address(_devwallet).transfer(devAmt) (#809)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#761)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,withdrawcontract,block.timestamp) (#837-844)
- address(withdrawcontract).transfer(marketingAmt) (#805)
- address(_devwallet).transfer(devAmt) (#809)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#768)
- _devFee = buyFee.dev (#706)
- _devFee = sellFee.dev (#713)
- _devFee = 0 (#699)
- _tokenTransfer(from,to,amount,takeFee) (#768)
- _liquidityFee = sellFee.liquidity (#711)
- _liquidityFee = 0 (#697)
- _liquidityFee = buyFee.liquidity (#704)
- _tokenTransfer(from,to,amount,takeFee) (#768)
- _marketingFee = buyFee.marketing (#705)
- _marketingFee = sellFee.marketing (#712)
- _marketingFee = 0 (#698)
- _tokenTransfer(from,to,amount,takeFee) (#768)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#666)
- _rOwned[address(this)] = _rOwned[address(this)].add(rWallet) (#674)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#910)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#886)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#887)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#935)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#959)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#912)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#936)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#961)
- _tokenTransfer(from,to,amount,takeFee) (#768)
- _rTotal = _rTotal.sub(rFee) (#596)
- _tokenTransfer(from,to,amount,takeFee) (#768)
- _tFeeTotal = _tFeeTotal.add(tFee) (#597)
- _tokenTransfer(from,to,amount,takeFee) (#768)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#668)
- _tOwned[address(this)] = _tOwned[address(this)].add(tWallet) (#676)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#934)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#958)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#911)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#960)
- _tokenTransfer(from,to,amount,takeFee) (#768)
- _taxFee = sellFee.tax (#710)
- _taxFee = 0 (#696)
- _taxFee = buyFee.tax (#703)
Event emitted after the call(s):
- Transfer(sender,recipient,tTransferAmount) (#891)
- _tokenTransfer(from,to,amount,takeFee) (#768)
- Transfer(sender,recipient,tTransferAmount) (#916)
- _tokenTransfer(from,to,amount,takeFee) (#768)
- Transfer(sender,recipient,tTransferAmount) (#940)
- _tokenTransfer(from,to,amount,takeFee) (#768)
- Transfer(sender,recipient,tTransferAmount) (#965)
- _tokenTransfer(from,to,amount,takeFee) (#768)
Reentrancy in Moonway.swapAndLiquify(uint256) (#771-817):
External calls:
- address(withdrawcontract).transfer(marketingAmt) (#805)
- address(_devwallet).transfer(devAmt) (#809)
External calls sending eth:
- addLiquidity(tokensToAddLiquidityWith,bnbToAddLiquidityWith) (#794)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,withdrawcontract,block.timestamp) (#837-844)
- address(withdrawcontract).transfer(marketingAmt) (#805)
- address(_devwallet).transfer(devAmt) (#809)
Event emitted after the call(s):
- SwapAndLiquify(toSwap,deltaBalance,tokensToAddLiquidityWith) (#812-816)
Reentrancy in Moonway.transferFrom(address,address,uint256) (#403-414):
External calls:
- _transfer(sender,recipient,amount) (#404)
- address(withdrawcontract).transfer(marketingAmt) (#805)
- address(_devwallet).transfer(devAmt) (#809)
External calls sending eth:
- _transfer(sender,recipient,amount) (#404)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,withdrawcontract,block.timestamp) (#837-844)
- address(withdrawcontract).transfer(marketingAmt) (#805)
- address(_devwallet).transfer(devAmt) (#809)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#405-412)
- _allowances[owner][spender] = amount (#723)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#724)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#405-412)
Apply the check-effects-interactions pattern.
Additional information: link
Ownable._previousOwner (#177) should be constant
Ownable._lockTime (#178) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
isExcludedFromFee(address) should be declared external:
- Moonway.isExcludedFromFee(address) (#716-718)
reflectionFromToken(uint256,bool) should be declared external:
- Moonway.reflectionFromToken(uint256,bool) (#451-468)
setSwapTreshold(uint256) should be declared external:
- Moonway.setSwapTreshold(uint256) (#445-449)
isExcludedFromReward(address) should be declared external:
- Moonway.isExcludedFromReward(address) (#437-439)
allowance(address,address) should be declared external:
- Moonway.allowance(address,address) (#397-398)
totalFees() should be declared external:
- Moonway.totalFees() (#441-443)
multiSendTokens(address[],uint256[]) should be declared external:
- Moonway.multiSendTokens(address[],uint256[]) (#968-974)
Use the external attribute for functions never called from the contract.
Additional information: link
Average 30d PancakeSwap liquidity is less than $100. Token is either dead or inactive.
Average 30d PancakeSwap volume is less than $100. Token is either dead or inactive.
Average 30d number of PancakeSwap swaps is less than 1. Token is either dead or inactive.
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Token is deployed only at one blockchain
Token has only one trading pair
Contract has 7% buy tax and 7% sell tax.
Taxes are low and contract ownership is renounced.
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 price dump / death
Young tokens have high risks of price dump / death
Token has relatively low CoinGecko rank
Telegram account has relatively few subscribers
Unable to find Youtube account
Unable to find Discord account