A new King has arisen as the one true King of Crypto.
KINGSHIBA.swapBnbForTokens(uint256) (#799-816) sends eth to arbitrary user
Dangerous calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,DEAD,block.timestamp.add(300)) (#806-813)
KINGSHIBA.swapBack() (#885-921) sends eth to arbitrary user
Dangerous calls:
- address(marketing).call{gas: 30000,value: amountBNBMarketing}() (#910)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in KINGSHIBA._transferFrom(address,address,uint256) (#711-753):
External calls:
- swapBack() (#725)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(swapThreshold,0,path,address(this),block.timestamp.add(300)) (#892-920)
- distributor.deposit{value: amountBNBReflection}() (#909)
- address(marketing).call{gas: 30000,value: amountBNBMarketing}() (#910)
- buyBackTokens() (#728)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,DEAD,block.timestamp.add(300)) (#806-813)
External calls sending eth:
- swapBack() (#725)
- distributor.deposit{value: amountBNBReflection}() (#909)
- address(marketing).call{gas: 30000,value: amountBNBMarketing}() (#910)
- buyBackTokens() (#728)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,DEAD,block.timestamp.add(300)) (#806-813)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#732-735)
- amountReceived = takeFee(sender,recipient,amount) (#737)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#778)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#738)
- buyBackTokens() (#728)
- inSwap = true (#635)
- inSwap = false (#637)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.distributeDividend(address) (#416-433) ignores return value by SHIBA.transfer(shareholder,amount) (#424)
KINGSHIBA.rescueToken(address,uint256) (#923-925) ignores return value by IBEP20(_token).transfer(msg.sender,_amount) (#924)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Combination 1: Reentrancy vulnerabilities + Functions that send Ether to arbitraty destination. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
Combination 2: Unchecked transfer + Functions that send Ether to arbitraty destination. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
Combination 3: Reentrancy vulnerabilities + Unchecked transfer vulnerability. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
Contract ownership is not renounced (belongs to a wallet)
DividendDistributor.distributeDividend(address) (#416-433) has external calls inside a loop: SHIBA.transfer(shareholder,amount) (#424)
Favor pull over push strategy for external calls.
Additional information: link
BASEToken._transferFrom(address,address,uint256) (#545-551) is never used and should be removed
Context._msgData() (#65-68) is never used and should be removed
Remove unused functions.
Additional information: link
KINGSHIBA.totalFee (#626) is set pre-construction with a non-constant function or state variable:
- burnFee.add(reflectionFee).add(marketingFee)
Remove any initialization of state variables via non-constant state variables or function calls. If variables must be set upon contract deployment, locate initialization in the constructor instead.
Additional information: link
solc-0.8.9 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 KINGSHIBA.swapBack() (#885-921):
- address(marketing).call{gas: 30000,value: amountBNBMarketing}() (#910)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Reentrancy in DividendDistributor.distributeDividend(address) (#416-433):
External calls:
- SHIBA.transfer(shareholder,amount) (#424)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised.add(amount) (#426-428)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#429-431)
Reentrancy in DividendDistributor.process(uint256) (#378-404):
External calls:
- distributeDividend(shareholders[currentIndex]) (#396)
- SHIBA.transfer(shareholder,amount) (#424)
State variables written after the call(s):
- currentIndex ++ (#401)
Reentrancy in DividendDistributor.setShare(address,uint256) (#309-335):
External calls:
- distributeDividend(shareholder) (#315)
- SHIBA.transfer(shareholder,amount) (#424)
State variables written after the call(s):
- shares[shareholder].amount = amount (#331)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#332-334)
Apply the check-effects-interactions pattern.
Additional information: link
KINGSHIBA.swapBack() (#885-921) ignores return value by address(marketing).call{gas: 30000,value: amountBNBMarketing}() (#910)
Ensure that the return value of a low-level call is checked or logged.
Additional information: link
KINGSHIBA.swapBack().e (#912) 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
DividendDistributor.setDistributionCriteria(uint256,uint256,uint256) (#299-307) should emit an event for:
- minPeriod = _minPeriod (#304)
- minDistribution = _minDistribution (#305)
KINGSHIBA.setDistributorSettings(uint256) (#698-701) should emit an event for:
- distributorGas = gas (#700)
KINGSHIBA.setTxLimit(uint256) (#818-820) should emit an event for:
- _maxTxAmount = amount (#819)
KINGSHIBA.setFees(uint256,uint256,uint256,uint256) (#843-855) should emit an event for:
- burnFee = _burnFee (#849)
- reflectionFee = _reflectionFee (#850)
- marketingFee = _marketingFee (#851)
- totalFee = _burnFee.add(_reflectionFee).add(_marketingFee) (#852)
- feeDenominator = _feeDenominator (#853)
KINGSHIBA.setSwapBackSettings(bool,uint256) (#861-867) should emit an event for:
- swapThreshold = _amount (#866)
Emit an event for critical parameter changes.
Additional information: link
KINGSHIBA.constructor().owner_ (#666) lacks a zero-check on :
- marketing = owner_ (#676)
KINGSHIBA.setMarketingWallet(address)._marketing (#857) lacks a zero-check on :
- marketing = _marketing (#858)
Check that the address is not zero.
Additional information: link
Variable 'KINGSHIBA.swapBack().e (#912)' in KINGSHIBA.swapBack() (#885-921) potentially used before declaration: SwapBackFailed(string(abi.encodePacked(SwapBack failed with error ,e))) (#913-915)
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 KINGSHIBA.constructor() (#658-683):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#660)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = ~ uint256(0) (#661)
- _balances[owner_] = _totalSupply (#678)
- _maxTxAmount = _totalSupply.div(100) (#682)
- distributor = new DividendDistributor() (#664)
- excludeDividend[pair] = true (#670)
- excludeDividend[address(this)] = true (#671)
- excludeDividend[DEAD] = true (#674)
- excludeFee[owner_] = true (#668)
- excludeFee[address(this)] = true (#672)
- excludeMaxTxn[owner_] = true (#669)
- excludeMaxTxn[address(this)] = true (#673)
- marketing = owner_ (#676)
- pairs[pair] = true (#662)
- swapThreshold = _totalSupply / 5000 (#681)
Reentrancy in DividendDistributor.deposit() (#359-376):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp) (#366-368)
State variables written after the call(s):
- dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares)) (#373-375)
- totalDividends = totalDividends.add(amount) (#372)
Reentrancy in DividendDistributor.distributeDividend(address) (#416-433):
External calls:
- SHIBA.transfer(shareholder,amount) (#424)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (#425)
Reentrancy in DividendDistributor.setShare(address,uint256) (#309-335):
External calls:
- distributeDividend(shareholder) (#315)
- SHIBA.transfer(shareholder,amount) (#424)
State variables written after the call(s):
- addShareholder(shareholder) (#322)
- shareholderIndexes[shareholder] = shareholders.length (#470)
- removeShareholder(shareholder) (#327)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#478-480)
- addShareholder(shareholder) (#322)
- shareholders.push(shareholder) (#471)
- removeShareholder(shareholder) (#327)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#475-477)
- shareholders.pop() (#481)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (#330)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in KINGSHIBA._transferFrom(address,address,uint256) (#711-753):
External calls:
- swapBack() (#725)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(swapThreshold,0,path,address(this),block.timestamp.add(300)) (#892-920)
- distributor.deposit{value: amountBNBReflection}() (#909)
- address(marketing).call{gas: 30000,value: amountBNBMarketing}() (#910)
- buyBackTokens() (#728)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,DEAD,block.timestamp.add(300)) (#806-813)
External calls sending eth:
- swapBack() (#725)
- distributor.deposit{value: amountBNBReflection}() (#909)
- address(marketing).call{gas: 30000,value: amountBNBMarketing}() (#910)
- buyBackTokens() (#728)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,DEAD,block.timestamp.add(300)) (#806-813)
Event emitted after the call(s):
- SwapBNBForTokens(amount,path) (#815)
- buyBackTokens() (#728)
- Transfer(sender,address(this),feeAmount) (#779)
- amountReceived = takeFee(sender,recipient,amount) (#737)
Reentrancy in KINGSHIBA._transferFrom(address,address,uint256) (#711-753):
External calls:
- swapBack() (#725)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(swapThreshold,0,path,address(this),block.timestamp.add(300)) (#892-920)
- distributor.deposit{value: amountBNBReflection}() (#909)
- address(marketing).call{gas: 30000,value: amountBNBMarketing}() (#910)
- buyBackTokens() (#728)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,DEAD,block.timestamp.add(300)) (#806-813)
- distributor.setShare(sender,_balances[sender]) (#741)
- distributor.setShare(recipient,_balances[recipient]) (#744-746)
- distributor.process(distributorGas) (#749)
External calls sending eth:
- swapBack() (#725)
- distributor.deposit{value: amountBNBReflection}() (#909)
- address(marketing).call{gas: 30000,value: amountBNBMarketing}() (#910)
- buyBackTokens() (#728)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,DEAD,block.timestamp.add(300)) (#806-813)
Event emitted after the call(s):
- Transfer(sender,recipient,amountReceived) (#751)
Reentrancy in KINGSHIBA.constructor() (#658-683):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#660)
Event emitted after the call(s):
- Transfer(address(0),owner_,_totalSupply) (#679)
Reentrancy in KINGSHIBA.swapBack() (#885-921):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(swapThreshold,0,path,address(this),block.timestamp.add(300)) (#892-920)
- distributor.deposit{value: amountBNBReflection}() (#909)
- address(marketing).call{gas: 30000,value: amountBNBMarketing}() (#910)
External calls sending eth:
- distributor.deposit{value: amountBNBReflection}() (#909)
- address(marketing).call{gas: 30000,value: amountBNBMarketing}() (#910)
Event emitted after the call(s):
- SwapBackSuccess(swapThreshold) (#911)
Reentrancy in KINGSHIBA.swapBack() (#885-921):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(swapThreshold,0,path,address(this),block.timestamp.add(300)) (#892-920)
Event emitted after the call(s):
- SwapBackFailed(string(abi.encodePacked(SwapBack failed with error ,e))) (#913-915)
- SwapBackFailed(SwapBack failed without an error message from pancakeSwap) (#917-919)
Reentrancy in KINGSHIBA.swapBnbForTokens(uint256) (#799-816):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,DEAD,block.timestamp.add(300)) (#806-813)
Event emitted after the call(s):
- SwapBNBForTokens(amount,path) (#815)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.getAccount(address) (#337-357) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (#354-356)
DividendDistributor.shouldDistribute(address) (#406-414) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#411-413)
Avoid relying on block.timestamp.
Additional information: link
DividendDistributor.process(uint256) (#378-404) has costly operations inside a loop:
- currentIndex = 0 (#392)
DividendDistributor.distributeDividend(address) (#416-433) has costly operations inside a loop:
- totalDistributed = totalDistributed.add(amount) (#423)
DividendDistributor.process(uint256) (#378-404) has costly operations inside a loop:
- currentIndex ++ (#401)
Use a local variable to hold the loop computation result.
Additional information: link
Function IDEXRouter.WETH() (#177) is not in mixedCase
Parameter DividendDistributor.setDex(address)._dex (#295) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256,uint256)._minPeriod (#300) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256,uint256)._minDistribution (#301) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256,uint256)._minimumTokenBalanceForDividends (#302) is not in mixedCase
Parameter DividendDistributor.getAccount(address)._account (#337) is not in mixedCase
Variable DividendDistributor._token (#248) is not in mixedCase
Variable DividendDistributor.SHIBA (#256) is not in mixedCase
Variable DividendDistributor.WBNB (#257) is not in mixedCase
Variable BASEToken.WBNB (#488) is not in mixedCase
Variable BASEToken.DEAD (#489) is not in mixedCase
Variable BASEToken.ZERO (#490) is not in mixedCase
Variable BASEToken._balances (#492) is not in mixedCase
Variable BASEToken._allowances (#493) is not in mixedCase
Variable BASEToken._name (#495) is not in mixedCase
Variable BASEToken._symbol (#496) is not in mixedCase
Variable BASEToken._decimals (#497) is not in mixedCase
Variable BASEToken._totalSupply (#498) is not in mixedCase
Parameter KINGSHIBA.setAllowTransfer(address[])._users (#652) is not in mixedCase
Parameter KINGSHIBA.changeDex(address)._dex (#685) is not in mixedCase
Parameter KINGSHIBA.changeDistributorDex(address)._dex (#689) is not in mixedCase
Parameter KINGSHIBA.setDex(address,bool)._dex (#693) is not in mixedCase
Parameter KINGSHIBA.setFees(uint256,uint256,uint256,uint256)._burnFee (#844) is not in mixedCase
Parameter KINGSHIBA.setFees(uint256,uint256,uint256,uint256)._reflectionFee (#845) is not in mixedCase
Parameter KINGSHIBA.setFees(uint256,uint256,uint256,uint256)._marketingFee (#846) is not in mixedCase
Parameter KINGSHIBA.setFees(uint256,uint256,uint256,uint256)._feeDenominator (#847) is not in mixedCase
Parameter KINGSHIBA.setMarketingWallet(address)._marketing (#857) is not in mixedCase
Parameter KINGSHIBA.setSwapBackSettings(bool,uint256)._enabled (#861) is not in mixedCase
Parameter KINGSHIBA.setSwapBackSettings(bool,uint256)._amount (#861) is not in mixedCase
Parameter KINGSHIBA.setDistributionCriteria(uint256,uint256,uint256)._minPeriod (#870) is not in mixedCase
Parameter KINGSHIBA.setDistributionCriteria(uint256,uint256,uint256)._minDistribution (#871) is not in mixedCase
Parameter KINGSHIBA.setDistributionCriteria(uint256,uint256,uint256)._minimumTokenBalanceForDividends (#872) is not in mixedCase
Parameter KINGSHIBA.rescueToken(address,uint256)._token (#923) is not in mixedCase
Parameter KINGSHIBA.rescueToken(address,uint256)._amount (#923) is not in mixedCase
Parameter KINGSHIBA.rescue(uint256)._amount (#927) is not in mixedCase
Variable KINGSHIBA._maxTxAmount (#611) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#66)" inContext (#60-69)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#182) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#183)
Variable BASEToken._totalSupply (#498) is too similar to BASEToken.constructor(string,string,uint256,uint8).totalSupply_ (#503)
Prevent variables from having similar names.
Additional information: link
DividendDistributor.slitherConstructorVariables() (#245-483) uses literals with too many digits:
- minDistribution = 400000 * (10 ** 18) (#273)
DividendDistributor.slitherConstructorVariables() (#245-483) uses literals with too many digits:
- minimumTokenBalanceForDividends = 10000000000 * (10 ** 9) (#274)
KINGSHIBA.setDistributorSettings(uint256) (#698-701) uses literals with too many digits:
- require(bool)(gas <= 1000000) (#699)
KINGSHIBA.slitherConstructorVariables() (#601-935) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#489)
KINGSHIBA.slitherConstructorVariables() (#601-935) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#490)
KINGSHIBA.slitherConstructorVariables() (#601-935) uses literals with too many digits:
- distributorGas = 500000 (#621)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
BASEToken.DEAD (#489) should be constant
BASEToken.WBNB (#488) should be constant
BASEToken.ZERO (#490) should be constant
DividendDistributor.WBNB (#257) should be constant
DividendDistributor.dividendsPerShareAccuracyFactor (#270) should be constant
KINGSHIBA.buyBackEnable (#630) should be constant
KINGSHIBA.buyBackUpperLimit (#612) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
owner() should be declared external:
- Ownable.owner() (#91-93)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#110-113)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#119-126)
getAccount(address) should be declared external:
- DividendDistributor.getAccount(address) (#337-357)
approve(address,uint256) should be declared external:
- BASEToken.approve(address,uint256) (#514-522)
getCirculatingSupply() should be declared external:
- BASEToken.getCirculatingSupply() (#553-555)
changeDex(address) should be declared external:
- KINGSHIBA.changeDex(address) (#685-687)
changeDistributorDex(address) should be declared external:
- KINGSHIBA.changeDistributorDex(address) (#689-691)
setDex(address,bool) should be declared external:
- KINGSHIBA.setDex(address,bool) (#693-696)
Use the external attribute for functions never called from the contract.
Additional information: link
Contract has 13% buy tax and 13% sell tax.
Taxes are suspiciously high (over 10%) and contract ownership is not renounced. Token has a high risk of becoming a honeypot.
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 crawl data from the website
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Token was delisted (assigned to inactive / untracked listing) from CoinMarketCap
Additional information: link
Unable to find token/project description on the website or on BscScan, CoinMarketCap
Unable to find token contract audit
Token is not listed at Mobula.Finance
Additional information: link
Unable to find audit link on the website
Unable to find whitepaper link on the website
Unable to find token on CoinHunt
Additional information: link
Token has no active CoinMarketCap listing / rank
Young tokens have high risks of price dump / death
Token has relatively low CoinGecko rank
Telegram account link seems to be invalid
Twitter account seems to be suspended
Additional information: link
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account