MilkywayEx will innovate decentralized finance by developing a platform that allow investors to buy into new cryptocurrency projects before the tokens are publicly released and also featuring protocols to give investors sustainable growth when they adopt newly introduced projects.
Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (DividendPayingToken.sol#102-132):
External calls:
- (success) = user.call{gas: 3000,value: _withdrawableDividend}() (DividendPayingToken.sol#114)
- success_scope_0 = swapEthForCustomToken(user,_withdrawableDividendRewardsToken) (DividendPayingToken.sol#122)
- uniswapV2Router.swapExactETHForTokens{value: amt}(0,path,user,block.timestamp + 2) (DividendPayingToken.sol#247-253)
- (secondSuccess) = user.call{gas: 3000,value: _withdrawableDividendRewardsToken}() (DividendPayingToken.sol#124)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividendRewardsToken) (DividendPayingToken.sol#126)
Apply the check-effects-interactions pattern.
Additional information: link
Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains
MilkyWayExToken.changeUserClaimTokenPercentage(address,uint256) (MilkyWayExToken.sol#424-428) contains a tautology or contradiction:
- require(bool,string)(value >= 0 && value <= 100,dev: You can only set a percentage between 0 and 100!) (MilkyWayExToken.sol#426)
Fix the incorrect comparison by changing the value type or the comparison.
Additional information: link
Redundant expression "this (Context.sol#21)" inContext (Context.sol#15-24)
Remove redundant statements if they congest code but offer no value.
Additional information: link
MilkyWayExToken._transfer(address,address,uint256) (MilkyWayExToken.sol#232-316) performs a multiplication on the result of a division:
-fees = amount.mul(totalFees).div(100).div(FeeDivisor) (MilkyWayExToken.sol#282)
-fees = fees.mul(sellFeeIncreaseFactor).div(100) (MilkyWayExToken.sol#284)
Consider ordering multiplication before division.
Additional information: link
DividendPayingToken.setUserRewardsSetup(address,address,uint256) (DividendPayingToken.sol#299-308) uses tx.origin for authorization: require(bool,string)(user == tx.origin,You can only set custom tokens for yourself!) (DividendPayingToken.sol#300)
Do not use tx.origin for authorization.
Additional information: link
MilkyWayExToken._transfer(address,address,uint256).lastProcessedIndex (MilkyWayExToken.sol#308) 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
MilkyWayExToken.addLiquidity(uint256,uint256) (MilkyWayExToken.sol#358-371) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (MilkyWayExToken.sol#362-369)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendPayingToken.accumulativeDividendOf(address)._owner (DividendPayingToken.sol#337) shadows:
- Ownable._owner (Ownable.sol#8) (state variable)
Rename the local variables that shadow another component.
Additional information: link
MilkyWayExToken.updateGasForProcessing(uint256) (MilkyWayExToken.sol#174-178) should emit an event for:
- gasForProcessing = newValue (MilkyWayExToken.sol#177)
Emit an event for critical parameter changes.
Additional information: link
MilkyWayExToken.withdrawETH(address,uint256).recipient (MilkyWayExToken.sol#164) lacks a zero-check on :
- (succeed) = recipient.call{value: amount}() (MilkyWayExToken.sol#165)
Check that the address is not zero.
Additional information: link
Variable 'MilkyWayExToken._transfer(address,address,uint256).lastProcessedIndex (MilkyWayExToken.sol#308)' in MilkyWayExToken._transfer(address,address,uint256) (MilkyWayExToken.sol#232-316) potentially used before declaration: ProcessedRewardsTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (MilkyWayExToken.sol#309)
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 DividendPayingToken.swapEthForCustomToken(address,uint256) (DividendPayingToken.sol#242-254):
External calls:
- uniswapV2Router.swapExactETHForTokens{value: amt}(0,path,user,block.timestamp + 2) (DividendPayingToken.sol#247-253)
State variables written after the call(s):
- txCountRewards ++ (DividendPayingToken.sol#249)
- txCountRewardsToken[_userRewardsToken] ++ (DividendPayingToken.sol#248)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in MilkyWayExToken.swapAndLiquify(uint256) (MilkyWayExToken.sol#318-339):
External calls:
- swapTokensForEth(half) (MilkyWayExToken.sol#330)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (MilkyWayExToken.sol#349-355)
- addLiquidity(otherHalf,newBalance) (MilkyWayExToken.sol#336)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (MilkyWayExToken.sol#362-369)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (MilkyWayExToken.sol#336)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (MilkyWayExToken.sol#362-369)
Event emitted after the call(s):
- Approval(owner,spender,amount) (ERC20.sol#264)
- addLiquidity(otherHalf,newBalance) (MilkyWayExToken.sol#336)
- SwapAndLiquify(half,newBalance,otherHalf) (MilkyWayExToken.sol#338)
Apply the check-effects-interactions pattern.
Additional information: link
MilkyWayExRewardsTracker.canAutoClaim(uint256) (MilkyWayExRewardsTracker.sol#114-120) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (MilkyWayExRewardsTracker.sol#115)
- block.timestamp.sub(lastClaimTime) >= claimWait (MilkyWayExRewardsTracker.sol#119)
Avoid relying on block.timestamp.
Additional information: link
SafeMathInt.mul(int256,int256) (SafeMathInt.sol#16-23) is never used and should be removed
Remove unused functions.
Additional information: link
Low level call in MilkyWayExToken.swapAndSendDividends(uint256) (MilkyWayExToken.sol#373-378):
- (succeed) = address(rewardsTracker).call{value: dividends}() (MilkyWayExToken.sol#376)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Variable MilkyWayExToken.FeeDivisor (MilkyWayExToken.sol#47) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (IUniswapV2Router.sol#13) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (IUniswapV2Router.sol#14)
Prevent variables from having similar names.
Additional information: link
MilkyWayExToken.slitherConstructorVariables() (MilkyWayExToken.sol#16-466) uses literals with too many digits:
- gasForProcessing = 400000 (MilkyWayExToken.sol#51)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
SafeMathInt.MAX_INT256 (SafeMathInt.sol#11) is never used in SafeMathInt (SafeMathInt.sol#9-60)
Remove unused state variables.
Additional information: link
RewardsContract.marketingWallet (RewardsContract.sol#18) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (Ownable.sol#41-45)
Use the external attribute for functions never called from the contract.
Additional information: link
Young tokens have high risks of price dump / death
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of price dump / death
Token has relatively low CoinGecko rank
Token has relatively low CoinMarketCap rank
Twitter account link seems to be invalid
Unable to find Youtube account
Unable to find Discord account