Introducing King Catcoin ($KCAT) – The King of Cats is finally here and ready to show the World of Crypto that Dog may be man’s best friend but it was Cats’ who were worshipped as GODS.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
KINGCATCOIN.transferEthOut(uint256,uint256) (#1004-1007) sends eth to arbitrary user
Dangerous calls:
- _marketingWallet.transfer(marketingBalance) (#1006)
KINGCATCOIN.swapETHForTokens(uint256) (#1009-1024) sends eth to arbitrary user
Dangerous calls:
- dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,burnAddress,block.timestamp.add(300)) (#1016-1021)
KINGCATCOIN.addLiquidity(uint256,uint256) (#1044-1057) sends eth to arbitrary user
Dangerous calls:
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1049-1056)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in KINGCATCOIN._transfer(address,address,uint256) (#907-958):
External calls:
- swapAndLiquify(contractTokenBalance) (#941)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1049-1056)
- dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1035-1041)
- buyBackTokens(buyBackAmount) (#947)
- dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,burnAddress,block.timestamp.add(300)) (#1016-1021)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#941)
- _devWallet.transfer(devBalance) (#1005)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1049-1056)
- _marketingWallet.transfer(marketingBalance) (#1006)
- buyBackTokens(buyBackAmount) (#947)
- dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,burnAddress,block.timestamp.add(300)) (#1016-1021)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#957)
- _buyBackFee = _previousBuyBackFee (#1182)
- _buyBackFee = _boostedBuyBackFee (#1199)
- _buyBackFee = 0 (#1174)
- _tokenTransfer(from,to,amount,takeFee) (#957)
- _devFee = _previousDevFee (#1184)
- _devFee = _boostedDevFee (#1201)
- _devFee = 0 (#1176)
- _tokenTransfer(from,to,amount,takeFee) (#957)
- _liquidityFee = _previousLiquidityFee (#1181)
- _liquidityFee = _boostedLiquidityFee (#1198)
- _liquidityFee = 0 (#1173)
- _tokenTransfer(from,to,amount,takeFee) (#957)
- _marketingFee = _previousMarketingFee (#1183)
- _marketingFee = _boostedMarketingFee (#1200)
- _marketingFee = 0 (#1175)
- _tokenTransfer(from,to,amount,takeFee) (#957)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#1144)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1077)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1078)
- _tokenTransfer(from,to,amount,takeFee) (#957)
- _rTotal = _rTotal.sub(rFee) (#1137)
- _tokenTransfer(from,to,amount,takeFee) (#957)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#1146)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#1081)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#1083)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#1085)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#1086)
- buyBackTokens(buyBackAmount) (#947)
- inSwapAndLiquify = true (#663)
- inSwapAndLiquify = false (#665)
Apply the check-effects-interactions pattern.
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.
KINGCATCOIN.swapAndLiquify(uint256) (#966-1002) performs a multiplication on the result of a division:
-half = toLiquify.div(2) (#976)
-liquidityBalance = fromSwap.mul(half).div(toSwapForEth) (#991)
KINGCATCOIN.swapAndLiquify(uint256) (#966-1002) performs a multiplication on the result of a division:
-toBuyBack = contractTokenBalance.mul(_buyBackFee).div(totalBNBFees) (#971)
-buyBackBalance = fromSwap.mul(toBuyBack).div(toSwapForEth) (#992)
KINGCATCOIN.swapAndLiquify(uint256) (#966-1002) performs a multiplication on the result of a division:
-toDev = contractTokenBalance.mul(_devFee).div(totalBNBFees) (#972)
-devBalance = fromSwap.mul(toDev).div(toSwapForEth) (#993)
Consider ordering multiplication before division.
Additional information: link
KINGCATCOIN.addLiquidity(uint256,uint256) (#1044-1057) ignores return value by dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1049-1056)
Ensure that all the return values of the function calls are used.
Additional information: link
KINGCATCOIN._approve(address,address,uint256).owner (#899) shadows:
- Ownable.owner() (#531-533) (function)
Rename the local variables that shadow another component.
Additional information: link
KINGCATCOIN.setTaxes(uint256,uint256,uint256,uint256,uint256) (#758-765) should emit an event for:
- _reflectFee = reflectFee (#760)
- _liquidityFee = liquidityFee (#761)
- _marketingFee = marketingFee (#762)
- _buyBackFee = buyBackFee (#763)
- _devFee = devFee (#764)
KINGCATCOIN.setBoostedTaxes(uint256,uint256,uint256,uint256,uint256) (#767-774) should emit an event for:
- _boostedReflectFee = reflectFee (#769)
- _boostedLiquidityFee = liquidityFee (#770)
- _boostedMarketingFee = marketingFee (#771)
- _boostedBuyBackFee = buyBackFee (#772)
- _boostedDevFee = devFee (#773)
KINGCATCOIN.setMaxTxPercent(uint256,uint256) (#776-780) should emit an event for:
- _maxTxAmount = _tTotal.mul(percent).div(divisor) (#778)
KINGCATCOIN.setMaxWallet(uint256,uint256) (#782-786) should emit an event for:
- _maxWalletAmount = _tTotal.mul(percent).div(divisor) (#784)
KINGCATCOIN.setPercentToSell(uint256) (#788-791) should emit an event for:
- percentToSell = percent (#789)
- numTokensSellToAddToLiquidity = (_tTotal * percentToSell) / 10000 (#790)
KINGCATCOIN.setBuyBackSellLimit(uint256) (#808-810) should emit an event for:
- buyBackSellLimit = limit * 10 ** _decimalsMul (#809)
KINGCATCOIN.setBuyBackAmount(uint256,uint256) (#812-814) should emit an event for:
- buyBackAmount = amount * 10 ** multiplier (#813)
Emit an event for critical parameter changes.
Additional information: link
Reentrancy in KINGCATCOIN._transfer(address,address,uint256) (#907-958):
External calls:
- swapAndLiquify(contractTokenBalance) (#941)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1049-1056)
- dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1035-1041)
- buyBackTokens(buyBackAmount) (#947)
- dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,burnAddress,block.timestamp.add(300)) (#1016-1021)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#941)
- _devWallet.transfer(devBalance) (#1005)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1049-1056)
- _marketingWallet.transfer(marketingBalance) (#1006)
- buyBackTokens(buyBackAmount) (#947)
- dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,burnAddress,block.timestamp.add(300)) (#1016-1021)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#957)
- _previousBuyBackFee = _buyBackFee (#1193)
- _previousBuyBackFee = _buyBackFee (#1168)
- _tokenTransfer(from,to,amount,takeFee) (#957)
- _previousDevFee = _devFee (#1195)
- _previousDevFee = _devFee (#1170)
- _tokenTransfer(from,to,amount,takeFee) (#957)
- _previousLiquidityFee = _liquidityFee (#1192)
- _previousLiquidityFee = _liquidityFee (#1167)
- _tokenTransfer(from,to,amount,takeFee) (#957)
- _previousMarketingFee = _marketingFee (#1194)
- _previousMarketingFee = _marketingFee (#1169)
- _tokenTransfer(from,to,amount,takeFee) (#957)
- _previousReflectFee = _reflectFee (#1191)
- _previousReflectFee = _reflectFee (#1166)
- _tokenTransfer(from,to,amount,takeFee) (#957)
- _reflectFee = _previousReflectFee (#1180)
- _reflectFee = _boostedReflectFee (#1197)
- _reflectFee = 0 (#1172)
- _tokenTransfer(from,to,amount,takeFee) (#957)
- _tFeeTotal = _tFeeTotal.add(tFee) (#1138)
- _tokenTransfer(from,to,amount,takeFee) (#957)
- boosted = true (#1064)
- boosted = false (#1187)
Reentrancy in KINGCATCOIN.constructor() (#668-698):
External calls:
- lpPair = IUniswapV2Factory(_dexRouter.factory()).createPair(address(this),_dexRouter.WETH()) (#673-674)
State variables written after the call(s):
- _approve(_msgSender(),_routerAddress,_tTotal) (#695)
- _allowances[owner][spender] = amount (#903)
- _excluded.push(address(this)) (#682)
- _excluded.push(owner()) (#684)
- _excluded.push(burnAddress) (#686)
- _excluded.push(lpPair) (#688)
- _excluded.push(0x2D045410f002A95EFcEE67759A92518fA3FcE677) (#692)
- _isExcluded[address(this)] = true (#681)
- _isExcluded[owner()] = true (#683)
- _isExcluded[burnAddress] = true (#685)
- _isExcluded[lpPair] = true (#687)
- _isExcluded[0x2D045410f002A95EFcEE67759A92518fA3FcE677] = true (#691)
- _isExcludedFromFee[owner()] = true (#678)
- _isExcludedFromFee[address(this)] = true (#679)
- _isExcludedFromFee[0x2D045410f002A95EFcEE67759A92518fA3FcE677] = true (#690)
- _liquidityHolders[owner()] = true (#680)
- dexRouter = _dexRouter (#676)
Reentrancy in KINGCATCOIN.setNewRouter(address) (#738-748):
External calls:
- lpPair = IUniswapV2Factory(_newRouter.factory()).createPair(address(this),_newRouter.WETH()) (#742)
State variables written after the call(s):
- dexRouter = _newRouter (#747)
Reentrancy in KINGCATCOIN.swapAndLiquify(uint256) (#966-1002):
External calls:
- swapTokensForEth(toSwapForEth) (#987)
- dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1035-1041)
- addLiquidity(otherHalf,liquidityBalance) (#997)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1049-1056)
External calls sending eth:
- addLiquidity(otherHalf,liquidityBalance) (#997)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1049-1056)
State variables written after the call(s):
- addLiquidity(otherHalf,liquidityBalance) (#997)
- _allowances[owner][spender] = amount (#903)
Reentrancy in KINGCATCOIN.transferFrom(address,address,uint256) (#722-726):
External calls:
- _transfer(sender,recipient,amount) (#723)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1049-1056)
- dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,burnAddress,block.timestamp.add(300)) (#1016-1021)
- dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1035-1041)
External calls sending eth:
- _transfer(sender,recipient,amount) (#723)
- _devWallet.transfer(devBalance) (#1005)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1049-1056)
- _marketingWallet.transfer(marketingBalance) (#1006)
- dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,burnAddress,block.timestamp.add(300)) (#1016-1021)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#724)
- _allowances[owner][spender] = amount (#903)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in KINGCATCOIN._transfer(address,address,uint256) (#907-958):
External calls:
- swapAndLiquify(contractTokenBalance) (#941)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1049-1056)
- dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1035-1041)
- buyBackTokens(buyBackAmount) (#947)
- dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,burnAddress,block.timestamp.add(300)) (#1016-1021)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#941)
- _devWallet.transfer(devBalance) (#1005)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1049-1056)
- _marketingWallet.transfer(marketingBalance) (#1006)
- buyBackTokens(buyBackAmount) (#947)
- dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,burnAddress,block.timestamp.add(300)) (#1016-1021)
Event emitted after the call(s):
- SwapETHForTokens(amount,path) (#1023)
- buyBackTokens(buyBackAmount) (#947)
- Transfer(sender,address(this),tLiquidity) (#1147)
- _tokenTransfer(from,to,amount,takeFee) (#957)
- Transfer(sender,recipient,tTransferAmount) (#1094)
- _tokenTransfer(from,to,amount,takeFee) (#957)
Reentrancy in KINGCATCOIN.constructor() (#668-698):
External calls:
- lpPair = IUniswapV2Factory(_dexRouter.factory()).createPair(address(this),_dexRouter.WETH()) (#673-674)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#904)
- _approve(_msgSender(),_routerAddress,_tTotal) (#695)
- Transfer(address(0),_msgSender(),_tTotal) (#697)
Reentrancy in KINGCATCOIN.swapAndLiquify(uint256) (#966-1002):
External calls:
- swapTokensForEth(toSwapForEth) (#987)
- dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1035-1041)
- addLiquidity(otherHalf,liquidityBalance) (#997)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1049-1056)
External calls sending eth:
- addLiquidity(otherHalf,liquidityBalance) (#997)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1049-1056)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#904)
- addLiquidity(otherHalf,liquidityBalance) (#997)
- SwapAndLiquify(half,liquidityBalance,otherHalf) (#999)
Reentrancy in KINGCATCOIN.swapETHForTokens(uint256) (#1009-1024):
External calls:
- dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,burnAddress,block.timestamp.add(300)) (#1016-1021)
Event emitted after the call(s):
- SwapETHForTokens(amount,path) (#1023)
Reentrancy in KINGCATCOIN.transferFrom(address,address,uint256) (#722-726):
External calls:
- _transfer(sender,recipient,amount) (#723)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1049-1056)
- dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,burnAddress,block.timestamp.add(300)) (#1016-1021)
- dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1035-1041)
External calls sending eth:
- _transfer(sender,recipient,amount) (#723)
- _devWallet.transfer(devBalance) (#1005)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1049-1056)
- _marketingWallet.transfer(marketingBalance) (#1006)
- dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,burnAddress,block.timestamp.add(300)) (#1016-1021)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#904)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#724)
Apply the check-effects-interactions pattern.
Additional information: link
Address.isContract(address) (#269-278) uses assembly
- INLINE ASM (#276)
Address._functionCallWithValue(address,bytes,uint256,string) (#306-327) uses assembly
- INLINE ASM (#319-322)
Do not use evm assembly.
Additional information: link
KINGCATCOIN.restoreAllFee() (#1179-1188) compares to a boolean constant:
-boosted == true (#1186)
Remove the equality to the boolean constant.
Additional information: link
KINGCATCOIN.includeInReward(address) (#883-894) has costly operations inside a loop:
- _excluded.pop() (#890)
Use a local variable to hold the loop computation result.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#306-327) is never used and should be removed
Address.functionCall(address,bytes) (#288-290) is never used and should be removed
Address.functionCall(address,bytes,string) (#292-294) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#297-299) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#301-304) is never used and should be removed
Address.isContract(address) (#269-278) is never used and should be removed
Address.sendValue(address,uint256) (#280-286) is never used and should be removed
Context._msgData() (#13-17) is never used and should be removed
SafeMath.mod(uint256,uint256) (#246-248) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#262-265) is never used and should be removed
Remove unused functions.
Additional information: link
KINGCATCOIN._decimalsMul (#574) is set pre-construction with a non-constant function or state variable:
- _decimals
KINGCATCOIN._tTotal (#575) is set pre-construction with a non-constant function or state variable:
- startingSupply * 10 ** _decimalsMul
KINGCATCOIN._rTotal (#576) is set pre-construction with a non-constant function or state variable:
- (MAX - (MAX % _tTotal))
KINGCATCOIN._previousReflectFee (#583) is set pre-construction with a non-constant function or state variable:
- _reflectFee
KINGCATCOIN._previousLiquidityFee (#587) is set pre-construction with a non-constant function or state variable:
- _liquidityFee
KINGCATCOIN._previousMarketingFee (#591) is set pre-construction with a non-constant function or state variable:
- _marketingFee
KINGCATCOIN._previousBuyBackFee (#595) is set pre-construction with a non-constant function or state variable:
- _buyBackFee
KINGCATCOIN._previousDevFee (#599) is set pre-construction with a non-constant function or state variable:
- _devFee
KINGCATCOIN.buyBackSellLimit (#619) is set pre-construction with a non-constant function or state variable:
- (_tTotal * 2) / 100
KINGCATCOIN._maxTxAmount (#627) is set pre-construction with a non-constant function or state variable:
- (_tTotal * maxTxPercent) / maxTxDivisor
KINGCATCOIN._previousMaxTxAmount (#628) is set pre-construction with a non-constant function or state variable:
- _maxTxAmount
KINGCATCOIN.maxTxAmountUI (#629) is set pre-construction with a non-constant function or state variable:
- (startingSupply * maxTxPercent) / maxTxDivisor
KINGCATCOIN._maxWalletAmount (#634) is set pre-construction with a non-constant function or state variable:
- (_tTotal * maxWalletPercent) / maxWalletDivisor
KINGCATCOIN._previousMaxWalletAmount (#635) is set pre-construction with a non-constant function or state variable:
- _maxWalletAmount
KINGCATCOIN.maxWalletAmountUI (#636) is set pre-construction with a non-constant function or state variable:
- (startingSupply * maxWalletPercent) / maxWalletDivisor
KINGCATCOIN.numTokensSellToAddToLiquidity (#641) is set pre-construction with a non-constant function or state variable:
- (_tTotal * percentToSell) / 10000
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
Pragma version>=0.8.0<0.9.0 (#6) is too complex
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) (#280-286):
- (success) = recipient.call{value: amount}() (#284)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#306-327):
- (success,returndata) = target.call{value: weiValue}(data) (#310)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#355) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#356) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#370) is not in mixedCase
Function IUniswapV2Router01.WETH() (#388) is not in mixedCase
Parameter KINGCATCOIN.setSwapAndLiquifyEnabled(bool)._enabled (#798) is not in mixedCase
Parameter KINGCATCOIN.setBuyBackEnabled(bool)._enabled (#803) is not in mixedCase
Parameter KINGCATCOIN.calculateTaxFee(uint256)._amount (#1150) is not in mixedCase
Parameter KINGCATCOIN.calculateLiquidityFee(uint256)._amount (#1154) is not in mixedCase
Variable KINGCATCOIN._reflectFee (#582) is not in mixedCase
Variable KINGCATCOIN._boostedReflectFee (#584) is not in mixedCase
Variable KINGCATCOIN._liquidityFee (#586) is not in mixedCase
Variable KINGCATCOIN._boostedLiquidityFee (#588) is not in mixedCase
Variable KINGCATCOIN._marketingFee (#590) is not in mixedCase
Variable KINGCATCOIN._boostedMarketingFee (#592) is not in mixedCase
Variable KINGCATCOIN._buyBackFee (#594) is not in mixedCase
Variable KINGCATCOIN._boostedBuyBackFee (#596) is not in mixedCase
Variable KINGCATCOIN._devFee (#598) is not in mixedCase
Variable KINGCATCOIN._boostedDevFee (#600) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#14)" inContext (#8-18)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in KINGCATCOIN._transfer(address,address,uint256) (#907-958):
External calls:
- swapAndLiquify(contractTokenBalance) (#941)
- _devWallet.transfer(devBalance) (#1005)
- _marketingWallet.transfer(marketingBalance) (#1006)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#941)
- _devWallet.transfer(devBalance) (#1005)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1049-1056)
- _marketingWallet.transfer(marketingBalance) (#1006)
- buyBackTokens(buyBackAmount) (#947)
- dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,burnAddress,block.timestamp.add(300)) (#1016-1021)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#957)
- _buyBackFee = _previousBuyBackFee (#1182)
- _buyBackFee = _boostedBuyBackFee (#1199)
- _buyBackFee = 0 (#1174)
- _tokenTransfer(from,to,amount,takeFee) (#957)
- _devFee = _previousDevFee (#1184)
- _devFee = _boostedDevFee (#1201)
- _devFee = 0 (#1176)
- _tokenTransfer(from,to,amount,takeFee) (#957)
- _liquidityFee = _previousLiquidityFee (#1181)
- _liquidityFee = _boostedLiquidityFee (#1198)
- _liquidityFee = 0 (#1173)
- _tokenTransfer(from,to,amount,takeFee) (#957)
- _marketingFee = _previousMarketingFee (#1183)
- _marketingFee = _boostedMarketingFee (#1200)
- _marketingFee = 0 (#1175)
- _tokenTransfer(from,to,amount,takeFee) (#957)
- _previousBuyBackFee = _buyBackFee (#1193)
- _previousBuyBackFee = _buyBackFee (#1168)
- _tokenTransfer(from,to,amount,takeFee) (#957)
- _previousDevFee = _devFee (#1195)
- _previousDevFee = _devFee (#1170)
- _tokenTransfer(from,to,amount,takeFee) (#957)
- _previousLiquidityFee = _liquidityFee (#1192)
- _previousLiquidityFee = _liquidityFee (#1167)
- _tokenTransfer(from,to,amount,takeFee) (#957)
- _previousMarketingFee = _marketingFee (#1194)
- _previousMarketingFee = _marketingFee (#1169)
- _tokenTransfer(from,to,amount,takeFee) (#957)
- _previousReflectFee = _reflectFee (#1191)
- _previousReflectFee = _reflectFee (#1166)
- _tokenTransfer(from,to,amount,takeFee) (#957)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#1144)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1077)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1078)
- _tokenTransfer(from,to,amount,takeFee) (#957)
- _rTotal = _rTotal.sub(rFee) (#1137)
- _tokenTransfer(from,to,amount,takeFee) (#957)
- _reflectFee = _previousReflectFee (#1180)
- _reflectFee = _boostedReflectFee (#1197)
- _reflectFee = 0 (#1172)
- _tokenTransfer(from,to,amount,takeFee) (#957)
- _tFeeTotal = _tFeeTotal.add(tFee) (#1138)
- _tokenTransfer(from,to,amount,takeFee) (#957)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#1146)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#1081)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#1083)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#1085)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#1086)
- _tokenTransfer(from,to,amount,takeFee) (#957)
- boosted = true (#1064)
- boosted = false (#1187)
- buyBackTokens(buyBackAmount) (#947)
- inSwapAndLiquify = true (#663)
- inSwapAndLiquify = false (#665)
Event emitted after the call(s):
- SwapETHForTokens(amount,path) (#1023)
- buyBackTokens(buyBackAmount) (#947)
- Transfer(sender,address(this),tLiquidity) (#1147)
- _tokenTransfer(from,to,amount,takeFee) (#957)
- Transfer(sender,recipient,tTransferAmount) (#1094)
- _tokenTransfer(from,to,amount,takeFee) (#957)
Reentrancy in KINGCATCOIN.transferFrom(address,address,uint256) (#722-726):
External calls:
- _transfer(sender,recipient,amount) (#723)
- _devWallet.transfer(devBalance) (#1005)
- _marketingWallet.transfer(marketingBalance) (#1006)
External calls sending eth:
- _transfer(sender,recipient,amount) (#723)
- _devWallet.transfer(devBalance) (#1005)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1049-1056)
- _marketingWallet.transfer(marketingBalance) (#1006)
- dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,burnAddress,block.timestamp.add(300)) (#1016-1021)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#724)
- _allowances[owner][spender] = amount (#903)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#904)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#724)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#392) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#393)
Variable KINGCATCOIN._finalizeTransfer(address,address,uint256).rTransferAmount (#1075) is too similar to KINGCATCOIN._getTValues(uint256).tTransferAmount (#1106)
Variable KINGCATCOIN._finalizeTransfer(address,address,uint256).rTransferAmount (#1075) is too similar to KINGCATCOIN._finalizeTransfer(address,address,uint256).tTransferAmount (#1075)
Variable KINGCATCOIN._getValues(uint256).rTransferAmount (#1099) is too similar to KINGCATCOIN._getTValues(uint256).tTransferAmount (#1106)
Variable KINGCATCOIN._getValues(uint256).rTransferAmount (#1099) is too similar to KINGCATCOIN._getValues(uint256).tTransferAmount (#1098)
Variable KINGCATCOIN.reflectionFromToken(uint256,bool).rTransferAmount (#862) is too similar to KINGCATCOIN._finalizeTransfer(address,address,uint256).tTransferAmount (#1075)
Variable KINGCATCOIN.reflectionFromToken(uint256,bool).rTransferAmount (#862) is too similar to KINGCATCOIN._getValues(uint256).tTransferAmount (#1098)
Variable KINGCATCOIN._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#1114) is too similar to KINGCATCOIN._finalizeTransfer(address,address,uint256).tTransferAmount (#1075)
Variable KINGCATCOIN._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#1114) is too similar to KINGCATCOIN._getValues(uint256).tTransferAmount (#1098)
Variable KINGCATCOIN.reflectionFromToken(uint256,bool).rTransferAmount (#862) is too similar to KINGCATCOIN._getTValues(uint256).tTransferAmount (#1106)
Variable KINGCATCOIN._finalizeTransfer(address,address,uint256).rTransferAmount (#1075) is too similar to KINGCATCOIN._getValues(uint256).tTransferAmount (#1098)
Variable KINGCATCOIN._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#1114) is too similar to KINGCATCOIN._getTValues(uint256).tTransferAmount (#1106)
Variable KINGCATCOIN._getValues(uint256).rTransferAmount (#1099) is too similar to KINGCATCOIN._finalizeTransfer(address,address,uint256).tTransferAmount (#1075)
Prevent variables from having similar names.
Additional information: link
KINGCATCOIN.slitherConstructorVariables() (#555-1204) uses literals with too many digits:
- burnAddress = 0x000000000000000000000000000000000000dEaD (#611)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
KINGCATCOIN._previousMaxTxAmount (#628) is never used in KINGCATCOIN (#555-1204)
KINGCATCOIN._previousMaxWalletAmount (#635) is never used in KINGCATCOIN (#555-1204)
Remove unused state variables.
Additional information: link
KINGCATCOIN._decimals (#573) should be constant
KINGCATCOIN._devWallet (#613) should be constant
KINGCATCOIN._name (#579) should be constant
KINGCATCOIN._routerAddress (#609) should be constant
KINGCATCOIN._symbol (#580) should be constant
KINGCATCOIN.burnAddress (#611) should be constant
KINGCATCOIN.masterTaxDivisor (#602) should be constant
KINGCATCOIN.maxTxDivisor (#626) should be constant
KINGCATCOIN.maxTxPercent (#625) should be constant
KINGCATCOIN.maxWalletDivisor (#633) should be constant
KINGCATCOIN.maxWalletPercent (#632) should be constant
KINGCATCOIN.maximumTaxesPercent (#603) should be constant
KINGCATCOIN.startingSupply (#570) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#540-543)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#545-550)
transfer(address,uint256) should be declared external:
- KINGCATCOIN.transfer(address,uint256) (#712-715)
approve(address,uint256) should be declared external:
- KINGCATCOIN.approve(address,uint256) (#717-720)
transferFrom(address,address,uint256) should be declared external:
- KINGCATCOIN.transferFrom(address,address,uint256) (#722-726)
increaseAllowance(address,uint256) should be declared external:
- KINGCATCOIN.increaseAllowance(address,uint256) (#728-731)
decreaseAllowance(address,uint256) should be declared external:
- KINGCATCOIN.decreaseAllowance(address,uint256) (#733-736)
setNewRouter(address) should be declared external:
- KINGCATCOIN.setNewRouter(address) (#738-748)
isExcludedFromReward(address) should be declared external:
- KINGCATCOIN.isExcludedFromReward(address) (#750-752)
isExcludedFromFee(address) should be declared external:
- KINGCATCOIN.isExcludedFromFee(address) (#754-756)
setSwapAndLiquifyEnabled(bool) should be declared external:
- KINGCATCOIN.setSwapAndLiquifyEnabled(bool) (#798-801)
setBuyBackEnabled(bool) should be declared external:
- KINGCATCOIN.setBuyBackEnabled(bool) (#803-806)
excludeFromFee(address) should be declared external:
- KINGCATCOIN.excludeFromFee(address) (#826-828)
totalFees() should be declared external:
- KINGCATCOIN.totalFees() (#834-836)
deliver(uint256) should be declared external:
- KINGCATCOIN.deliver(uint256) (#847-854)
reflectionFromToken(uint256,bool) should be declared external:
- KINGCATCOIN.reflectionFromToken(uint256,bool) (#856-865)
excludeFromReward(address) should be declared external:
- KINGCATCOIN.excludeFromReward(address) (#873-881)
Use the external attribute for functions never called from the contract.
Additional information: link
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