Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
MysteryCat.transferEthOut(uint256,uint256) (#1006-1009) sends eth to arbitrary user
Dangerous calls:
- _marketingWallet.transfer(marketingBalance) (#1008)
MysteryCat.swapETHForTokens(uint256) (#1011-1026) sends eth to arbitrary user
Dangerous calls:
- dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,burnAddress,block.timestamp.add(300)) (#1018-1023)
MysteryCat.addLiquidity(uint256,uint256) (#1046-1059) sends eth to arbitrary user
Dangerous calls:
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1051-1058)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in MysteryCat._transfer(address,address,uint256) (#909-960):
External calls:
- swapAndLiquify(contractTokenBalance) (#943)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1051-1058)
- dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1037-1043)
- buyBackTokens(buyBackAmount) (#949)
- dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,burnAddress,block.timestamp.add(300)) (#1018-1023)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#943)
- _devWallet.transfer(devBalance) (#1007)
- _marketingWallet.transfer(marketingBalance) (#1008)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1051-1058)
- buyBackTokens(buyBackAmount) (#949)
- dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,burnAddress,block.timestamp.add(300)) (#1018-1023)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#959)
- _buyBackFee = _previousBuyBackFee (#1184)
- _buyBackFee = _ReverseBuyBackFee (#1201)
- _buyBackFee = 0 (#1176)
- _tokenTransfer(from,to,amount,takeFee) (#959)
- _devFee = _previousDevFee (#1186)
- _devFee = _ReverseDevFee (#1203)
- _devFee = 0 (#1178)
- _tokenTransfer(from,to,amount,takeFee) (#959)
- _liquidityFee = _previousLiquidityFee (#1183)
- _liquidityFee = _ReverseLiquidityFee (#1200)
- _liquidityFee = 0 (#1175)
- _tokenTransfer(from,to,amount,takeFee) (#959)
- _marketingFee = _previousMarketingFee (#1185)
- _marketingFee = _ReverseMarketingFee (#1202)
- _marketingFee = 0 (#1177)
- _tokenTransfer(from,to,amount,takeFee) (#959)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#1146)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1079)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1080)
- _tokenTransfer(from,to,amount,takeFee) (#959)
- _rTotal = _rTotal.sub(rFee) (#1139)
- _tokenTransfer(from,to,amount,takeFee) (#959)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#1148)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#1083)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#1085)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#1087)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#1088)
- buyBackTokens(buyBackAmount) (#949)
- inSwapAndLiquify = true (#665)
- inSwapAndLiquify = false (#667)
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.
MysteryCat.swapAndLiquify(uint256) (#968-1004) performs a multiplication on the result of a division:
-half = toLiquify.div(2) (#978)
-liquidityBalance = fromSwap.mul(half).div(toSwapForEth) (#993)
MysteryCat.swapAndLiquify(uint256) (#968-1004) performs a multiplication on the result of a division:
-toBuyBack = contractTokenBalance.mul(_buyBackFee).div(totalBNBFees) (#973)
-buyBackBalance = fromSwap.mul(toBuyBack).div(toSwapForEth) (#994)
MysteryCat.swapAndLiquify(uint256) (#968-1004) performs a multiplication on the result of a division:
-toDev = contractTokenBalance.mul(_devFee).div(totalBNBFees) (#974)
-devBalance = fromSwap.mul(toDev).div(toSwapForEth) (#995)
Consider ordering multiplication before division.
Additional information: link
MysteryCat.addLiquidity(uint256,uint256) (#1046-1059) ignores return value by dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1051-1058)
Ensure that all the return values of the function calls are used.
Additional information: link
MysteryCat._approve(address,address,uint256).owner (#901) shadows:
- Ownable.owner() (#533-535) (function)
Rename the local variables that shadow another component.
Additional information: link
MysteryCat.setTaxes(uint256,uint256,uint256,uint256,uint256) (#760-767) should emit an event for:
- _reflectFee = reflectFee (#762)
- _liquidityFee = liquidityFee (#763)
- _marketingFee = marketingFee (#764)
- _buyBackFee = buyBackFee (#765)
- _devFee = devFee (#766)
MysteryCat.setReverseTaxes(uint256,uint256,uint256,uint256,uint256) (#769-776) should emit an event for:
- _ReverseReflectFee = reflectFee (#771)
- _ReverseLiquidityFee = liquidityFee (#772)
- _ReverseMarketingFee = marketingFee (#773)
- _ReverseBuyBackFee = buyBackFee (#774)
- _ReverseDevFee = devFee (#775)
MysteryCat.setMaxTxPercent(uint256,uint256) (#778-782) should emit an event for:
- _maxTxAmount = _tTotal.mul(percent).div(divisor) (#780)
MysteryCat.setMaxWallet(uint256,uint256) (#784-788) should emit an event for:
- _maxWalletAmount = _tTotal.mul(percent).div(divisor) (#786)
MysteryCat.setPercentToSell(uint256) (#790-793) should emit an event for:
- percentToSell = percent (#791)
- numTokensSellToAddToLiquidity = (_tTotal * percentToSell) / 10000 (#792)
MysteryCat.setBuyBackSellLimit(uint256) (#810-812) should emit an event for:
- buyBackSellLimit = limit * 10 ** _decimalsMul (#811)
MysteryCat.setBuyBackAmount(uint256,uint256) (#814-816) should emit an event for:
- buyBackAmount = amount * 10 ** multiplier (#815)
Emit an event for critical parameter changes.
Additional information: link
Reentrancy in MysteryCat._transfer(address,address,uint256) (#909-960):
External calls:
- swapAndLiquify(contractTokenBalance) (#943)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1051-1058)
- dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1037-1043)
- buyBackTokens(buyBackAmount) (#949)
- dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,burnAddress,block.timestamp.add(300)) (#1018-1023)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#943)
- _devWallet.transfer(devBalance) (#1007)
- _marketingWallet.transfer(marketingBalance) (#1008)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1051-1058)
- buyBackTokens(buyBackAmount) (#949)
- dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,burnAddress,block.timestamp.add(300)) (#1018-1023)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#959)
- Reverse = true (#1066)
- Reverse = false (#1189)
- _tokenTransfer(from,to,amount,takeFee) (#959)
- _previousBuyBackFee = _buyBackFee (#1195)
- _previousBuyBackFee = _buyBackFee (#1170)
- _tokenTransfer(from,to,amount,takeFee) (#959)
- _previousDevFee = _devFee (#1197)
- _previousDevFee = _devFee (#1172)
- _tokenTransfer(from,to,amount,takeFee) (#959)
- _previousLiquidityFee = _liquidityFee (#1194)
- _previousLiquidityFee = _liquidityFee (#1169)
- _tokenTransfer(from,to,amount,takeFee) (#959)
- _previousMarketingFee = _marketingFee (#1196)
- _previousMarketingFee = _marketingFee (#1171)
- _tokenTransfer(from,to,amount,takeFee) (#959)
- _previousReflectFee = _reflectFee (#1193)
- _previousReflectFee = _reflectFee (#1168)
- _tokenTransfer(from,to,amount,takeFee) (#959)
- _reflectFee = _previousReflectFee (#1182)
- _reflectFee = _ReverseReflectFee (#1199)
- _reflectFee = 0 (#1174)
- _tokenTransfer(from,to,amount,takeFee) (#959)
- _tFeeTotal = _tFeeTotal.add(tFee) (#1140)
Reentrancy in MysteryCat.constructor() (#670-700):
External calls:
- lpPair = IUniswapV2Factory(_dexRouter.factory()).createPair(address(this),_dexRouter.WETH()) (#675-676)
State variables written after the call(s):
- _approve(_msgSender(),_routerAddress,_tTotal) (#697)
- _allowances[owner][spender] = amount (#905)
- _excluded.push(address(this)) (#684)
- _excluded.push(owner()) (#686)
- _excluded.push(burnAddress) (#688)
- _excluded.push(lpPair) (#690)
- _excluded.push(0x2D045410f002A95EFcEE67759A92518fA3FcE677) (#694)
- _isExcluded[address(this)] = true (#683)
- _isExcluded[owner()] = true (#685)
- _isExcluded[burnAddress] = true (#687)
- _isExcluded[lpPair] = true (#689)
- _isExcluded[0x2D045410f002A95EFcEE67759A92518fA3FcE677] = true (#693)
- _isExcludedFromFee[owner()] = true (#680)
- _isExcludedFromFee[address(this)] = true (#681)
- _isExcludedFromFee[0x2D045410f002A95EFcEE67759A92518fA3FcE677] = true (#692)
- _liquidityHolders[owner()] = true (#682)
- dexRouter = _dexRouter (#678)
Reentrancy in MysteryCat.setNewRouter(address) (#740-750):
External calls:
- lpPair = IUniswapV2Factory(_newRouter.factory()).createPair(address(this),_newRouter.WETH()) (#744)
State variables written after the call(s):
- dexRouter = _newRouter (#749)
Reentrancy in MysteryCat.swapAndLiquify(uint256) (#968-1004):
External calls:
- swapTokensForEth(toSwapForEth) (#989)
- dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1037-1043)
- addLiquidity(otherHalf,liquidityBalance) (#999)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1051-1058)
External calls sending eth:
- addLiquidity(otherHalf,liquidityBalance) (#999)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1051-1058)
State variables written after the call(s):
- addLiquidity(otherHalf,liquidityBalance) (#999)
- _allowances[owner][spender] = amount (#905)
Reentrancy in MysteryCat.transferFrom(address,address,uint256) (#724-728):
External calls:
- _transfer(sender,recipient,amount) (#725)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1051-1058)
- dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,burnAddress,block.timestamp.add(300)) (#1018-1023)
- dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1037-1043)
External calls sending eth:
- _transfer(sender,recipient,amount) (#725)
- _devWallet.transfer(devBalance) (#1007)
- _marketingWallet.transfer(marketingBalance) (#1008)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1051-1058)
- dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,burnAddress,block.timestamp.add(300)) (#1018-1023)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#726)
- _allowances[owner][spender] = amount (#905)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in MysteryCat._transfer(address,address,uint256) (#909-960):
External calls:
- swapAndLiquify(contractTokenBalance) (#943)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1051-1058)
- dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1037-1043)
- buyBackTokens(buyBackAmount) (#949)
- dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,burnAddress,block.timestamp.add(300)) (#1018-1023)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#943)
- _devWallet.transfer(devBalance) (#1007)
- _marketingWallet.transfer(marketingBalance) (#1008)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1051-1058)
- buyBackTokens(buyBackAmount) (#949)
- dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,burnAddress,block.timestamp.add(300)) (#1018-1023)
Event emitted after the call(s):
- SwapETHForTokens(amount,path) (#1025)
- buyBackTokens(buyBackAmount) (#949)
- Transfer(sender,address(this),tLiquidity) (#1149)
- _tokenTransfer(from,to,amount,takeFee) (#959)
- Transfer(sender,recipient,tTransferAmount) (#1096)
- _tokenTransfer(from,to,amount,takeFee) (#959)
Reentrancy in MysteryCat.constructor() (#670-700):
External calls:
- lpPair = IUniswapV2Factory(_dexRouter.factory()).createPair(address(this),_dexRouter.WETH()) (#675-676)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#906)
- _approve(_msgSender(),_routerAddress,_tTotal) (#697)
- Transfer(address(0),_msgSender(),_tTotal) (#699)
Reentrancy in MysteryCat.swapAndLiquify(uint256) (#968-1004):
External calls:
- swapTokensForEth(toSwapForEth) (#989)
- dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1037-1043)
- addLiquidity(otherHalf,liquidityBalance) (#999)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1051-1058)
External calls sending eth:
- addLiquidity(otherHalf,liquidityBalance) (#999)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1051-1058)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#906)
- addLiquidity(otherHalf,liquidityBalance) (#999)
- SwapAndLiquify(half,liquidityBalance,otherHalf) (#1001)
Reentrancy in MysteryCat.swapETHForTokens(uint256) (#1011-1026):
External calls:
- dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,burnAddress,block.timestamp.add(300)) (#1018-1023)
Event emitted after the call(s):
- SwapETHForTokens(amount,path) (#1025)
Reentrancy in MysteryCat.transferFrom(address,address,uint256) (#724-728):
External calls:
- _transfer(sender,recipient,amount) (#725)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1051-1058)
- dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,burnAddress,block.timestamp.add(300)) (#1018-1023)
- dexRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1037-1043)
External calls sending eth:
- _transfer(sender,recipient,amount) (#725)
- _devWallet.transfer(devBalance) (#1007)
- _marketingWallet.transfer(marketingBalance) (#1008)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1051-1058)
- dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,burnAddress,block.timestamp.add(300)) (#1018-1023)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#906)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#726)
Apply the check-effects-interactions pattern.
Additional information: link
Address.isContract(address) (#271-280) uses assembly
- INLINE ASM (#278)
Address._functionCallWithValue(address,bytes,uint256,string) (#308-329) uses assembly
- INLINE ASM (#321-324)
Do not use evm assembly.
Additional information: link
MysteryCat.restoreAllFee() (#1181-1190) compares to a boolean constant:
-Reverse == true (#1188)
Remove the equality to the boolean constant.
Additional information: link
MysteryCat.includeInReward(address) (#885-896) has costly operations inside a loop:
- _excluded.pop() (#892)
Use a local variable to hold the loop computation result.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#308-329) is never used and should be removed
Address.functionCall(address,bytes) (#290-292) is never used and should be removed
Address.functionCall(address,bytes,string) (#294-296) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#299-301) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#303-306) is never used and should be removed
Address.isContract(address) (#271-280) is never used and should be removed
Address.sendValue(address,uint256) (#282-288) is never used and should be removed
Context._msgData() (#15-19) is never used and should be removed
SafeMath.mod(uint256,uint256) (#248-250) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#264-267) is never used and should be removed
Remove unused functions.
Additional information: link
MysteryCat._decimalsMul (#576) is set pre-construction with a non-constant function or state variable:
- _decimals
MysteryCat._tTotal (#577) is set pre-construction with a non-constant function or state variable:
- startingSupply * 10 ** _decimalsMul
MysteryCat._rTotal (#578) is set pre-construction with a non-constant function or state variable:
- (MAX - (MAX % _tTotal))
MysteryCat._previousReflectFee (#585) is set pre-construction with a non-constant function or state variable:
- _reflectFee
MysteryCat._previousLiquidityFee (#589) is set pre-construction with a non-constant function or state variable:
- _liquidityFee
MysteryCat._previousMarketingFee (#593) is set pre-construction with a non-constant function or state variable:
- _marketingFee
MysteryCat._previousBuyBackFee (#597) is set pre-construction with a non-constant function or state variable:
- _buyBackFee
MysteryCat._previousDevFee (#601) is set pre-construction with a non-constant function or state variable:
- _devFee
MysteryCat.buyBackSellLimit (#621) is set pre-construction with a non-constant function or state variable:
- (_tTotal * 2) / 100
MysteryCat._maxTxAmount (#629) is set pre-construction with a non-constant function or state variable:
- (_tTotal * maxTxPercent) / maxTxDivisor
MysteryCat._previousMaxTxAmount (#630) is set pre-construction with a non-constant function or state variable:
- _maxTxAmount
MysteryCat.maxTxAmountUI (#631) is set pre-construction with a non-constant function or state variable:
- (startingSupply * maxTxPercent) / maxTxDivisor
MysteryCat._maxWalletAmount (#636) is set pre-construction with a non-constant function or state variable:
- (_tTotal * maxWalletPercent) / maxWalletDivisor
MysteryCat._previousMaxWalletAmount (#637) is set pre-construction with a non-constant function or state variable:
- _maxWalletAmount
MysteryCat.maxWalletAmountUI (#638) is set pre-construction with a non-constant function or state variable:
- (startingSupply * maxWalletPercent) / maxWalletDivisor
MysteryCat.numTokensSellToAddToLiquidity (#643) 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 (#8) 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) (#282-288):
- (success) = recipient.call{value: amount}() (#286)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#308-329):
- (success,returndata) = target.call{value: weiValue}(data) (#312)
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() (#357) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#358) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#372) is not in mixedCase
Function IUniswapV2Router01.WETH() (#390) is not in mixedCase
Parameter MysteryCat.setSwapAndLiquifyEnabled(bool)._enabled (#800) is not in mixedCase
Parameter MysteryCat.setBuyBackEnabled(bool)._enabled (#805) is not in mixedCase
Parameter MysteryCat.calculateTaxFee(uint256)._amount (#1152) is not in mixedCase
Parameter MysteryCat.calculateLiquidityFee(uint256)._amount (#1156) is not in mixedCase
Variable MysteryCat._reflectFee (#584) is not in mixedCase
Variable MysteryCat._ReverseReflectFee (#586) is not in mixedCase
Variable MysteryCat._liquidityFee (#588) is not in mixedCase
Variable MysteryCat._ReverseLiquidityFee (#590) is not in mixedCase
Variable MysteryCat._marketingFee (#592) is not in mixedCase
Variable MysteryCat._ReverseMarketingFee (#594) is not in mixedCase
Variable MysteryCat._buyBackFee (#596) is not in mixedCase
Variable MysteryCat._ReverseBuyBackFee (#598) is not in mixedCase
Variable MysteryCat._devFee (#600) is not in mixedCase
Variable MysteryCat._ReverseDevFee (#602) is not in mixedCase
Variable MysteryCat.ReverseTaxes (#623) is not in mixedCase
Variable MysteryCat.Reverse (#624) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#16)" inContext (#10-20)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in MysteryCat._transfer(address,address,uint256) (#909-960):
External calls:
- swapAndLiquify(contractTokenBalance) (#943)
- _devWallet.transfer(devBalance) (#1007)
- _marketingWallet.transfer(marketingBalance) (#1008)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#943)
- _devWallet.transfer(devBalance) (#1007)
- _marketingWallet.transfer(marketingBalance) (#1008)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1051-1058)
- buyBackTokens(buyBackAmount) (#949)
- dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,burnAddress,block.timestamp.add(300)) (#1018-1023)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#959)
- Reverse = true (#1066)
- Reverse = false (#1189)
- _tokenTransfer(from,to,amount,takeFee) (#959)
- _buyBackFee = _previousBuyBackFee (#1184)
- _buyBackFee = _ReverseBuyBackFee (#1201)
- _buyBackFee = 0 (#1176)
- _tokenTransfer(from,to,amount,takeFee) (#959)
- _devFee = _previousDevFee (#1186)
- _devFee = _ReverseDevFee (#1203)
- _devFee = 0 (#1178)
- _tokenTransfer(from,to,amount,takeFee) (#959)
- _liquidityFee = _previousLiquidityFee (#1183)
- _liquidityFee = _ReverseLiquidityFee (#1200)
- _liquidityFee = 0 (#1175)
- _tokenTransfer(from,to,amount,takeFee) (#959)
- _marketingFee = _previousMarketingFee (#1185)
- _marketingFee = _ReverseMarketingFee (#1202)
- _marketingFee = 0 (#1177)
- _tokenTransfer(from,to,amount,takeFee) (#959)
- _previousBuyBackFee = _buyBackFee (#1195)
- _previousBuyBackFee = _buyBackFee (#1170)
- _tokenTransfer(from,to,amount,takeFee) (#959)
- _previousDevFee = _devFee (#1197)
- _previousDevFee = _devFee (#1172)
- _tokenTransfer(from,to,amount,takeFee) (#959)
- _previousLiquidityFee = _liquidityFee (#1194)
- _previousLiquidityFee = _liquidityFee (#1169)
- _tokenTransfer(from,to,amount,takeFee) (#959)
- _previousMarketingFee = _marketingFee (#1196)
- _previousMarketingFee = _marketingFee (#1171)
- _tokenTransfer(from,to,amount,takeFee) (#959)
- _previousReflectFee = _reflectFee (#1193)
- _previousReflectFee = _reflectFee (#1168)
- _tokenTransfer(from,to,amount,takeFee) (#959)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#1146)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1079)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1080)
- _tokenTransfer(from,to,amount,takeFee) (#959)
- _rTotal = _rTotal.sub(rFee) (#1139)
- _tokenTransfer(from,to,amount,takeFee) (#959)
- _reflectFee = _previousReflectFee (#1182)
- _reflectFee = _ReverseReflectFee (#1199)
- _reflectFee = 0 (#1174)
- _tokenTransfer(from,to,amount,takeFee) (#959)
- _tFeeTotal = _tFeeTotal.add(tFee) (#1140)
- _tokenTransfer(from,to,amount,takeFee) (#959)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#1148)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#1083)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#1085)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#1087)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#1088)
- buyBackTokens(buyBackAmount) (#949)
- inSwapAndLiquify = true (#665)
- inSwapAndLiquify = false (#667)
Event emitted after the call(s):
- SwapETHForTokens(amount,path) (#1025)
- buyBackTokens(buyBackAmount) (#949)
- Transfer(sender,address(this),tLiquidity) (#1149)
- _tokenTransfer(from,to,amount,takeFee) (#959)
- Transfer(sender,recipient,tTransferAmount) (#1096)
- _tokenTransfer(from,to,amount,takeFee) (#959)
Reentrancy in MysteryCat.transferFrom(address,address,uint256) (#724-728):
External calls:
- _transfer(sender,recipient,amount) (#725)
- _devWallet.transfer(devBalance) (#1007)
- _marketingWallet.transfer(marketingBalance) (#1008)
External calls sending eth:
- _transfer(sender,recipient,amount) (#725)
- _devWallet.transfer(devBalance) (#1007)
- _marketingWallet.transfer(marketingBalance) (#1008)
- dexRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,burnAddress,block.timestamp) (#1051-1058)
- dexRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,burnAddress,block.timestamp.add(300)) (#1018-1023)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#726)
- _allowances[owner][spender] = amount (#905)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#906)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#726)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#394) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#395)
Variable MysteryCat._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#1116) is too similar to MysteryCat._getValues(uint256).tTransferAmount (#1100)
Variable MysteryCat.reflectionFromToken(uint256,bool).rTransferAmount (#864) is too similar to MysteryCat._getValues(uint256).tTransferAmount (#1100)
Variable MysteryCat._finalizeTransfer(address,address,uint256).rTransferAmount (#1077) is too similar to MysteryCat._getTValues(uint256).tTransferAmount (#1108)
Variable MysteryCat._finalizeTransfer(address,address,uint256).rTransferAmount (#1077) is too similar to MysteryCat._getValues(uint256).tTransferAmount (#1100)
Variable MysteryCat._finalizeTransfer(address,address,uint256).rTransferAmount (#1077) is too similar to MysteryCat._finalizeTransfer(address,address,uint256).tTransferAmount (#1077)
Variable MysteryCat._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#1116) is too similar to MysteryCat._getTValues(uint256).tTransferAmount (#1108)
Variable MysteryCat._getValues(uint256).rTransferAmount (#1101) is too similar to MysteryCat._finalizeTransfer(address,address,uint256).tTransferAmount (#1077)
Variable MysteryCat.reflectionFromToken(uint256,bool).rTransferAmount (#864) is too similar to MysteryCat._finalizeTransfer(address,address,uint256).tTransferAmount (#1077)
Variable MysteryCat._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#1116) is too similar to MysteryCat._finalizeTransfer(address,address,uint256).tTransferAmount (#1077)
Variable MysteryCat._getValues(uint256).rTransferAmount (#1101) is too similar to MysteryCat._getValues(uint256).tTransferAmount (#1100)
Variable MysteryCat.reflectionFromToken(uint256,bool).rTransferAmount (#864) is too similar to MysteryCat._getTValues(uint256).tTransferAmount (#1108)
Variable MysteryCat._getValues(uint256).rTransferAmount (#1101) is too similar to MysteryCat._getTValues(uint256).tTransferAmount (#1108)
Prevent variables from having similar names.
Additional information: link
MysteryCat._previousMaxTxAmount (#630) is never used in MysteryCat (#557-1206)
MysteryCat._previousMaxWalletAmount (#637) is never used in MysteryCat (#557-1206)
Remove unused state variables.
Additional information: link
MysteryCat._decimals (#575) should be constant
MysteryCat._devWallet (#615) should be constant
MysteryCat._name (#581) should be constant
MysteryCat._routerAddress (#611) should be constant
MysteryCat._symbol (#582) should be constant
MysteryCat.burnAddress (#613) should be constant
MysteryCat.masterTaxDivisor (#604) should be constant
MysteryCat.maxTxDivisor (#628) should be constant
MysteryCat.maxTxPercent (#627) should be constant
MysteryCat.maxWalletDivisor (#635) should be constant
MysteryCat.maxWalletPercent (#634) should be constant
MysteryCat.maximumTaxesPercent (#605) should be constant
MysteryCat.startingSupply (#572) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#542-545)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#547-552)
transfer(address,uint256) should be declared external:
- MysteryCat.transfer(address,uint256) (#714-717)
approve(address,uint256) should be declared external:
- MysteryCat.approve(address,uint256) (#719-722)
transferFrom(address,address,uint256) should be declared external:
- MysteryCat.transferFrom(address,address,uint256) (#724-728)
increaseAllowance(address,uint256) should be declared external:
- MysteryCat.increaseAllowance(address,uint256) (#730-733)
decreaseAllowance(address,uint256) should be declared external:
- MysteryCat.decreaseAllowance(address,uint256) (#735-738)
setNewRouter(address) should be declared external:
- MysteryCat.setNewRouter(address) (#740-750)
isExcludedFromReward(address) should be declared external:
- MysteryCat.isExcludedFromReward(address) (#752-754)
isExcludedFromFee(address) should be declared external:
- MysteryCat.isExcludedFromFee(address) (#756-758)
setSwapAndLiquifyEnabled(bool) should be declared external:
- MysteryCat.setSwapAndLiquifyEnabled(bool) (#800-803)
setBuyBackEnabled(bool) should be declared external:
- MysteryCat.setBuyBackEnabled(bool) (#805-808)
excludeFromFee(address) should be declared external:
- MysteryCat.excludeFromFee(address) (#828-830)
totalFees() should be declared external:
- MysteryCat.totalFees() (#836-838)
deliver(uint256) should be declared external:
- MysteryCat.deliver(uint256) (#849-856)
reflectionFromToken(uint256,bool) should be declared external:
- MysteryCat.reflectionFromToken(uint256,bool) (#858-867)
excludeFromReward(address) should be declared external:
- MysteryCat.excludeFromReward(address) (#875-883)
Use the external attribute for functions never called from the contract.
Additional information: link
Average 30d PancakeSwap liquidity is less than $100. Token is either dead or inactive.
Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive. Ignore for presale.
Contract has 12% buy tax and 12% sell tax.
Taxes are high (over 10%) but contract ownership is renounced.
Average 30d PancakeSwap volume is low.
Average 30d number of PancakeSwap swaps is low.
Token is deployed only at one blockchain
Token has only one trading pair
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