🦄 MagiCorn Inu Token standards derived from Hyper Deflationary & Reflection mechanism. For using meme features in MANU, any users or holders of MANU easily get their dividend in come in BUSD stable coin without any gas cost. ❇️ 10% BUSD Reward | ❇️ Low tax: Buy 7% | Sell 10% | ❇️ Team Token Vested | ❇️ SAFU, KYC & Audited | ❇️ Fast Track CMC and CG Listing | ❇️ Huge Marketing Budget | ❇️ Tier1 CEX Listing | 🦄 Read WhitePaper: https://magicorn.io/whitepaperv1.pdf
MagiCornInu.swapAndSendDividends(uint256) (#1928-1946) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,address(this),block.timestamp) (#1933-1937)
MagiCornInu.sendBNB(address,uint256) (#1682-1687) sends eth to arbitrary user
Dangerous calls:
- (success) = recipient.call{value: amount}() (#1685)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in MagiCornInu._transfer(address,address,uint256) (#1773-1926):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(contractTokenBalance,0,path,address(this),block.timestamp) (#1819-1824)
- uniswapV2Router.addLiquidityETH{value: liquidityBNB}(address(this),liquidityTokens,0,0,DEAD,block.timestamp) (#1832-1839)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(contractTokenBalance,0,path,address(this),block.timestamp) (#1851-1856)
- sendBNB(address(marketingWallet),marketingBNB) (#1864)
- (success) = recipient.call{value: amount}() (#1685)
- swapAndSendDividends(rewardBNB) (#1870)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,address(this),block.timestamp) (#1933-1937)
- success = IERC20(rewardToken).transfer(address(dividendTracker),balanceRewardToken) (#1940)
- dividendTracker.distributeDividends(balanceRewardToken) (#1943)
- sendBNB(address(treasuryWallet),treasuryBNB) (#1875)
- (success) = recipient.call{value: amount}() (#1685)
External calls sending eth:
- uniswapV2Router.addLiquidityETH{value: liquidityBNB}(address(this),liquidityTokens,0,0,DEAD,block.timestamp) (#1832-1839)
- sendBNB(address(marketingWallet),marketingBNB) (#1864)
- (success) = recipient.call{value: amount}() (#1685)
- swapAndSendDividends(rewardBNB) (#1870)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,address(this),block.timestamp) (#1933-1937)
- sendBNB(address(treasuryWallet),treasuryBNB) (#1875)
- (success) = recipient.call{value: amount}() (#1685)
State variables written after the call(s):
- _burn(from,burnTaxTokens) (#1905)
- _balances[account] = _balances[account].sub(amount,ERC20: burn amount exceeds balance) (#1181)
- super._transfer(from,address(this),fees) (#1908)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#1165)
- _balances[recipient] = _balances[recipient].add(amount) (#1166)
- super._transfer(from,to,amount) (#1911)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#1165)
- _balances[recipient] = _balances[recipient].add(amount) (#1166)
- swapping = false (#1880)
Apply the check-effects-interactions pattern.
Additional information: link
MagiCornInu.claimStuckTokens(address) (#1666-1675) ignores return value by ERC20token.transfer(msg.sender,balance) (#1674)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains
MagiCornInu._transfer(address,address,uint256) (#1773-1926) uses a dangerous strict equality:
- launchTime == 0 && to == uniswapV2Pair && _isExcludedFromFees[from] (#1786)
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.
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.
Not a direct threat, but may indicate unreliable intentions of developer. Widespread names (e.g. Elon, King, Moon, Doge) are common among meme-tokens and scams. The allow to gain free hype and attract unexperienced investors.
MagiCornInu._transfer(address,address,uint256) (#1773-1926) performs a multiplication on the result of a division:
-fees = (amount * _totalFees) / 100 (#1898)
-burnTaxTokens = (fees * burnTaxShare) / 100 (#1903)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in MagiCornInu.updateDividendTracker(address) (#1967-1983):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1974)
- newDividendTracker.excludeFromDividends(address(this)) (#1975)
- newDividendTracker.excludeFromDividends(DEAD) (#1976)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1977)
- newDividendTracker.excludeFromDividends(address(uniswapV2Pair)) (#1978)
State variables written after the call(s):
- dividendTracker = newDividendTracker (#1982)
Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (#1259-1274):
External calls:
- success = IERC20(rewardToken).transfer(user,_withdrawableDividend) (#1264)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (#1267)
Apply the check-effects-interactions pattern.
Additional information: link
MagiCornInu._transfer(address,address,uint256).iterations (#1919) is a local variable never initialized
MagiCornInu._transfer(address,address,uint256).rewardBNB (#1867) is a local variable never initialized
MagiCornInu._transfer(address,address,uint256).liquidityTokens (#1808) is a local variable never initialized
MagiCornInu._transfer(address,address,uint256).claims (#1919) is a local variable never initialized
MagiCornInu._transfer(address,address,uint256).marketingBNB (#1861) is a local variable never initialized
MagiCornInu._transfer(address,address,uint256).lastProcessedIndex (#1919) 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
MagiCornInu._transfer(address,address,uint256) (#1773-1926) ignores return value by dividendTracker.process(gas) (#1919-1924)
MagiCornInu.claim() (#2051-2053) ignores return value by dividendTracker.processAccount(address(msg.sender),false) (#2052)
MagiCornInu._transfer(address,address,uint256) (#1773-1926) ignores return value by uniswapV2Router.addLiquidityETH{value: liquidityBNB}(address(this),liquidityTokens,0,0,DEAD,block.timestamp) (#1832-1839)
MagiCornInu.claimAddress(address) (#2055-2057) ignores return value by dividendTracker.processAccount(address(claimee),false) (#2056)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendPayingToken.constructor(string,string,address)._name (#1238) shadows:
- ERC20._name (#1095) (state variable)
DividendPayingToken.accumulativeDividendOf(address)._owner (#1288) shadows:
- Ownable._owner (#680) (state variable)
DividendPayingToken.constructor(string,string,address)._symbol (#1238) shadows:
- ERC20._symbol (#1096) (state variable)
DividendPayingToken.withdrawableDividendOf(address)._owner (#1280) shadows:
- Ownable._owner (#680) (state variable)
DividendPayingToken.dividendOf(address)._owner (#1276) shadows:
- Ownable._owner (#680) (state variable)
DividendPayingToken.withdrawnDividendOf(address)._owner (#1284) shadows:
- Ownable._owner (#680) (state variable)
Rename the local variables that shadow another component.
Additional information: link
DividendTracker.setLastProcessedIndex(uint256) (#1397-1399) should emit an event for:
- lastProcessedIndex = index (#1398)
MagiCornInu.setSwapTokensAtAmount(uint256) (#1948-1951) should emit an event for:
- swapTokensAtAmount = newAmount (#1950)
Emit an event for critical parameter changes.
Additional information: link
MagiCornInu.updateUniswapV2Router(address)._uniswapV2Pair (#1693-1694) lacks a zero-check on :
- uniswapV2Pair = _uniswapV2Pair (#1695)
DividendPayingToken.constructor(string,string,address)._rewardToken (#1238) lacks a zero-check on :
- rewardToken = _rewardToken (#1239)
Check that the address is not zero.
Additional information: link
DividendPayingToken._withdrawDividendOfUser(address) (#1259-1274) has external calls inside a loop: success = IERC20(rewardToken).transfer(user,_withdrawableDividend) (#1264)
Favor pull over push strategy for external calls.
Additional information: link
Variable 'MagiCornInu._transfer(address,address,uint256).lastProcessedIndex (#1919)' in MagiCornInu._transfer(address,address,uint256) (#1773-1926) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1920)
Variable 'MagiCornInu._transfer(address,address,uint256).iterations (#1919)' in MagiCornInu._transfer(address,address,uint256) (#1773-1926) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1920)
Variable 'MagiCornInu._transfer(address,address,uint256).claims (#1919)' in MagiCornInu._transfer(address,address,uint256) (#1773-1926) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1920)
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 DividendTracker.processAccount(address,bool) (#1545-1555):
External calls:
- amount = _withdrawDividendOfUser(account) (#1546)
- success = IERC20(rewardToken).transfer(user,_withdrawableDividend) (#1264)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (#1549)
Reentrancy in MagiCornInu.updateUniswapV2Router(address) (#1689-1696):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this),uniswapV2Router.WETH()) (#1693-1694)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#1695)
Reentrancy in MagiCornInu._transfer(address,address,uint256) (#1773-1926):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(contractTokenBalance,0,path,address(this),block.timestamp) (#1819-1824)
- uniswapV2Router.addLiquidityETH{value: liquidityBNB}(address(this),liquidityTokens,0,0,DEAD,block.timestamp) (#1832-1839)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(contractTokenBalance,0,path,address(this),block.timestamp) (#1851-1856)
- sendBNB(address(marketingWallet),marketingBNB) (#1864)
- (success) = recipient.call{value: amount}() (#1685)
- swapAndSendDividends(rewardBNB) (#1870)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,address(this),block.timestamp) (#1933-1937)
- success = IERC20(rewardToken).transfer(address(dividendTracker),balanceRewardToken) (#1940)
- dividendTracker.distributeDividends(balanceRewardToken) (#1943)
- sendBNB(address(treasuryWallet),treasuryBNB) (#1875)
- (success) = recipient.call{value: amount}() (#1685)
External calls sending eth:
- uniswapV2Router.addLiquidityETH{value: liquidityBNB}(address(this),liquidityTokens,0,0,DEAD,block.timestamp) (#1832-1839)
- sendBNB(address(marketingWallet),marketingBNB) (#1864)
- (success) = recipient.call{value: amount}() (#1685)
- swapAndSendDividends(rewardBNB) (#1870)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,address(this),block.timestamp) (#1933-1937)
- sendBNB(address(treasuryWallet),treasuryBNB) (#1875)
- (success) = recipient.call{value: amount}() (#1685)
State variables written after the call(s):
- _burn(from,burnTaxTokens) (#1905)
- _totalSupply = _totalSupply.sub(amount) (#1182)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in MagiCornInu.swapAndSendDividends(uint256) (#1928-1946):
External calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,address(this),block.timestamp) (#1933-1937)
- success = IERC20(rewardToken).transfer(address(dividendTracker),balanceRewardToken) (#1940)
- dividendTracker.distributeDividends(balanceRewardToken) (#1943)
External calls sending eth:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,address(this),block.timestamp) (#1933-1937)
Event emitted after the call(s):
- SendDividends(balanceRewardToken) (#1944)
Reentrancy in MagiCornInu._transfer(address,address,uint256) (#1773-1926):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(contractTokenBalance,0,path,address(this),block.timestamp) (#1819-1824)
- uniswapV2Router.addLiquidityETH{value: liquidityBNB}(address(this),liquidityTokens,0,0,DEAD,block.timestamp) (#1832-1839)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(contractTokenBalance,0,path,address(this),block.timestamp) (#1851-1856)
- sendBNB(address(marketingWallet),marketingBNB) (#1864)
- (success) = recipient.call{value: amount}() (#1685)
- swapAndSendDividends(rewardBNB) (#1870)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,address(this),block.timestamp) (#1933-1937)
- success = IERC20(rewardToken).transfer(address(dividendTracker),balanceRewardToken) (#1940)
- dividendTracker.distributeDividends(balanceRewardToken) (#1943)
- sendBNB(address(treasuryWallet),treasuryBNB) (#1875)
- (success) = recipient.call{value: amount}() (#1685)
- dividendTracker.setBalance(address(from),balanceOf(from)) (#1913)
- dividendTracker.setBalance(address(to),balanceOf(to)) (#1914)
- dividendTracker.process(gas) (#1919-1924)
External calls sending eth:
- uniswapV2Router.addLiquidityETH{value: liquidityBNB}(address(this),liquidityTokens,0,0,DEAD,block.timestamp) (#1832-1839)
- sendBNB(address(marketingWallet),marketingBNB) (#1864)
- (success) = recipient.call{value: amount}() (#1685)
- swapAndSendDividends(rewardBNB) (#1870)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,address(this),block.timestamp) (#1933-1937)
- sendBNB(address(treasuryWallet),treasuryBNB) (#1875)
- (success) = recipient.call{value: amount}() (#1685)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1920)
Reentrancy in MagiCornInu.processDividendTracker(uint256) (#2046-2049):
External calls:
- (iterations,claims,lastProcessedIndex) = dividendTracker.process(gas) (#2047)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,false,gas,tx.origin) (#2048)
Reentrancy in MagiCornInu._transfer(address,address,uint256) (#1773-1926):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(contractTokenBalance,0,path,address(this),block.timestamp) (#1819-1824)
- uniswapV2Router.addLiquidityETH{value: liquidityBNB}(address(this),liquidityTokens,0,0,DEAD,block.timestamp) (#1832-1839)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(contractTokenBalance,0,path,address(this),block.timestamp) (#1851-1856)
- sendBNB(address(marketingWallet),marketingBNB) (#1864)
- (success) = recipient.call{value: amount}() (#1685)
External calls sending eth:
- uniswapV2Router.addLiquidityETH{value: liquidityBNB}(address(this),liquidityTokens,0,0,DEAD,block.timestamp) (#1832-1839)
- sendBNB(address(marketingWallet),marketingBNB) (#1864)
- (success) = recipient.call{value: amount}() (#1685)
Event emitted after the call(s):
- SendMarketing(marketingBNB) (#1865)
Reentrancy in MagiCornInu._transfer(address,address,uint256) (#1773-1926):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(contractTokenBalance,0,path,address(this),block.timestamp) (#1819-1824)
- uniswapV2Router.addLiquidityETH{value: liquidityBNB}(address(this),liquidityTokens,0,0,DEAD,block.timestamp) (#1832-1839)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(contractTokenBalance,0,path,address(this),block.timestamp) (#1851-1856)
- sendBNB(address(marketingWallet),marketingBNB) (#1864)
- (success) = recipient.call{value: amount}() (#1685)
- swapAndSendDividends(rewardBNB) (#1870)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,address(this),block.timestamp) (#1933-1937)
- success = IERC20(rewardToken).transfer(address(dividendTracker),balanceRewardToken) (#1940)
- dividendTracker.distributeDividends(balanceRewardToken) (#1943)
External calls sending eth:
- uniswapV2Router.addLiquidityETH{value: liquidityBNB}(address(this),liquidityTokens,0,0,DEAD,block.timestamp) (#1832-1839)
- sendBNB(address(marketingWallet),marketingBNB) (#1864)
- (success) = recipient.call{value: amount}() (#1685)
- swapAndSendDividends(rewardBNB) (#1870)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,address(this),block.timestamp) (#1933-1937)
Event emitted after the call(s):
- SendDividends(balanceRewardToken) (#1944)
- swapAndSendDividends(rewardBNB) (#1870)
Reentrancy in MagiCornInu._setAutomatedMarketMakerPair(address,bool) (#1704-1713):
External calls:
- dividendTracker.excludeFromDividends(pair) (#1709)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1712)
Reentrancy in MagiCornInu.updateDividendTracker(address) (#1967-1983):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#1974)
- newDividendTracker.excludeFromDividends(address(this)) (#1975)
- newDividendTracker.excludeFromDividends(DEAD) (#1976)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1977)
- newDividendTracker.excludeFromDividends(address(uniswapV2Pair)) (#1978)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (#1980)
Reentrancy in MagiCornInu._transfer(address,address,uint256) (#1773-1926):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(contractTokenBalance,0,path,address(this),block.timestamp) (#1819-1824)
- uniswapV2Router.addLiquidityETH{value: liquidityBNB}(address(this),liquidityTokens,0,0,DEAD,block.timestamp) (#1832-1839)
External calls sending eth:
- uniswapV2Router.addLiquidityETH{value: liquidityBNB}(address(this),liquidityTokens,0,0,DEAD,block.timestamp) (#1832-1839)
Event emitted after the call(s):
- SwapAndLiquify(liquidityTokens,liquidityBNB,liquidityTokens) (#1841)
Reentrancy in MagiCornInu._transfer(address,address,uint256) (#1773-1926):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(contractTokenBalance,0,path,address(this),block.timestamp) (#1819-1824)
- uniswapV2Router.addLiquidityETH{value: liquidityBNB}(address(this),liquidityTokens,0,0,DEAD,block.timestamp) (#1832-1839)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(contractTokenBalance,0,path,address(this),block.timestamp) (#1851-1856)
- sendBNB(address(marketingWallet),marketingBNB) (#1864)
- (success) = recipient.call{value: amount}() (#1685)
- swapAndSendDividends(rewardBNB) (#1870)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,address(this),block.timestamp) (#1933-1937)
- success = IERC20(rewardToken).transfer(address(dividendTracker),balanceRewardToken) (#1940)
- dividendTracker.distributeDividends(balanceRewardToken) (#1943)
- sendBNB(address(treasuryWallet),treasuryBNB) (#1875)
- (success) = recipient.call{value: amount}() (#1685)
External calls sending eth:
- uniswapV2Router.addLiquidityETH{value: liquidityBNB}(address(this),liquidityTokens,0,0,DEAD,block.timestamp) (#1832-1839)
- sendBNB(address(marketingWallet),marketingBNB) (#1864)
- (success) = recipient.call{value: amount}() (#1685)
- swapAndSendDividends(rewardBNB) (#1870)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,address(this),block.timestamp) (#1933-1937)
- sendBNB(address(treasuryWallet),treasuryBNB) (#1875)
- (success) = recipient.call{value: amount}() (#1685)
Event emitted after the call(s):
- SendTreasury(treasuryBNB) (#1876)
- Transfer(account,address(0),amount) (#1183)
- _burn(from,burnTaxTokens) (#1905)
- Transfer(sender,recipient,amount) (#1167)
- super._transfer(from,to,amount) (#1911)
- Transfer(sender,recipient,amount) (#1167)
- super._transfer(from,address(this),fees) (#1908)
Reentrancy in DividendTracker.processAccount(address,bool) (#1545-1555):
External calls:
- amount = _withdrawDividendOfUser(account) (#1546)
- success = IERC20(rewardToken).transfer(user,_withdrawableDividend) (#1264)
Event emitted after the call(s):
- Claim(account,amount,automatic) (#1550)
Apply the check-effects-interactions pattern.
Additional information: link
DividendTracker.getAccount(address) (#1409-1452) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (#1449-1451)
MagiCornInu._transfer(address,address,uint256) (#1773-1926) uses timestamp for comparisons
Dangerous comparisons:
- launchTime + 60 > block.timestamp && to == uniswapV2Pair && antibotSystemEnable (#1782)
- launchTime == 0 && to == uniswapV2Pair && _isExcludedFromFees[from] (#1786)
DividendTracker.canAutoClaim(uint256) (#1473-1479) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#1474)
- block.timestamp.sub(lastClaimTime) >= claimWait (#1478)
Avoid relying on block.timestamp.
Additional information: link
SafeMathInt.div(int256,int256) (#777-783) is never used and should be removed
SafeMathInt.abs(int256) (#794-797) is never used and should be removed
SafeMathInt.mul(int256,int256) (#769-776) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#759-762) is never used and should be removed
SafeMath.div(uint256,uint256,string) (#747-753) is never used and should be removed
Context._msgData() (#674-676) is never used and should be removed
SafeMath.mod(uint256,uint256) (#755-757) is never used and should be removed
SafeMath.div(uint256,uint256) (#743-745) is never used and should be removed
DividendPayingToken._transfer(address,address,uint256) (#1293-1299) is never used and should be removed
Remove unused functions.
Additional information: link
solc-0.8.16 is not recommended for deployment
Pragma version0.8.16 (#667) 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 MagiCornInu.sendBNB(address,uint256) (#1682-1687):
- (success) = recipient.call{value: amount}() (#1685)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Parameter MagiCornInu.updateShare(uint256,uint256,uint256,uint256,uint256)._burnTaxShare (#1763) is not in mixedCase
Parameter MagiCornInu.updateShare(uint256,uint256,uint256,uint256,uint256)._liquidityShare (#1763) is not in mixedCase
Parameter DividendTracker.getAccount(address)._account (#1409) is not in mixedCase
Parameter MagiCornInu.updateShare(uint256,uint256,uint256,uint256,uint256)._marketingShare (#1763) is not in mixedCase
Parameter DividendTracker.updateMinimumTokenBalanceForDividends(uint256)._newMinimumBalance (#1361) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#899) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#916) is not in mixedCase
Constant DividendPayingToken.magnitude (#1229) is not in UPPER_CASE_WITH_UNDERSCORES
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#898) is not in mixedCase
Parameter MagiCornInu.updateSellFees(uint256)._totalSellFee (#1733) is not in mixedCase
Parameter MagiCornInu.updateBuyFees(uint256)._totalBuyFee (#1727) is not in mixedCase
Parameter MagiCornInu.setAntibotSystem(bool)._antibotSystemEnable (#1759) is not in mixedCase
Parameter MagiCornInu.changeTreasuryWallet(address)._treasuryWallet (#1746) is not in mixedCase
Parameter DividendPayingToken.dividendOf(address)._owner (#1276) is not in mixedCase
Variable MagiCornInu.DEAD (#1576) is not in mixedCase
Parameter DividendPayingToken.withdrawnDividendOf(address)._owner (#1284) is not in mixedCase
Parameter MagiCornInu.changeMarketingWallet(address)._marketingWallet (#1739) is not in mixedCase
Parameter DividendPayingToken.withdrawableDividendOf(address)._owner (#1280) is not in mixedCase
Constant MagiCornInu.rewardToken (#1586) is not in UPPER_CASE_WITH_UNDERSCORES
Parameter MagiCornInu.updateShare(uint256,uint256,uint256,uint256,uint256)._rewardShare (#1763) is not in mixedCase
Function IUniswapV2Router01.WETH() (#936) is not in mixedCase
Parameter DividendPayingToken.accumulativeDividendOf(address)._owner (#1288) is not in mixedCase
Parameter MagiCornInu.updateShare(uint256,uint256,uint256,uint256,uint256)._treasuryShare (#1763) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#941) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#942)
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#1260) is too similar to DividendTracker.getAccount(address).withdrawableDividends (#1414)
Prevent variables from having similar names.
Additional information: link
DividendTracker.getAccountAtIndex(uint256) (#1454-1471) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (#1465)
MagiCornInu.updateGasForProcessing(uint256) (#1985-1990) uses literals with too many digits:
- require(bool,string)(newValue >= 200000 && newValue <= 500000,gasForProcessing must be between 200,000 and 500,000) (#1986)
MagiCornInu.slitherConstructorVariables() (#1559-2071) uses literals with too many digits:
- gasForProcessing = 300000 (#1587)
MagiCornInu.setSwapTokensAtAmount(uint256) (#1948-1951) uses literals with too many digits:
- require(bool,string)(newAmount > totalSupply() / 100000,SwapTokensAtAmount must be greater than 0.001% of total supply) (#1949)
MagiCornInu.slitherConstructorVariables() (#1559-2071) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#1576)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
SafeMathInt.MAX_INT256 (#767) is never used in SafeMathInt (#765-802)
Remove unused state variables.
Additional information: link
MagiCornInu.DEAD (#1576) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
get(IterableMapping.Map,address) should be declared external:
- IterableMapping.get(IterableMapping.Map,address) (#820-822)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#1137-1145)
getKeyAtIndex(IterableMapping.Map,uint256) should be declared external:
- IterableMapping.getKeyAtIndex(IterableMapping.Map,uint256) (#831-833)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#697-699)
getAccountAtIndex(uint256) should be declared external:
- DividendTracker.getAccountAtIndex(uint256) (#1454-1471)
dividendTokenBalanceOf(address) should be declared external:
- MagiCornInu.dividendTokenBalanceOf(address) (#2012-2014)
dividendOf(address) should be declared external:
- DividendPayingToken.dividendOf(address) (#1276-1278)
getIndexOfKey(IterableMapping.Map,address) should be declared external:
- IterableMapping.getIndexOfKey(IterableMapping.Map,address) (#824-829)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#1152-1155)
withdrawDividend() should be declared external:
- DividendPayingToken.withdrawDividend() (#1255-1257)
- DividendTracker.withdrawDividend() (#1357-1359)
process(uint256) should be declared external:
- DividendTracker.process(uint256) (#1498-1543)
symbol() should be declared external:
- ERC20.symbol() (#1107-1109)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#1123-1126)
totalRewardsEarned(address) should be declared external:
- MagiCornInu.totalRewardsEarned(address) (#2016-2018)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#1147-1150)
size(IterableMapping.Map) should be declared external:
- IterableMapping.size(IterableMapping.Map) (#835-837)
distributeDividends(uint256) should be declared external:
- DividendPayingToken.distributeDividends(uint256) (#1242-1253)
updateDividendTracker(address) should be declared external:
- MagiCornInu.updateDividendTracker(address) (#1967-1983)
name() should be declared external:
- ERC20.name() (#1103-1105)
isExcludedFromRewards(address) should be declared external:
- DividendTracker.isExcludedFromRewards(address) (#1386-1388)
isExcludedFromFees(address) should be declared external:
- MagiCornInu.isExcludedFromFees(address) (#1723-1725)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#1132-1135)
updateGasForProcessing(uint256) should be declared external:
- MagiCornInu.updateGasForProcessing(uint256) (#1985-1990)
withdrawableDividendOf(address) should be declared external:
- MagiCornInu.withdrawableDividendOf(address) (#2008-2010)
withdrawnDividendOf(address) should be declared external:
- DividendPayingToken.withdrawnDividendOf(address) (#1284-1286)
isExcludedFromRewards(address) should be declared external:
- MagiCornInu.isExcludedFromRewards(address) (#1963-1965)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#1128-1130)
Use the external attribute for functions never called from the contract.
Additional information: link
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Unable to find audit link on the website
Unable to find token on CoinGecko
Additional information: link
Unable to find Telegram link on the website
Unable to find token on CoinMarketCap
Additional information: link
Token is not listed at Mobula.Finance
Additional information: link
Unable to find token on CoinHunt
Additional information: link
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Token is relatively young, but twitter if very old (probably it's fake).
Unable to find Blog account (Reddit or Medium)
Unable to find Discord account