Meta Shiba Inu is an innovative meme token for gaming and stable income. Meta Shiba Inu (MSHIB) reward system is a revolutionary new staking method. Meta Shiba Inu will open a doorway to METAVERSE through its conclusive integration method to monetize VR gaming platform.
MSHIB.swapBackInBnb() (#1045-1098) sends eth to arbitrary user
Dangerous calls:
- (treasurySuccess) = address(treasuryWallet).call{gas: 30000,value: tokensToTreasury}() (#1079-1082)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in MSHIB._transferFrom(address,address,uint256) (#796-849):
External calls:
- swapBackInBnb() (#820)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1162-1169)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1130-1136)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1149-1155)
- (marketingSuccess) = address(marketingWallet).call{gas: 30000,value: tokensToMarketing}() (#1072-1075)
- (treasurySuccess) = address(treasuryWallet).call{gas: 30000,value: tokensToTreasury}() (#1079-1082)
- IERC20(REWARD).transfer(address(dividendTracker),swappedTokens) (#1090)
- dividendTracker.deposit(swappedTokens) (#1091)
External calls sending eth:
- swapBackInBnb() (#820)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1162-1169)
- (marketingSuccess) = address(marketingWallet).call{gas: 30000,value: tokensToMarketing}() (#1072-1075)
- (treasurySuccess) = address(treasuryWallet).call{gas: 30000,value: tokensToTreasury}() (#1079-1082)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#824-827)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#832)
- amountReceived = takeFee(sender,amount,recipient) (#829-831)
- _balances[DEAD] = _balances[DEAD].add(burnAmount) (#889)
- _balances[DEAD] = _balances[DEAD].add(burnAmount) (#896)
- _balances[address(this)] = _balances[address(this)].add(feeAmount.sub(burnAmount)) (#901-903)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.purge(address) (#409-412) ignores return value by REWARD.transfer(receiver,balance) (#411)
DividendDistributor.distributeDividend(address) (#481-498) ignores return value by REWARD.transfer(shareholder,amount) (#489)
MSHIB.getBep20Tokens(address,uint256) (#923-932) ignores return value by IERC20(_tokenAddress).transfer(msg.sender,amount) (#931)
MSHIB.swapBackInBnb() (#1045-1098) ignores return value by IERC20(REWARD).transfer(address(dividendTracker),swappedTokens) (#1090)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Too many vulnerabilities (Unchecked transfer, Reentrancy vulnerability, etc.). High risk of a scam. DYOR & manual audit are advised.
Contract locking ether found:
Contract DividendDistributor (#352-580) has payable functions:
- DividendDistributor.receive() (#399)
But does not have a function to withdraw the ether
Remove the payable attribute or add a withdraw function.
Additional information: link
MSHIB.swapBackInBnb().marketingSuccess (#1072) is written in both
(marketingSuccess) = address(marketingWallet).call{gas: 30000,value: tokensToMarketing}() (#1072-1075)
marketingSuccess = false (#1076)
MSHIB.swapBackInBnb().treasurySuccess (#1079) is written in both
(treasurySuccess) = address(treasuryWallet).call{gas: 30000,value: tokensToTreasury}() (#1079-1082)
treasurySuccess = false (#1083)
Fix or remove the writes.
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.
Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains
Contract ownership is not renounced (belongs to a wallet)
MSHIB.takeFee(address,uint256,address) (#877-907) performs a multiplication on the result of a division:
-feeAmount = amount.mul(sellTotalFees).div(10000) (#886)
-burnAmount = feeAmount.mul(sellBurnFee).div(sellTotalFees) (#888)
MSHIB.takeFee(address,uint256,address) (#877-907) performs a multiplication on the result of a division:
-feeAmount = amount.mul(sellTotalFees).div(10000) (#886)
-burnAmount = feeAmount.mul(buyBurnFee).div(buyTotalFees) (#895)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in DividendDistributor.distributeDividend(address) (#481-498):
External calls:
- REWARD.transfer(shareholder,amount) (#489)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised.add(amount) (#491-493)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#494-496)
Reentrancy in DividendDistributor.process(uint256) (#443-469):
External calls:
- distributeDividend(shareholders[currentIndex]) (#461)
- REWARD.transfer(shareholder,amount) (#489)
State variables written after the call(s):
- currentIndex ++ (#466)
Reentrancy in DividendDistributor.setShare(address,uint256) (#414-434):
External calls:
- distributeDividend(shareholder) (#420)
- REWARD.transfer(shareholder,amount) (#489)
State variables written after the call(s):
- shares[shareholder].amount = amount (#430)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#431-433)
Apply the check-effects-interactions pattern.
Additional information: link
MSHIB.addLiquidity(uint256,uint256) (#1158-1170) ignores return value by router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1162-1169)
Ensure that all the return values of the function calls are used.
Additional information: link
MSHIB._approve(address,address,uint256).owner (#760) shadows:
- Ownable.owner() (#27-29) (function)
Rename the local variables that shadow another component.
Additional information: link
DividendDistributor.setDistributionCriteria(uint256,uint256) (#401-407) should emit an event for:
- minPeriod = _minPeriod (#405)
- minDistribution = _minDistribution (#406)
DividendDistributor.deposit(uint256) (#436-441) should emit an event for:
- dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares)) (#438-440)
MSHIB.updateBuyFees(uint256,uint256,uint256,uint256,uint256) (#934-952) should emit an event for:
- buyBurnFee = burn (#944)
- buyTotalFees = reward.add(marketing).add(liquidity).add(burn).add(treasury) (#947-949)
MSHIB.updateSellFees(uint256,uint256,uint256,uint256,uint256) (#954-971) should emit an event for:
- sellBurnFee = burn (#964)
- sellTotalFees = reward.add(marketing).add(liquidity).add(burn).add(treasury) (#967-969)
MSHIB.updateSwapPercentages(uint256,uint256,uint256,uint256) (#974-986) should emit an event for:
- rewardSwap = reward (#980)
- marketingSwap = marketing (#981)
- liquiditySwap = liquidity (#982)
- treasurySwap = treasury (#983)
- totalSwap = reward.add(marketing).add(liquidity).add(treasury) (#985)
MSHIB.setDistributorSettings(uint256) (#1231-1234) should emit an event for:
- distributorGas = gas (#1233)
Emit an event for critical parameter changes.
Additional information: link
MSHIB.setMarketingWallet(address)._marketingFeeReceiver (#1200) lacks a zero-check on :
- marketingWallet = _marketingFeeReceiver (#1204)
MSHIB.setTreasuryWallet(address)._wallet (#1207) lacks a zero-check on :
- treasuryWallet = _wallet (#1208)
Check that the address is not zero.
Additional information: link
DividendDistributor.distributeDividend(address) (#481-498) has external calls inside a loop: REWARD.transfer(shareholder,amount) (#489)
MSHIB.switchToken(address,bool) (#1252-1277) has external calls inside a loop: dividendTracker.setShare(currentHolders[i],_balances[currentHolders[i]]) (#1267-1272)
Favor pull over push strategy for external calls.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#36-38)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#40-43)
getHolderDetails(address) should be declared external:
- DividendDistributor.getHolderDetails(address) (#525-539)
name() should be declared external:
- MSHIB.name() (#698-700)
symbol() should be declared external:
- MSHIB.symbol() (#702-704)
decimals() should be declared external:
- MSHIB.decimals() (#706-708)
balanceOf(address) should be declared external:
- MSHIB.balanceOf(address) (#710-712)
getHolderDetails(address) should be declared external:
- MSHIB.getHolderDetails(address) (#715-726)
getLastProcessedIndex() should be declared external:
- MSHIB.getLastProcessedIndex() (#728-730)
getNumberOfTokenHolders() should be declared external:
- MSHIB.getNumberOfTokenHolders() (#732-734)
totalDistributedRewards() should be declared external:
- MSHIB.totalDistributedRewards() (#736-738)
updateBuyFees(uint256,uint256,uint256,uint256,uint256) should be declared external:
- MSHIB.updateBuyFees(uint256,uint256,uint256,uint256,uint256) (#934-952)
updateSellFees(uint256,uint256,uint256,uint256,uint256) should be declared external:
- MSHIB.updateSellFees(uint256,uint256,uint256,uint256,uint256) (#954-971)
updateSwapPercentages(uint256,uint256,uint256,uint256) should be declared external:
- MSHIB.updateSwapPercentages(uint256,uint256,uint256,uint256) (#974-986)
enableTrading() should be declared external:
- MSHIB.enableTrading() (#989-991)
whitelistPreSale(address) should be declared external:
- MSHIB.whitelistPreSale(address) (#993-997)
___claimRewards(bool) should be declared external:
- MSHIB.___claimRewards(bool) (#1000-1005)
claimProcess() should be declared external:
- MSHIB.claimProcess() (#1008-1010)
blackListWallets(address,bool) should be declared external:
- MSHIB.blackListWallets(address,bool) (#1012-1014)
isBlacklisted(address) should be declared external:
- MSHIB.isBlacklisted(address) (#1016-1018)
isRewardExclude(address) should be declared external:
- MSHIB.isRewardExclude(address) (#1020-1022)
isFeeExclude(address) should be declared external:
- MSHIB.isFeeExclude(address) (#1024-1026)
isMaxSellExcluded(address) should be declared external:
- MSHIB.isMaxSellExcluded(address) (#1028-1030)
isMaxBuyExcluded(address) should be declared external:
- MSHIB.isMaxBuyExcluded(address) (#1032-1034)
purgeBeforeSwitch() should be declared external:
- MSHIB.purgeBeforeSwitch() (#1236-1238)
includeMeinRewards() should be declared external:
- MSHIB.includeMeinRewards() (#1240-1250)
switchToken(address,bool) should be declared external:
- MSHIB.switchToken(address,bool) (#1252-1277)
Use the external attribute for functions never called from the contract.
Additional information: link
Reentrancy in MSHIB.constructor() (#659-690):
External calls:
- pair = IUniswapV2Factory(router.factory()).createPair(router.WETH(),address(this)) (#661-664)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = type()(uint256).max (#665)
- _balances[msg.sender] = _totalSupply (#688)
- dividendTracker = new DividendDistributor(REWARD) (#667)
- isAuthorized[owner()] = true (#675)
- isDividendExempt[pair] = true (#671)
- isDividendExempt[address(this)] = true (#672)
- isDividendExempt[DEAD] = true (#673)
- isFeeExempt[msg.sender] = true (#669)
- isMaxBuyExclude[owner()] = true (#681)
- isMaxBuyExclude[pair] = true (#682)
- isMaxBuyExclude[address(this)] = true (#683)
- isMaxSellExclude[owner()] = true (#677)
- isMaxSellExclude[pair] = true (#678)
- isMaxSellExclude[address(this)] = true (#679)
- marketingWallet = 0xdEcDfB80430C6e31Cab9785AAD63f54C8495b29e (#685)
- treasuryWallet = 0x755f453c3947E5CCe77ea6e9C78733a9cc695b24 (#686)
Reentrancy in DividendDistributor.distributeDividend(address) (#481-498):
External calls:
- REWARD.transfer(shareholder,amount) (#489)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (#490)
Reentrancy in DividendDistributor.setShare(address,uint256) (#414-434):
External calls:
- distributeDividend(shareholder) (#420)
- REWARD.transfer(shareholder,amount) (#489)
State variables written after the call(s):
- addShareholder(shareholder) (#424)
- shareholderIndexes[shareholder] = shareholders.length (#567)
- removeShareholder(shareholder) (#426)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#575-577)
- addShareholder(shareholder) (#424)
- shareholders.push(shareholder) (#568)
- removeShareholder(shareholder) (#426)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#572-574)
- shareholders.pop() (#578)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (#429)
Reentrancy in MSHIB.swapAndLiquify(uint256) (#1100-1121):
External calls:
- swapTokensForEth(half) (#1112)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1130-1136)
- addLiquidity(otherHalf,newBalance) (#1118)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1162-1169)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1118)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1162-1169)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#1118)
- _allowances[owner][spender] = amount (#767)
Reentrancy in MSHIB.swapBackInBnb() (#1045-1098):
External calls:
- swapTokensForEth(tokensToSwapBnb) (#1057)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1130-1136)
- (marketingSuccess) = address(marketingWallet).call{gas: 30000,value: tokensToMarketing}() (#1072-1075)
- (treasurySuccess) = address(treasuryWallet).call{gas: 30000,value: tokensToTreasury}() (#1079-1082)
- swapTokensForTokens(tokensToRewards,REWARD) (#1087)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1149-1155)
External calls sending eth:
- (marketingSuccess) = address(marketingWallet).call{gas: 30000,value: tokensToMarketing}() (#1072-1075)
- (treasurySuccess) = address(treasuryWallet).call{gas: 30000,value: tokensToTreasury}() (#1079-1082)
State variables written after the call(s):
- swapTokensForTokens(tokensToRewards,REWARD) (#1087)
- _allowances[owner][spender] = amount (#767)
Reentrancy in MSHIB.swapBackInBnb() (#1045-1098):
External calls:
- swapTokensForEth(tokensToSwapBnb) (#1057)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1130-1136)
- (marketingSuccess) = address(marketingWallet).call{gas: 30000,value: tokensToMarketing}() (#1072-1075)
- (treasurySuccess) = address(treasuryWallet).call{gas: 30000,value: tokensToTreasury}() (#1079-1082)
- swapTokensForTokens(tokensToRewards,REWARD) (#1087)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1149-1155)
- IERC20(REWARD).transfer(address(dividendTracker),swappedTokens) (#1090)
- dividendTracker.deposit(swappedTokens) (#1091)
- swapAndLiquify(tokensToLiquidity) (#1096)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1162-1169)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1130-1136)
External calls sending eth:
- (marketingSuccess) = address(marketingWallet).call{gas: 30000,value: tokensToMarketing}() (#1072-1075)
- (treasurySuccess) = address(treasuryWallet).call{gas: 30000,value: tokensToTreasury}() (#1079-1082)
- swapAndLiquify(tokensToLiquidity) (#1096)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1162-1169)
State variables written after the call(s):
- swapAndLiquify(tokensToLiquidity) (#1096)
- _allowances[owner][spender] = amount (#767)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in MSHIB._transferFrom(address,address,uint256) (#796-849):
External calls:
- swapBackInBnb() (#820)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1162-1169)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1130-1136)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1149-1155)
- (marketingSuccess) = address(marketingWallet).call{gas: 30000,value: tokensToMarketing}() (#1072-1075)
- (treasurySuccess) = address(treasuryWallet).call{gas: 30000,value: tokensToTreasury}() (#1079-1082)
- IERC20(REWARD).transfer(address(dividendTracker),swappedTokens) (#1090)
- dividendTracker.deposit(swappedTokens) (#1091)
- dividendTracker.setShare(sender,_balances[sender]) (#836)
- dividendTracker.setShare(recipient,_balances[recipient]) (#840-842)
- dividendTracker.process(distributorGas) (#845)
External calls sending eth:
- swapBackInBnb() (#820)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1162-1169)
- (marketingSuccess) = address(marketingWallet).call{gas: 30000,value: tokensToMarketing}() (#1072-1075)
- (treasurySuccess) = address(treasuryWallet).call{gas: 30000,value: tokensToTreasury}() (#1079-1082)
Event emitted after the call(s):
- Transfer(sender,recipient,amountReceived) (#847)
Reentrancy in MSHIB._transferFrom(address,address,uint256) (#796-849):
External calls:
- swapBackInBnb() (#820)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1162-1169)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1130-1136)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1149-1155)
- (marketingSuccess) = address(marketingWallet).call{gas: 30000,value: tokensToMarketing}() (#1072-1075)
- (treasurySuccess) = address(treasuryWallet).call{gas: 30000,value: tokensToTreasury}() (#1079-1082)
- IERC20(REWARD).transfer(address(dividendTracker),swappedTokens) (#1090)
- dividendTracker.deposit(swappedTokens) (#1091)
External calls sending eth:
- swapBackInBnb() (#820)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1162-1169)
- (marketingSuccess) = address(marketingWallet).call{gas: 30000,value: tokensToMarketing}() (#1072-1075)
- (treasurySuccess) = address(treasuryWallet).call{gas: 30000,value: tokensToTreasury}() (#1079-1082)
Event emitted after the call(s):
- Transfer(sender,address(DEAD),burnAmount) (#890)
- amountReceived = takeFee(sender,amount,recipient) (#829-831)
- Transfer(sender,address(DEAD),burnAmount) (#897)
- amountReceived = takeFee(sender,amount,recipient) (#829-831)
- Transfer(sender,address(this),feeAmount.sub(burnAmount)) (#904)
- amountReceived = takeFee(sender,amount,recipient) (#829-831)
Reentrancy in MSHIB.constructor() (#659-690):
External calls:
- pair = IUniswapV2Factory(router.factory()).createPair(router.WETH(),address(this)) (#661-664)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#689)
Reentrancy in MSHIB.includeMeinRewards() (#1240-1250):
External calls:
- dividendTracker.setShare(msg.sender,_balances[msg.sender]) (#1245-1247)
Event emitted after the call(s):
- IncludeInReward(msg.sender) (#1249)
Reentrancy in MSHIB.swapAndLiquify(uint256) (#1100-1121):
External calls:
- swapTokensForEth(half) (#1112)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1130-1136)
- addLiquidity(otherHalf,newBalance) (#1118)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1162-1169)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1118)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1162-1169)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#768)
- addLiquidity(otherHalf,newBalance) (#1118)
- AutoLiquify(newBalance,otherHalf) (#1120)
Reentrancy in MSHIB.swapBackInBnb() (#1045-1098):
External calls:
- swapTokensForEth(tokensToSwapBnb) (#1057)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1130-1136)
- (marketingSuccess) = address(marketingWallet).call{gas: 30000,value: tokensToMarketing}() (#1072-1075)
- (treasurySuccess) = address(treasuryWallet).call{gas: 30000,value: tokensToTreasury}() (#1079-1082)
- swapTokensForTokens(tokensToRewards,REWARD) (#1087)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1149-1155)
External calls sending eth:
- (marketingSuccess) = address(marketingWallet).call{gas: 30000,value: tokensToMarketing}() (#1072-1075)
- (treasurySuccess) = address(treasuryWallet).call{gas: 30000,value: tokensToTreasury}() (#1079-1082)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#768)
- swapTokensForTokens(tokensToRewards,REWARD) (#1087)
Reentrancy in MSHIB.swapBackInBnb() (#1045-1098):
External calls:
- swapTokensForEth(tokensToSwapBnb) (#1057)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1130-1136)
- (marketingSuccess) = address(marketingWallet).call{gas: 30000,value: tokensToMarketing}() (#1072-1075)
- (treasurySuccess) = address(treasuryWallet).call{gas: 30000,value: tokensToTreasury}() (#1079-1082)
- swapTokensForTokens(tokensToRewards,REWARD) (#1087)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1149-1155)
- IERC20(REWARD).transfer(address(dividendTracker),swappedTokens) (#1090)
- dividendTracker.deposit(swappedTokens) (#1091)
- swapAndLiquify(tokensToLiquidity) (#1096)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1162-1169)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1130-1136)
External calls sending eth:
- (marketingSuccess) = address(marketingWallet).call{gas: 30000,value: tokensToMarketing}() (#1072-1075)
- (treasurySuccess) = address(treasuryWallet).call{gas: 30000,value: tokensToTreasury}() (#1079-1082)
- swapAndLiquify(tokensToLiquidity) (#1096)
- router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1162-1169)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#768)
- swapAndLiquify(tokensToLiquidity) (#1096)
- AutoLiquify(newBalance,otherHalf) (#1120)
- swapAndLiquify(tokensToLiquidity) (#1096)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.shouldDistribute(address) (#471-479) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#476-478)
Avoid relying on block.timestamp.
Additional information: link
DividendDistributor.process(uint256) (#443-469) has costly operations inside a loop:
- currentIndex = 0 (#457)
DividendDistributor.distributeDividend(address) (#481-498) has costly operations inside a loop:
- totalDistributed = totalDistributed.add(amount) (#488)
DividendDistributor.process(uint256) (#443-469) has costly operations inside a loop:
- currentIndex ++ (#466)
Use a local variable to hold the loop computation result.
Additional information: link
Context._msgData() (#12-14) is never used and should be removed
SafeMath.div(uint256,uint256,string) (#153-162) is never used and should be removed
SafeMath.mod(uint256,uint256) (#138-140) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#164-173) is never used and should be removed
SafeMath.tryAdd(uint256,uint256) (#84-90) is never used and should be removed
SafeMath.tryDiv(uint256,uint256) (#108-113) is never used and should be removed
SafeMath.tryMod(uint256,uint256) (#115-120) is never used and should be removed
SafeMath.tryMul(uint256,uint256) (#99-106) is never used and should be removed
SafeMath.trySub(uint256,uint256) (#92-97) is never used and should be removed
Remove unused functions.
Additional information: link
MSHIB.swapThreshold (#648) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 1) / 1000
MSHIB.maxBuyToken (#649) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 10) / 1000
MSHIB.maxSellToken (#650) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 5) / 1000
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
Low level call in MSHIB.swapBackInBnb() (#1045-1098):
- (marketingSuccess) = address(marketingWallet).call{gas: 30000,value: tokensToMarketing}() (#1072-1075)
- (treasurySuccess) = address(treasuryWallet).call{gas: 30000,value: tokensToTreasury}() (#1079-1082)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IUniswapV2Router01.WETH() (#181) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minPeriod (#402) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minDistribution (#403) is not in mixedCase
Variable DividendDistributor._token (#355) is not in mixedCase
Variable DividendDistributor.REWARD (#363) is not in mixedCase
Parameter MSHIB.getBep20Tokens(address,uint256)._tokenAddress (#923) is not in mixedCase
Parameter MSHIB.whitelistPreSale(address)._preSale (#993) is not in mixedCase
Function MSHIB.___claimRewards(bool) (#1000-1005) is not in mixedCase
Parameter MSHIB.blackListWallets(address,bool)._status (#1012) is not in mixedCase
Parameter MSHIB.isBlacklisted(address)._wallet (#1016) is not in mixedCase
Parameter MSHIB.isRewardExclude(address)._wallet (#1020) is not in mixedCase
Parameter MSHIB.isFeeExclude(address)._wallet (#1024) is not in mixedCase
Parameter MSHIB.isMaxSellExcluded(address)._wallet (#1028) is not in mixedCase
Parameter MSHIB.isMaxBuyExcluded(address)._wallet (#1032) is not in mixedCase
Parameter MSHIB.setMarketingWallet(address)._marketingFeeReceiver (#1200) is not in mixedCase
Parameter MSHIB.setTreasuryWallet(address)._wallet (#1207) is not in mixedCase
Parameter MSHIB.setSwapBackSettings(bool,uint256)._enabled (#1216) is not in mixedCase
Parameter MSHIB.setSwapBackSettings(bool,uint256)._amount (#1216) is not in mixedCase
Parameter MSHIB.setDistributionCriteria(uint256,uint256)._minPeriod (#1225) is not in mixedCase
Parameter MSHIB.setDistributionCriteria(uint256,uint256)._minDistribution (#1226) is not in mixedCase
Variable MSHIB.DEAD (#587) is not in mixedCase
Variable MSHIB.ZERO (#588) is not in mixedCase
Variable MSHIB.REWARD (#590) is not in mixedCase
Constant MSHIB._name (#592) is not in UPPER_CASE_WITH_UNDERSCORES
Constant MSHIB._symbol (#593) is not in UPPER_CASE_WITH_UNDERSCORES
Constant MSHIB._decimals (#594) is not in UPPER_CASE_WITH_UNDERSCORES
Variable MSHIB._totalSupply (#596) is not in mixedCase
Variable MSHIB._balances (#598) is not in mixedCase
Variable MSHIB._allowances (#599) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#186) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#187)
Prevent variables from having similar names.
Additional information: link
MSHIB.slitherConstructorVariables() (#584-1279) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#587)
MSHIB.slitherConstructorVariables() (#584-1279) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#588)
MSHIB.slitherConstructorVariables() (#584-1279) uses literals with too many digits:
- _totalSupply = 1000000000000000 * (10 ** _decimals) (#596)
MSHIB.slitherConstructorVariables() (#584-1279) uses literals with too many digits:
- distributorGas = 500000 (#641)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
MSHIB.ZERO (#588) is never used in MSHIB (#584-1279)
Remove unused state variables.
Additional information: link
DividendDistributor.dividendsPerShareAccuracyFactor (#375) should be constant
MSHIB.DEAD (#587) should be constant
MSHIB.ZERO (#588) should be constant
MSHIB._totalSupply (#596) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
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.
Unable to find token on CoinGecko
Additional information: link
Unable to find token on CoinMarketCap
Additional information: link
Unable to find token/project description on the website or on BscScan, CoinMarketCap
Unable to find whitepaper link on the website
Unable to find token on CoinHunt
Additional information: link
Young tokens have high risks of scam / price dump / death
Alexa traffic rank is very low
Additional information: link
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account