Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
MoonShinji._claimBNBTo(address,address,uint256) (#572-583) sends eth to arbitrary user
Dangerous calls:
- (sent) = to.call{value: (amountWei)}() (#579)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in MoonShinji._claimBNBTo(address,address,uint256) (#572-583):
External calls:
- (sent) = to.call{value: (amountWei)}() (#579)
State variables written after the call(s):
- _isWithdrawing = false (#581)
Reentrancy in MoonShinji._taxedTransfer(address,address,uint256,bool,bool) (#895-942):
External calls:
- claimToken(recipient,MainReward,0) (#916)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,addr,block.timestamp) (#548-552)
- _swapContractToken(AutoLPThreshold,false) (#933)
- _pancakeRouter.addLiquidityETH{value: bnbamount}(address(this),tokenamount,0,0,address(this),block.timestamp) (#858-865)
- _pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(amount,0,path,address(this),block.timestamp) (#846-852)
- (sent) = to.call{value: (amountWei)}() (#579)
External calls sending eth:
- claimToken(recipient,MainReward,0) (#916)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,addr,block.timestamp) (#548-552)
- _swapContractToken(AutoLPThreshold,false) (#933)
- _pancakeRouter.addLiquidityETH{value: bnbamount}(address(this),tokenamount,0,0,address(this),block.timestamp) (#858-865)
- (sent) = to.call{value: (amountWei)}() (#579)
State variables written after the call(s):
- _removeToken(sender,amount) (#937)
- _balances[addr] = newAmount (#751)
- _balances[addr] = newAmount (#757)
- _addToken(address(this),contractToken) (#938)
- _balances[addr] = newAmount (#733)
- _balances[addr] = newAmount (#739)
- _balances[addr] = newAmount (#744)
- _addToken(recipient,taxedAmount) (#940)
- _balances[addr] = newAmount (#733)
- _balances[addr] = newAmount (#739)
- _balances[addr] = newAmount (#744)
- _swapContractToken(AutoLPThreshold,false) (#933)
- _isWithdrawing = true (#575)
- _isWithdrawing = false (#581)
- _removeToken(sender,amount) (#937)
- _totalShares -= amount (#754)
- _addToken(address(this),contractToken) (#938)
- _totalShares += amount (#736)
- _addToken(recipient,taxedAmount) (#940)
- _totalShares += amount (#736)
- _removeToken(sender,amount) (#937)
- alreadyPaidMain[addr] = mainRewardShare * newAmount (#758)
- _addToken(address(this),contractToken) (#938)
- alreadyPaidMain[addr] = mainRewardShare * newAmount (#740)
- _addToken(recipient,taxedAmount) (#940)
- alreadyPaidMain[addr] = mainRewardShare * newAmount (#740)
- _swapContractToken(AutoLPThreshold,false) (#933)
- alreadyPaidMisc[addr] = miscRewardShare * _balances[addr] (#594)
- _removeToken(sender,amount) (#937)
- alreadyPaidMisc[addr] = miscRewardShare * newAmount (#760)
- _addToken(address(this),contractToken) (#938)
- alreadyPaidMisc[addr] = miscRewardShare * newAmount (#742)
- _addToken(recipient,taxedAmount) (#940)
- alreadyPaidMisc[addr] = miscRewardShare * newAmount (#742)
- _swapContractToken(AutoLPThreshold,false) (#933)
- mainRewardShare += ((MainAmount * DistributionMultiplier) / totalShares) (#795)
- _swapContractToken(AutoLPThreshold,false) (#933)
- miscRewardShare += ((MiscAmount * DistributionMultiplier) / totalShares) (#796)
- _removeToken(sender,amount) (#937)
- toBePaidMain[addr] += mainPayment (#759)
- _addToken(address(this),contractToken) (#938)
- toBePaidMain[addr] += mainPayment (#741)
- _addToken(recipient,taxedAmount) (#940)
- toBePaidMain[addr] += mainPayment (#741)
- _swapContractToken(AutoLPThreshold,false) (#933)
- toBePaidMisc[addr] -= amount (#590)
- toBePaidMisc[addr] += newAmount (#595)
- toBePaidMisc[addr] -= amount (#596)
- _removeToken(sender,amount) (#937)
- toBePaidMisc[addr] += miscPayment (#761)
- _addToken(address(this),contractToken) (#938)
- toBePaidMisc[addr] += miscPayment (#743)
- _addToken(recipient,taxedAmount) (#940)
- toBePaidMisc[addr] += miscPayment (#743)
- _swapContractToken(AutoLPThreshold,false) (#933)
- totalPayouts += amountWei (#578)
Reentrancy in MoonShinji.claimToken(address,address,uint256) (#511-556):
External calls:
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,addr,block.timestamp) (#548-552)
State variables written after the call(s):
- _isWithdrawing = false (#555)
Apply the check-effects-interactions pattern.
Additional information: link
MoonShinji.ReleaseLP() (#655-660) ignores return value by liquidityToken.transfer(msg.sender,amount) (#659)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
MoonShinji._subtractDividents(address,uint256) (#585-598) uses a dangerous strict equality:
- amount == 0 (#586)
MoonShinji.claimToken(address,address,uint256) (#511-556) uses a dangerous strict equality:
- amount == 0 && payableAmount == 0 (#537)
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.
MoonShinji.constructor() (#433-464) ignores return value by _excluded.add(msg.sender) (#454)
MoonShinji.constructor() (#433-464) ignores return value by _excluded.add(MarketingWallet) (#455)
MoonShinji.constructor() (#433-464) ignores return value by _excluded.add(Developer) (#456)
MoonShinji.constructor() (#433-464) ignores return value by _excluded.add(address(this)) (#457)
MoonShinji.constructor() (#433-464) ignores return value by _excluded.add(BurnAddress) (#458)
MoonShinji.constructor() (#433-464) ignores return value by _excludedFromStaking.add(address(this)) (#459)
MoonShinji.constructor() (#433-464) ignores return value by _excludedFromStaking.add(BurnAddress) (#460)
MoonShinji.constructor() (#433-464) ignores return value by _excludedFromStaking.add(address(_pancakeRouter)) (#461)
MoonShinji.constructor() (#433-464) ignores return value by _excludedFromStaking.add(_pancakePairAddress) (#462)
MoonShinji.RemoveLP() (#663-679) ignores return value by liquidityToken.approve(address(_pancakeRouter),amount) (#668)
MoonShinji.RemoveLP() (#663-679) ignores return value by _pancakeRouter.removeLiquidityETHSupportingFeeOnTransferTokens(address(this),amount,0,0,address(this),block.timestamp) (#669-676)
MoonShinji._addLiquidity(uint256,uint256) (#855-866) ignores return value by _pancakeRouter.addLiquidityETH{value: bnbamount}(address(this),tokenamount,0,0,address(this),block.timestamp) (#858-865)
MoonShinji.ExcludeFromStaking(address) (#1041-1052) ignores return value by _excludedFromStaking.add(addr) (#1050)
MoonShinji.IncludeMeToStaking() (#1055-1061) ignores return value by _excludedFromStaking.remove(msg.sender) (#1058)
MoonShinji.IncludeToStaking(address) (#1064-1071) ignores return value by _excludedFromStaking.remove(addr) (#1067)
MoonShinji.SetMarketingWallet(address) (#1087-1093) ignores return value by _excluded.remove(prevMarketing) (#1089)
MoonShinji.SetMarketingWallet(address) (#1087-1093) ignores return value by _excluded.add(MarketingWallet) (#1091)
MoonShinji.SetDevWallet(address) (#1097-1103) ignores return value by _excluded.remove(prevDev) (#1099)
MoonShinji.SetDevWallet(address) (#1097-1103) ignores return value by _excluded.add(Developer) (#1101)
MoonShinji.ExcludeAccountFromFees(address) (#1107-1110) ignores return value by _excluded.add(account) (#1108)
MoonShinji.IncludeAccountToFees(address) (#1113-1116) ignores return value by _excluded.remove(account) (#1114)
MoonShinji.setPresale(address) (#1118-1121) ignores return value by _excluded.add(presaleAddress) (#1119)
MoonShinji.setPresale(address) (#1118-1121) ignores return value by _excludedFromStaking.add(presaleAddress) (#1120)
Ensure that all the return values of the function calls are used.
Additional information: link
MoonShinji.allowance(address,address)._owner (#465) shadows:
- Ownable._owner (#191) (state variable)
MoonShinji._approve(address,address,uint256).owner (#472) shadows:
- Ownable.owner() (#198-200) (function)
Rename the local variables that shadow another component.
Additional information: link
MoonShinji._distributeStake(uint256,bool) (#776-800) performs a multiplication on the result of a division:
-StakingSplit = (BNBamount * _stakingTax) / totalRatio (#781)
-MainAmount = (StakingSplit * _MainRewardSplit) / 100 (#782)
MoonShinji._distributeStake(uint256,bool) (#776-800) performs a multiplication on the result of a division:
-StakingSplit = (BNBamount * _stakingTax) / totalRatio (#781)
-MiscAmount = (StakingSplit * _MiscRewardSplit) / 100 (#783)
MoonShinji._distributeStake(uint256,bool) (#776-800) performs a multiplication on the result of a division:
-MainAmount = (StakingSplit * _MainRewardSplit) / 100 (#782)
-mainRewardShare += ((MainAmount * DistributionMultiplier) / totalShares) (#795)
MoonShinji._distributeStake(uint256,bool) (#776-800) performs a multiplication on the result of a division:
-MiscAmount = (StakingSplit * _MiscRewardSplit) / 100 (#783)
-miscRewardShare += ((MiscAmount * DistributionMultiplier) / totalShares) (#796)
MoonShinji._swapContractToken(uint16,bool) (#811-839) performs a multiplication on the result of a division:
-tokenToSwap = _balances[_pancakePairAddress] * permilleOfPancake / 1000 (#817)
-tokenForLiquidity = (tokenToSwap * _liquidityTax) / totalTax (#826)
Consider ordering multiplication before division.
Additional information: link
MoonShinji.TriggerBuyBack(uint256) (#986-999) should emit an event for:
- BuyBackBalance -= weiAmount (#988)
MoonShinji.WithdrawDev(uint256) (#1015-1020) should emit an event for:
- DevBalance -= amount (#1017)
MoonShinji.WithdrawMarketing(uint256) (#1031-1036) should emit an event for:
- MarketingBalance -= amount (#1033)
Emit an event for critical parameter changes.
Additional information: link
MoonShinji.ChangeMiscReward(address).newReward (#632) lacks a zero-check on :
- MiscReward = newReward (#633)
MoonShinji.SetMarketingWallet(address).addr (#1087) lacks a zero-check on :
- MarketingWallet = addr (#1090)
MoonShinji.SetDevWallet(address).addr (#1097) lacks a zero-check on :
- Developer = addr (#1100)
Check that the address is not zero.
Additional information: link
Reentrancy in MoonShinji._swapContractToken(uint16,bool) (#811-839):
External calls:
- _swapTokenForBNB(swapToken) (#832)
- _pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(amount,0,path,address(this),block.timestamp) (#846-852)
- _addLiquidity(liqToken,liqBNB) (#835)
- _pancakeRouter.addLiquidityETH{value: bnbamount}(address(this),tokenamount,0,0,address(this),block.timestamp) (#858-865)
External calls sending eth:
- _addLiquidity(liqToken,liqBNB) (#835)
- _pancakeRouter.addLiquidityETH{value: bnbamount}(address(this),tokenamount,0,0,address(this),block.timestamp) (#858-865)
State variables written after the call(s):
- _distributeStake(distributeBNB,true) (#838)
- BuyBackBalance += BuyBackSplit (#786)
- _distributeStake(distributeBNB,true) (#838)
- DevBalance += DevSplit (#785)
- _distributeStake(distributeBNB,true) (#838)
- MarketingBalance += MarketingSplit (#784)
- MarketingBalance += StakingSplit (#793)
- _addLiquidity(liqToken,liqBNB) (#835)
- _allowances[owner][spender] = amount (#476)
- _distributeStake(distributeBNB,true) (#838)
- mainRewardShare += ((MainAmount * DistributionMultiplier) / totalShares) (#795)
- _distributeStake(distributeBNB,true) (#838)
- miscRewardShare += ((MiscAmount * DistributionMultiplier) / totalShares) (#796)
- _distributeStake(distributeBNB,true) (#838)
- totalRewards += StakingSplit (#789)
Reentrancy in MoonShinji._taxedTransfer(address,address,uint256,bool,bool) (#895-942):
External calls:
- claimToken(recipient,MainReward,0) (#916)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,addr,block.timestamp) (#548-552)
- _swapContractToken(AutoLPThreshold,false) (#933)
- _pancakeRouter.addLiquidityETH{value: bnbamount}(address(this),tokenamount,0,0,address(this),block.timestamp) (#858-865)
- _pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(amount,0,path,address(this),block.timestamp) (#846-852)
- (sent) = to.call{value: (amountWei)}() (#579)
External calls sending eth:
- claimToken(recipient,MainReward,0) (#916)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,addr,block.timestamp) (#548-552)
- _swapContractToken(AutoLPThreshold,false) (#933)
- _pancakeRouter.addLiquidityETH{value: bnbamount}(address(this),tokenamount,0,0,address(this),block.timestamp) (#858-865)
- (sent) = to.call{value: (amountWei)}() (#579)
State variables written after the call(s):
- _swapContractToken(AutoLPThreshold,false) (#933)
- _allowances[owner][spender] = amount (#476)
- _circulatingSupply -= tokensToBeBurnt (#939)
Reentrancy in MoonShinji.constructor() (#433-464):
External calls:
- _pancakePairAddress = IPancakeFactory(_pancakeRouter.factory()).createPair(address(this),_pancakeRouter.WETH()) (#442)
State variables written after the call(s):
- Developer = msg.sender (#449)
- MarketingWallet = msg.sender (#448)
- MaxWallet = _totalSupply / MaxWalletDivider (#452)
- _allowances[address(this)][address(_pancakeRouter)] = type()(uint256).max (#445)
- _approve(address(this),address(_pancakeRouter),type()(uint256).max) (#463)
- _allowances[owner][spender] = amount (#476)
- _addToken(msg.sender,_totalSupply) (#443)
- _balances[addr] = newAmount (#733)
- _balances[addr] = newAmount (#739)
- _balances[addr] = newAmount (#744)
- _addToken(msg.sender,_totalSupply) (#443)
- _totalShares += amount (#736)
- _addToken(msg.sender,_totalSupply) (#443)
- alreadyPaidMain[addr] = mainRewardShare * newAmount (#740)
- _addToken(msg.sender,_totalSupply) (#443)
- alreadyPaidMisc[addr] = miscRewardShare * newAmount (#742)
- sellLimit = _totalSupply / SellLimitDivider (#451)
- _addToken(msg.sender,_totalSupply) (#443)
- toBePaidMain[addr] += mainPayment (#741)
- _addToken(msg.sender,_totalSupply) (#443)
- toBePaidMisc[addr] += miscPayment (#743)
Reentrancy in MoonShinji.transferFrom(address,address,uint256) (#497-505):
External calls:
- _transfer(sender,recipient,amount) (#498)
- _pancakeRouter.addLiquidityETH{value: bnbamount}(address(this),tokenamount,0,0,address(this),block.timestamp) (#858-865)
- _pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(amount,0,path,address(this),block.timestamp) (#846-852)
- (sent) = to.call{value: (amountWei)}() (#579)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,addr,block.timestamp) (#548-552)
External calls sending eth:
- _transfer(sender,recipient,amount) (#498)
- _pancakeRouter.addLiquidityETH{value: bnbamount}(address(this),tokenamount,0,0,address(this),block.timestamp) (#858-865)
- (sent) = to.call{value: (amountWei)}() (#579)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,addr,block.timestamp) (#548-552)
State variables written after the call(s):
- _approve(sender,msg.sender,currentAllowance - amount) (#503)
- _allowances[owner][spender] = amount (#476)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in MoonShinji._claimBNBTo(address,address,uint256) (#572-583):
External calls:
- (sent) = to.call{value: (amountWei)}() (#579)
Event emitted after the call(s):
- OnClaimBNB(from,to,amountWei) (#582)
Reentrancy in MoonShinji._swapContractToken(uint16,bool) (#811-839):
External calls:
- _swapTokenForBNB(swapToken) (#832)
- _pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(amount,0,path,address(this),block.timestamp) (#846-852)
- _addLiquidity(liqToken,liqBNB) (#835)
- _pancakeRouter.addLiquidityETH{value: bnbamount}(address(this),tokenamount,0,0,address(this),block.timestamp) (#858-865)
External calls sending eth:
- _addLiquidity(liqToken,liqBNB) (#835)
- _pancakeRouter.addLiquidityETH{value: bnbamount}(address(this),tokenamount,0,0,address(this),block.timestamp) (#858-865)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#477)
- _addLiquidity(liqToken,liqBNB) (#835)
Reentrancy in MoonShinji._swapContractToken(uint16,bool) (#811-839):
External calls:
- _swapTokenForBNB(swapToken) (#832)
- _pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(amount,0,path,address(this),block.timestamp) (#846-852)
- _addLiquidity(liqToken,liqBNB) (#835)
- _pancakeRouter.addLiquidityETH{value: bnbamount}(address(this),tokenamount,0,0,address(this),block.timestamp) (#858-865)
- _claimBNBTo(distribute,distribute,newLiq) (#838)
- (sent) = to.call{value: (amountWei)}() (#579)
External calls sending eth:
- _addLiquidity(liqToken,liqBNB) (#835)
- _pancakeRouter.addLiquidityETH{value: bnbamount}(address(this),tokenamount,0,0,address(this),block.timestamp) (#858-865)
- _claimBNBTo(distribute,distribute,newLiq) (#838)
- (sent) = to.call{value: (amountWei)}() (#579)
Event emitted after the call(s):
- OnClaimBNB(from,to,amountWei) (#582)
- _claimBNBTo(distribute,distribute,newLiq) (#838)
Reentrancy in MoonShinji._taxedTransfer(address,address,uint256,bool,bool) (#895-942):
External calls:
- claimToken(recipient,MainReward,0) (#916)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,addr,block.timestamp) (#548-552)
- _swapContractToken(AutoLPThreshold,false) (#933)
- _pancakeRouter.addLiquidityETH{value: bnbamount}(address(this),tokenamount,0,0,address(this),block.timestamp) (#858-865)
- _pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(amount,0,path,address(this),block.timestamp) (#846-852)
- (sent) = to.call{value: (amountWei)}() (#579)
External calls sending eth:
- claimToken(recipient,MainReward,0) (#916)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,addr,block.timestamp) (#548-552)
- _swapContractToken(AutoLPThreshold,false) (#933)
- _pancakeRouter.addLiquidityETH{value: bnbamount}(address(this),tokenamount,0,0,address(this),block.timestamp) (#858-865)
- (sent) = to.call{value: (amountWei)}() (#579)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#477)
- _swapContractToken(AutoLPThreshold,false) (#933)
- OnClaimBNB(from,to,amountWei) (#582)
- _swapContractToken(AutoLPThreshold,false) (#933)
- Transfer(sender,recipient,taxedAmount) (#941)
Reentrancy in MoonShinji.claimToken(address,address,uint256) (#511-556):
External calls:
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,addr,block.timestamp) (#548-552)
Event emitted after the call(s):
- OnWithdrawToken(amount,token,addr) (#554)
Reentrancy in MoonShinji.constructor() (#433-464):
External calls:
- _pancakePairAddress = IPancakeFactory(_pancakeRouter.factory()).createPair(address(this),_pancakeRouter.WETH()) (#442)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#477)
- _approve(address(this),address(_pancakeRouter),type()(uint256).max) (#463)
- Transfer(address(0),msg.sender,_totalSupply) (#444)
Reentrancy in MoonShinji.transferFrom(address,address,uint256) (#497-505):
External calls:
- _transfer(sender,recipient,amount) (#498)
- _pancakeRouter.addLiquidityETH{value: bnbamount}(address(this),tokenamount,0,0,address(this),block.timestamp) (#858-865)
- _pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(amount,0,path,address(this),block.timestamp) (#846-852)
- (sent) = to.call{value: (amountWei)}() (#579)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,addr,block.timestamp) (#548-552)
External calls sending eth:
- _transfer(sender,recipient,amount) (#498)
- _pancakeRouter.addLiquidityETH{value: bnbamount}(address(this),tokenamount,0,0,address(this),block.timestamp) (#858-865)
- (sent) = to.call{value: (amountWei)}() (#579)
- _pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,addr,block.timestamp) (#548-552)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#477)
- _approve(sender,msg.sender,currentAllowance - amount) (#503)
Apply the check-effects-interactions pattern.
Additional information: link
MoonShinji._lockLiquidityTokens(uint256) (#648-652) uses timestamp for comparisons
Dangerous comparisons:
- require(bool)(newUnlockTime > _liquidityUnlockTime) (#650)
MoonShinji.ReleaseLP() (#655-660) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp >= _liquidityUnlockTime,Not yet unlocked) (#656)
MoonShinji.RemoveLP() (#663-679) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp >= _liquidityUnlockTime,Not yet unlocked) (#664)
MoonShinji.RecoverBNB() (#682-687) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp >= _liquidityUnlockTime,Not yet unlocked) (#683)
MoonShinji.getLiquidityUnlockInSeconds() (#1205-1210) uses timestamp for comparisons
Dangerous comparisons:
- block.timestamp < _liquidityUnlockTime (#1206)
Avoid relying on block.timestamp.
Additional information: link
Address.isContract(address) (#216-220) uses assembly
- INLINE ASM (#218)
Address._verifyCallResult(bool,bytes,string) (#257-270) uses assembly
- INLINE ASM (#262-265)
Do not use evm assembly.
Additional information: link
Address._verifyCallResult(bool,bytes,string) (#257-270) is never used and should be removed
Address.functionCall(address,bytes) (#226-228) is never used and should be removed
Address.functionCall(address,bytes,string) (#229-231) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#232-234) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#235-240) is never used and should be removed
Address.functionDelegateCall(address,bytes) (#249-251) is never used and should be removed
Address.functionDelegateCall(address,bytes,string) (#252-256) is never used and should be removed
Address.functionStaticCall(address,bytes) (#241-243) is never used and should be removed
Address.functionStaticCall(address,bytes,string) (#244-248) is never used and should be removed
Address.isContract(address) (#216-220) is never used and should be removed
Address.sendValue(address,uint256) (#221-225) is never used and should be removed
EnumerableSet._at(EnumerableSet.Set,uint256) (#307-310) is never used and should be removed
EnumerableSet._length(EnumerableSet.Set) (#304-306) is never used and should be removed
EnumerableSet.add(EnumerableSet.Bytes32Set,bytes32) (#314-316) is never used and should be removed
EnumerableSet.add(EnumerableSet.UintSet,uint256) (#350-352) is never used and should be removed
EnumerableSet.at(EnumerableSet.AddressSet,uint256) (#344-346) is never used and should be removed
EnumerableSet.at(EnumerableSet.Bytes32Set,uint256) (#326-328) is never used and should be removed
EnumerableSet.at(EnumerableSet.UintSet,uint256) (#362-364) is never used and should be removed
EnumerableSet.contains(EnumerableSet.Bytes32Set,bytes32) (#320-322) is never used and should be removed
EnumerableSet.contains(EnumerableSet.UintSet,uint256) (#356-358) is never used and should be removed
EnumerableSet.length(EnumerableSet.AddressSet) (#341-343) is never used and should be removed
EnumerableSet.length(EnumerableSet.Bytes32Set) (#323-325) is never used and should be removed
EnumerableSet.length(EnumerableSet.UintSet) (#359-361) is never used and should be removed
EnumerableSet.remove(EnumerableSet.Bytes32Set,bytes32) (#317-319) is never used and should be removed
EnumerableSet.remove(EnumerableSet.UintSet,uint256) (#353-355) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version^0.8.11 (#16) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
solc-0.8.11 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 Address.sendValue(address,uint256) (#221-225):
- (success) = recipient.call{value: amount}() (#223)
Low level call in Address.functionCallWithValue(address,bytes,uint256,string) (#235-240):
- (success,returndata) = target.call{value: value}(data) (#238)
Low level call in Address.functionStaticCall(address,bytes,string) (#244-248):
- (success,returndata) = target.staticcall(data) (#246)
Low level call in Address.functionDelegateCall(address,bytes,string) (#252-256):
- (success,returndata) = target.delegatecall(data) (#254)
Low level call in MoonShinji._claimBNBTo(address,address,uint256) (#572-583):
- (sent) = to.call{value: (amountWei)}() (#579)
Low level call in MoonShinji.RemoveLP() (#663-679):
- (sent) = msg.sender.call{value: (address(this).balance)}() (#677)
Low level call in MoonShinji.RecoverBNB() (#682-687):
- (sent) = msg.sender.call{value: (address(this).balance)}() (#685)
Low level call in MoonShinji.WithdrawAllDev() (#1007-1012):
- (sent) = Developer.call{value: (amount)}() (#1010)
Low level call in MoonShinji.WithdrawDev(uint256) (#1015-1020):
- (sent) = Developer.call{value: (amount)}() (#1018)
Low level call in MoonShinji.WithdrawAllMarketing() (#1023-1028):
- (sent) = MarketingWallet.call{value: (amount)}() (#1026)
Low level call in MoonShinji.WithdrawMarketing(uint256) (#1031-1036):
- (sent) = MarketingWallet.call{value: (amount)}() (#1034)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IPancakeERC20.DOMAIN_SEPARATOR() (#44) is not in mixedCase
Function IPancakeERC20.PERMIT_TYPEHASH() (#45) is not in mixedCase
Function IPancakeRouter01.WETH() (#144) is not in mixedCase
Event MoonShinjionUpdateLPThreshold(uint16) (#708) is not in CapWords
Parameter MoonShinji.allowance(address,address)._owner (#465) is not in mixedCase
Function MoonShinji.ClaimMainReward() (#559-561) is not in mixedCase
Function MoonShinji.ClaimMiscReward() (#564-568) is not in mixedCase
Function MoonShinji.ChangeMainReward(address) (#624-628) is not in mixedCase
Function MoonShinji.ChangeMiscReward(address) (#632-635) is not in mixedCase
Function MoonShinji.LockLiquidityTokens(uint256) (#644-647) is not in mixedCase
Function MoonShinji.ReleaseLP() (#655-660) is not in mixedCase
Function MoonShinji.RemoveLP() (#663-679) is not in mixedCase
Function MoonShinji.RecoverBNB() (#682-687) is not in mixedCase
Function MoonShinji.UpdateAutoLPThreshold(uint16) (#709-714) is not in mixedCase
Parameter MoonShinji.UpdateAutoLPThreshold(uint16).Threshold (#709) is not in mixedCase
Function MoonShinji.CreateLPandBNB(uint16,bool) (#717-719) is not in mixedCase
Parameter MoonShinji.CreateLPandBNB(uint16,bool).PermilleOfPancake (#717) is not in mixedCase
Function MoonShinji.ManualBNBSwap(bool) (#870-872) is not in mixedCase
Function MoonShinji.TriggerBuyBack(uint256) (#986-999) is not in mixedCase
Function MoonShinji.BurnTokens(uint256) (#1002-1004) is not in mixedCase
Function MoonShinji.WithdrawAllDev() (#1007-1012) is not in mixedCase
Function MoonShinji.WithdrawDev(uint256) (#1015-1020) is not in mixedCase
Function MoonShinji.WithdrawAllMarketing() (#1023-1028) is not in mixedCase
Function MoonShinji.WithdrawMarketing(uint256) (#1031-1036) is not in mixedCase
Function MoonShinji.ExcludeFromStaking(address) (#1041-1052) is not in mixedCase
Function MoonShinji.IncludeMeToStaking() (#1055-1061) is not in mixedCase
Function MoonShinji.IncludeToStaking(address) (#1064-1071) is not in mixedCase
Function MoonShinji.SetMarketingWallet(address) (#1087-1093) is not in mixedCase
Function MoonShinji.SetDevWallet(address) (#1097-1103) is not in mixedCase
Function MoonShinji.ExcludeAccountFromFees(address) (#1107-1110) is not in mixedCase
Function MoonShinji.IncludeAccountToFees(address) (#1113-1116) is not in mixedCase
Function MoonShinji.UpdateTaxes(uint8,uint8,uint8,uint8,uint8,uint8,uint8,uint8,uint8) (#1129-1147) is not in mixedCase
Function MoonShinji.UpdateRewardSplit(uint8,uint8) (#1151-1157) is not in mixedCase
Parameter MoonShinji.UpdateRewardSplit(uint8,uint8).MainSplit (#1151) is not in mixedCase
Parameter MoonShinji.UpdateRewardSplit(uint8,uint8).MiscSplit (#1151) is not in mixedCase
Function MoonShinji.UpdateLimits(uint256,uint256) (#1160-1174) is not in mixedCase
Constant MoonShinji._name (#377) is not in UPPER_CASE_WITH_UNDERSCORES
Constant MoonShinji._symbol (#378) is not in UPPER_CASE_WITH_UNDERSCORES
Constant MoonShinji._decimals (#379) is not in UPPER_CASE_WITH_UNDERSCORES
Constant MoonShinji._totalSupply (#380) is not in UPPER_CASE_WITH_UNDERSCORES
Variable MoonShinji._circulatingSupply (#381) is not in mixedCase
Constant MoonShinji.MaxWalletDivider (#382) is not in UPPER_CASE_WITH_UNDERSCORES
Constant MoonShinji.SellLimitDivider (#383) is not in UPPER_CASE_WITH_UNDERSCORES
Constant MoonShinji.MaxTax (#384) is not in UPPER_CASE_WITH_UNDERSCORES
Variable MoonShinji._MainRewardSplit (#397) is not in mixedCase
Variable MoonShinji._MiscRewardSplit (#398) is not in mixedCase
Variable MoonShinji.MaxWallet (#399) is not in mixedCase
Variable MoonShinji.MarketingWallet (#401) is not in mixedCase
Variable MoonShinji.Developer (#402) is not in mixedCase
Variable MoonShinji.BurnAddress (#403) is not in mixedCase
Constant MoonShinji.blacklistBlocks (#408) is not in UPPER_CASE_WITH_UNDERSCORES
Variable MoonShinji.MainReward (#416) is not in mixedCase
Variable MoonShinji.MiscReward (#417) is not in mixedCase
Variable MoonShinji._pancakePairAddress (#419) is not in mixedCase
Variable MoonShinji.PancakeRouter (#421) is not in mixedCase
Constant MoonShinji.StakeMulti (#691) is not in UPPER_CASE_WITH_UNDERSCORES
Constant MoonShinji.DistributionMultiplier (#692) is not in UPPER_CASE_WITH_UNDERSCORES
Variable MoonShinji.MarketingBalance (#698) is not in mixedCase
Variable MoonShinji.DevBalance (#699) is not in mixedCase
Variable MoonShinji.BuyBackBalance (#700) is not in mixedCase
Variable MoonShinji.AutoLPThreshold (#701) is not in mixedCase
Variable MoonShinji.Staker (#804) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IPancakeRouter01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#64) is too similar to IPancakeRouter01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#65)
Prevent variables from having similar names.
Additional information: link
MoonShinji.slitherConstructorVariables() (#368-1218) uses literals with too many digits:
- BurnAddress = 0x000000000000000000000000000000000000dEaD (#403)
MoonShinji.slitherConstructorConstantVariables() (#368-1218) uses literals with too many digits:
- _totalSupply = 1000000000 * 10 ** _decimals (#380)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
MoonShinji.BurnAddress (#403) should be constant
MoonShinji.Staker (#804) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#205-208)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#209-213)
ClaimMainReward() should be declared external:
- MoonShinji.ClaimMainReward() (#559-561)
ClaimMiscReward() should be declared external:
- MoonShinji.ClaimMiscReward() (#564-568)
getMainBalance(address) should be declared external:
- MoonShinji.getMainBalance(address) (#611-614)
getMiscBalance(address) should be declared external:
- MoonShinji.getMiscBalance(address) (#617-620)
ChangeMainReward(address) should be declared external:
- MoonShinji.ChangeMainReward(address) (#624-628)
ChangeMiscReward(address) should be declared external:
- MoonShinji.ChangeMiscReward(address) (#632-635)
LockLiquidityTokens(uint256) should be declared external:
- MoonShinji.LockLiquidityTokens(uint256) (#644-647)
ReleaseLP() should be declared external:
- MoonShinji.ReleaseLP() (#655-660)
RemoveLP() should be declared external:
- MoonShinji.RemoveLP() (#663-679)
RecoverBNB() should be declared external:
- MoonShinji.RecoverBNB() (#682-687)
UpdateAutoLPThreshold(uint16) should be declared external:
- MoonShinji.UpdateAutoLPThreshold(uint16) (#709-714)
CreateLPandBNB(uint16,bool) should be declared external:
- MoonShinji.CreateLPandBNB(uint16,bool) (#717-719)
ManualBNBSwap(bool) should be declared external:
- MoonShinji.ManualBNBSwap(bool) (#870-872)
TriggerBuyBack(uint256) should be declared external:
- MoonShinji.TriggerBuyBack(uint256) (#986-999)
BurnTokens(uint256) should be declared external:
- MoonShinji.BurnTokens(uint256) (#1002-1004)
WithdrawAllDev() should be declared external:
- MoonShinji.WithdrawAllDev() (#1007-1012)
WithdrawDev(uint256) should be declared external:
- MoonShinji.WithdrawDev(uint256) (#1015-1020)
WithdrawAllMarketing() should be declared external:
- MoonShinji.WithdrawAllMarketing() (#1023-1028)
WithdrawMarketing(uint256) should be declared external:
- MoonShinji.WithdrawMarketing(uint256) (#1031-1036)
ExcludeFromStaking(address) should be declared external:
- MoonShinji.ExcludeFromStaking(address) (#1041-1052)
IncludeMeToStaking() should be declared external:
- MoonShinji.IncludeMeToStaking() (#1055-1061)
IncludeToStaking(address) should be declared external:
- MoonShinji.IncludeToStaking(address) (#1064-1071)
setBlacklistStatus(address[],bool) should be declared external:
- MoonShinji.setBlacklistStatus(address[],bool) (#1073-1077)
enableBlacklist(bool) should be declared external:
- MoonShinji.enableBlacklist(bool) (#1080-1083)
SetMarketingWallet(address) should be declared external:
- MoonShinji.SetMarketingWallet(address) (#1087-1093)
SetDevWallet(address) should be declared external:
- MoonShinji.SetDevWallet(address) (#1097-1103)
ExcludeAccountFromFees(address) should be declared external:
- MoonShinji.ExcludeAccountFromFees(address) (#1107-1110)
IncludeAccountToFees(address) should be declared external:
- MoonShinji.IncludeAccountToFees(address) (#1113-1116)
setPresale(address) should be declared external:
- MoonShinji.setPresale(address) (#1118-1121)
UpdateTaxes(uint8,uint8,uint8,uint8,uint8,uint8,uint8,uint8,uint8) should be declared external:
- MoonShinji.UpdateTaxes(uint8,uint8,uint8,uint8,uint8,uint8,uint8,uint8,uint8) (#1129-1147)
UpdateRewardSplit(uint8,uint8) should be declared external:
- MoonShinji.UpdateRewardSplit(uint8,uint8) (#1151-1157)
UpdateLimits(uint256,uint256) should be declared external:
- MoonShinji.UpdateLimits(uint256,uint256) (#1160-1174)
getBurntTokens() should be declared external:
- MoonShinji.getBurntTokens() (#1197-1199)
getLimits() should be declared external:
- MoonShinji.getLimits() (#1201-1203)
getLiquidityUnlockInSeconds() should be declared external:
- MoonShinji.getLiquidityUnlockInSeconds() (#1205-1210)
getTaxes() should be declared external:
- MoonShinji.getTaxes() (#1212-1214)
Use the external attribute for functions never called from the contract.
Additional information: link
Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive. Ignore for presale.
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 volume.
Unable to find PancakeSwap trading pair to compute number of swaps.
Unable to find website, listings and other project-related information
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 Telegram and Twitter accounts