MagicDOGE is a Binance Smart Chain project with a real life utility. With MagicDOGE you can purchase thousands of products with the cheapest prices in the market. Holders of MagicDOGE are automatically rewarded in either BNB or any BSC token of their choice.
MagicDOGE.sendToOperationsWallet(uint256) (#2011-2013) sends eth to arbitrary user
Dangerous calls:
- address(operationsWallet).transfer(amount) (#2012)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in DividendPayingToken.swapETHForTokens(address,uint256) (#807-850):
External calls:
- swapRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(1,path,address(recipient),block.timestamp + 360) (#826-836)
- (success) = recipient.call{gas: 3000,value: ethAmount}() (#841)
State variables written after the call(s):
- rawBNBWithdrawnDividends[recipient] = rawBNBWithdrawnDividends[recipient].sub(ethAmount) (#845)
Apply the check-effects-interactions pattern.
Additional information: link
Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains
MagicDOGE.getHolderSellFactor(address) (#1601-1617) uses a dangerous strict equality:
- _holderLastSellDate[holder] == 0 (#1606)
Don't use strict equality to determine if an account has enough Ether or tokens.
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.
MagicDOGE._transfer(address,address,uint256) (#1769-1898) performs a multiplication on the result of a division:
-otherSellFee = amount.mul(liquidityFee).div(100).mul(getHolderSellFactor(from)).div(100) (#1872)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in MagicDOGE.updateDividendTracker(address) (#1420-1435):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1427)
- newDividendTracker.excludeFromDividends(address(this)) (#1428)
- newDividendTracker.excludeFromDividends(owner()) (#1429)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1430)
State variables written after the call(s):
- dividendTracker = newDividendTracker (#1434)
Apply the check-effects-interactions pattern.
Additional information: link
MagicDOGE._transfer(address,address,uint256).lastProcessedIndex (#1892) 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
MagicDOGE.addLiquidity(uint256,uint256) (#1978-1993) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,liquidityWallet,block.timestamp) (#1984-1991)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendPayingToken.accumulativeDividendOf(address)._owner (#993) shadows:
- Ownable._owner (#36) (state variable)
Rename the local variables that shadow another component.
Additional information: link
MagicDOGE.setMaxSellPercent(uint256) (#2015-2018) should emit an event for:
- _maxSellPercent = maxSellPercent (#2017)
Emit an event for critical parameter changes.
Additional information: link
Variable 'MagicDOGE._transfer(address,address,uint256).iterations (#1892)' in MagicDOGE._transfer(address,address,uint256) (#1769-1898) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1893)
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.swapETHForTokens(address,uint256) (#807-850):
External calls:
- swapRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(1,path,address(recipient),block.timestamp + 360) (#826-836)
- (success) = recipient.call{gas: 3000,value: ethAmount}() (#841)
State variables written after the call(s):
- withdrawnDividends[recipient] = withdrawnDividends[recipient].sub(ethAmount) (#844)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in MagicDOGE.updateDividendTracker(address) (#1420-1435):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1427)
- newDividendTracker.excludeFromDividends(address(this)) (#1428)
- newDividendTracker.excludeFromDividends(owner()) (#1429)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1430)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (#1432)
Apply the check-effects-interactions pattern.
Additional information: link
MagicDOGEDividendTracker.canAutoClaim(uint256) (#2216-2222) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#2217)
- block.timestamp.sub(lastClaimTime) >= claimWait (#2221)
Avoid relying on block.timestamp.
Additional information: link
MagicDOGE.isContract(address) (#1568-1577) uses assembly
- INLINE ASM (#1575)
Do not use evm assembly.
Additional information: link
MagicDOGE.setRewardTokenWithCustomAMM(address,address) (#1693-1701) compares to a boolean constant:
-require(bool,string)(isAMMWhitelisted(ammContractAddress) == true,MagicDOGE: setRewardToken:: AMM is not whitelisted!) (#1698)
Remove the equality to the boolean constant.
Additional information: link
SafeMathInt.mul(int256,int256) (#257-264) is never used and should be removed
Remove unused functions.
Additional information: link
MagicDOGE.totalFees (#1284) is set pre-construction with a non-constant function or state variable:
- BNBRewardsFee.add(liquidityFee)
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.6 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 MagicDOGE.swapAndSendDividends(uint256) (#1995-2003):
- (success) = address(dividendTracker).call{value: dividends}() (#1998)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Parameter MagicDOGEDividendTracker.getAccount(address)._account (#2152) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#30)" inContext (#24-33)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#937) is too similar to MagicDOGEDividendTracker.getAccount(address).withdrawableDividends (#2157)
Prevent variables from having similar names.
Additional information: link
MagicDOGEDividendTracker.getAccountAtIndex(uint256) (#2197-2214) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (#2208)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
SafeMathInt.MAX_INT256 (#252) is never used in SafeMathInt (#250-308)
Remove unused state variables.
Additional information: link
MagicDOGE.sellFeeIncreaseFactor (#1297) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
process(uint256) should be declared external:
- MagicDOGEDividendTracker.process(uint256) (#2241-2286)
Use the external attribute for functions never called from the contract.
Additional information: link
Average 30d PancakeSwap volume is less than $100. 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
Unable to find PancakeSwap trading pair to compute liquidity.
Unable to find PancakeSwap trading pair to compute number of swaps.
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Unable to find code repository for the project
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 Blog account (Reddit or Medium)
Unable to find Discord account