Reentrancy in MilkyCars._transfer(address,address,uint256) (#1569-1718):
External calls:
- swapAndSendToDevBNB(devTokens) (#1659)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1790-1796)
- swapAndSendToFee(marketingTokens) (#1664)
- IERC20(REWARD).transfer(_marketingWalletAddress,newBalance) (#1752)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1810-1816)
- swapAndSendToRecoveryBNB(recoveryTokens) (#1669)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1790-1796)
- (success) = address(_recoveryAddress).call{value: newBalance}() (#1740)
- swapAndLiquify(swapTokens) (#1674)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1825-1832)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1790-1796)
- swapAndSendDividends(sellTokens) (#1679)
- success = IERC20(REWARD).transfer(address(dividendTracker),dividends) (#1838)
- dividendTracker.distributeREWARDDividends(dividends) (#1841)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1810-1816)
External calls sending eth:
- swapAndSendToDevBNB(devTokens) (#1659)
- address(_devWalletAddress).transfer(newBalance) (#1726)
- swapAndSendToRecoveryBNB(recoveryTokens) (#1669)
- (success) = address(_recoveryAddress).call{value: newBalance}() (#1740)
- swapAndLiquify(swapTokens) (#1674)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1825-1832)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (#1700)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#641)
- _balances[recipient] = _balances[recipient].add(amount) (#642)
- super._transfer(from,to,amount) (#1703)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#641)
- _balances[recipient] = _balances[recipient].add(amount) (#642)
- swapping = false (#1682)
Apply the check-effects-interactions pattern.
Additional information: link
MilkyCars.swapAndSendToFee(uint256) (#1746-1753) ignores return value by IERC20(REWARD).transfer(_marketingWalletAddress,newBalance) (#1752)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
MilkyCars.addLiquidity(uint256,uint256) (#1819-1833) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1825-1832)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
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.
MilkyCars._transfer(address,address,uint256) (#1569-1718) performs a multiplication on the result of a division:
-_airDropAddressNextSellDate[from] = block.timestamp + (86400 * (tokensToSubtract.mul(100).div(airDropMaxSell))) / 100 (#1636)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in MilkyCars.updateDividendTracker(address) (#1354-1369):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1361)
- newDividendTracker.excludeFromDividends(address(this)) (#1362)
- newDividendTracker.excludeFromDividends(owner()) (#1363)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1364)
State variables written after the call(s):
- dividendTracker = newDividendTracker (#1368)
Apply the check-effects-interactions pattern.
Additional information: link
MilkyCars._transfer(address,address,uint256).lastProcessedIndex (#1711) 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
MilkyCars.addLiquidity(uint256,uint256) (#1819-1833) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1825-1832)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendPayingToken.accumulativeDividendOf(address)._owner (#1160) shadows:
- Ownable._owner (#378) (state variable)
Rename the local variables that shadow another component.
Additional information: link
MilkyCars.setRecoveryFee(uint256) (#1424-1432) should emit an event for:
- recoveryFee = value (#1429)
- totalFees = REWARDRewardsFee.add(liquidityFee).add(marketingFee).add(recoveryFee) (#1431)
Emit an event for critical parameter changes.
Additional information: link
MilkyCars.setMILKYWallet(address).wallet (#1399) lacks a zero-check on :
- _marketingWalletAddress = wallet (#1400)
Check that the address is not zero.
Additional information: link
Variable 'MilkyCars._transfer(address,address,uint256).lastProcessedIndex (#1711)' in MilkyCars._transfer(address,address,uint256) (#1569-1718) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1712)
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 MilkyCars.updateUniswapV2Router(address) (#1376-1383):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this),uniswapV2Router.WETH()) (#1380-1381)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#1382)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in MilkyCars.updateDividendTracker(address) (#1354-1369):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1361)
- newDividendTracker.excludeFromDividends(address(this)) (#1362)
- newDividendTracker.excludeFromDividends(owner()) (#1363)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1364)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (#1366)
Apply the check-effects-interactions pattern.
Additional information: link
MILKYDividendTracker.canAutoClaim(uint256) (#1973-1979) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#1974)
- block.timestamp.sub(lastClaimTime) >= claimWait (#1978)
Avoid relying on block.timestamp.
Additional information: link
MilkyCars.isContract(address) (#1451-1460) uses assembly
- INLINE ASM (#1458)
Do not use evm assembly.
Additional information: link
MilkyCars.airdropToWallets(address[],uint256[]) (#1463-1477) compares to a boolean constant:
-_isAirdoppedWallet[wallet] == false && ! isContract(wallet) (#1469)
Remove the equality to the boolean constant.
Additional information: link
SafeMathInt.mul(int256,int256) (#311-318) is never used and should be removed
Remove unused functions.
Additional information: link
MilkyCars.totalFees (#1246) is set pre-construction with a non-constant function or state variable:
- REWARDRewardsFee.add(liquidityFee).add(marketingFee).add(recoveryFee)
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
solc-0.8.7 is not recommended for deployment
Deploy with any of the following Solidity versions: 0.5.16 - 0.5.17, 0.6.11 - 0.6.12, 0.7.5 - 0.7.6 Use a simple pragma version that allows any of these versions. Consider using the latest version of Solidity for testing.
Additional information: link
Low level call in MilkyCars.swapAndSendToRecoveryBNB(uint256) (#1734-1744):
- (success) = address(_recoveryAddress).call{value: newBalance}() (#1740)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Parameter MILKYDividendTracker.getAccount(address)._account (#1909) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#152)" inContext (#146-155)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in MilkyCars._transfer(address,address,uint256) (#1569-1718):
External calls:
- swapAndSendToDevBNB(devTokens) (#1659)
- address(_devWalletAddress).transfer(newBalance) (#1726)
External calls sending eth:
- swapAndSendToDevBNB(devTokens) (#1659)
- address(_devWalletAddress).transfer(newBalance) (#1726)
- swapAndSendToRecoveryBNB(recoveryTokens) (#1669)
- (success) = address(_recoveryAddress).call{value: newBalance}() (#1740)
- swapAndLiquify(swapTokens) (#1674)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1825-1832)
State variables written after the call(s):
- swapAndLiquify(swapTokens) (#1674)
- _allowances[owner][spender] = amount (#707)
- swapAndSendDividends(sellTokens) (#1679)
- _allowances[owner][spender] = amount (#707)
- super._transfer(from,address(this),fees) (#1700)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#641)
- _balances[recipient] = _balances[recipient].add(amount) (#642)
- super._transfer(from,to,amount) (#1703)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#641)
- _balances[recipient] = _balances[recipient].add(amount) (#642)
- swapping = false (#1682)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#708)
- swapAndLiquify(swapTokens) (#1674)
- Approval(owner,spender,amount) (#708)
- swapAndSendDividends(sellTokens) (#1679)
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1712)
- SendDividends(tokens,dividends) (#1842)
- swapAndSendDividends(sellTokens) (#1679)
- SwapAndLiquify(half,newBalance,otherHalf) (#1775)
- swapAndLiquify(swapTokens) (#1674)
- Transfer(sender,recipient,amount) (#643)
- super._transfer(from,address(this),fees) (#1700)
- Transfer(sender,recipient,amount) (#643)
- super._transfer(from,to,amount) (#1703)
Apply the check-effects-interactions pattern.
Additional information: link
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#1115) is too similar to MILKYDividendTracker.getAccount(address).withdrawableDividends (#1914)
Prevent variables from having similar names.
Additional information: link
MILKYDividendTracker.getAccountAtIndex(uint256) (#1954-1971) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (#1965)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
SafeMathInt.MAX_INT256 (#306) is never used in SafeMathInt (#304-362)
Remove unused state variables.
Additional information: link
MilkyCars.swapTokensAtAmount (#1231) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
process(uint256) should be declared external:
- MILKYDividendTracker.process(uint256) (#1998-2043)
Use the external attribute for functions never called from the contract.
Additional information: link
Contract ticker ($MILKY) contains non-alphanumeric characters.
Not a direct threat, but may indicate unreliable intentions of developer. Non-alphanumeric chars (,.;!#*&") are extremely rare among low risk tokens.
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Number of Binance Smart Chain (BSC) token holders is low.
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.
Unable to find website, listings and other project-related information
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Young tokens have high risks of price dump / death
Unable to find Telegram and Twitter accounts