Carrot is created with a sole purpose to allow investors to collect $BNB while holding $CARROT. This business model is relatively new in the market. Allowing Carrot Project to be a potential hit token in the Cryptocurrency World.
Utils.swapETHForTokens(address,address,uint256) (#764-783) sends eth to arbitrary user
Dangerous calls:
- pancakeRouter.swapExactETHForTokensSupportingFeeOnTransferTokens{value: ethAmount}(0,path,address(recipient),block.timestamp + 360) (#777-782)
Utils.addLiquidity(address,address,uint256,uint256) (#785-802) sends eth to arbitrary user
Dangerous calls:
- pancakeRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner,block.timestamp + 360) (#794-801)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in CarrotToken._transfer(address,address,uint256,uint256) (#1174-1199):
External calls:
- swapAndLiquify(from,to) (#1187)
- pancakeRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner,block.timestamp + 360) (#794-801)
- pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#755-761)
- Utils.swapTokensForEth(address(pancakeRouter),tokenAmountToBeSwapped) (#1394)
- Utils.addLiquidity(address(pancakeRouter),owner(),otherPiece,bnbToBeAddedToLiquidity) (#1407)
External calls sending eth:
- swapAndLiquify(from,to) (#1187)
- pancakeRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner,block.timestamp + 360) (#794-801)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#1198)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#1130)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1227)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1236)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1247)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1052)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1228)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1238)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1248)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1054)
- _tokenTransfer(from,to,amount,takeFee) (#1198)
- _rTotal = _rTotal.sub(rFee) (#1085)
- _tokenTransfer(from,to,amount,takeFee) (#1198)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#1132)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#1051)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#1246)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#1237)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#1053)
Apply the check-effects-interactions pattern.
Additional information: link
CarrotToken.claimBNBReward() (#1303-1325) contains a tautology or contradiction:
- require(bool,string)(balanceOf(msg.sender) >= 0,Error: must own MRAT to claim reward) (#1305)
Fix the incorrect comparison by changing the value type or the comparison.
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.
Contract ownership is not renounced (belongs to a wallet)
Reentrancy in CarrotToken.claimBNBReward() (#1303-1325):
External calls:
- Utils.swapETHForTokens(address(pancakeRouter),address(0x000000000000000000000000000000000000dEaD),reward.div(5)) (#1311-1315)
State variables written after the call(s):
- nextAvailableClaimDate[msg.sender] = block.timestamp + getRewardCycleBlock() (#1320)
Apply the check-effects-interactions pattern.
Additional information: link
Utils.addLiquidity(address,address,uint256,uint256) (#785-802) ignores return value by pancakeRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner,block.timestamp + 360) (#794-801)
Ensure that all the return values of the function calls are used.
Additional information: link
CarrotToken.allowance(address,address).owner (#967) shadows:
- Ownable.owner() (#412-414) (function)
CarrotToken._approve(address,address,uint256).owner (#1166) shadows:
- Ownable.owner() (#412-414) (function)
Rename the local variables that shadow another component.
Additional information: link
CarrotToken.setTaxFeePercent(uint256) (#1068-1070) should emit an event for:
- _taxFee = taxFee (#1069)
CarrotToken.setLiquidityFeePercent(uint256) (#1072-1074) should emit an event for:
- _liquidityFee = liquidityFee (#1073)
CarrotToken.setMaxTxPercent(uint256) (#1275-1277) should emit an event for:
- _maxTxAmount = _tTotal.mul(maxTxPercent).div(10000) (#1276)
Emit an event for critical parameter changes.
Additional information: link
Reentrancy in CarrotToken._transfer(address,address,uint256,uint256) (#1174-1199):
External calls:
- swapAndLiquify(from,to) (#1187)
- pancakeRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner,block.timestamp + 360) (#794-801)
- pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#755-761)
- Utils.swapTokensForEth(address(pancakeRouter),tokenAmountToBeSwapped) (#1394)
- Utils.addLiquidity(address(pancakeRouter),owner(),otherPiece,bnbToBeAddedToLiquidity) (#1407)
External calls sending eth:
- swapAndLiquify(from,to) (#1187)
- pancakeRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner,block.timestamp + 360) (#794-801)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#1198)
- _liquidityFee = _previousLiquidityFee (#1159)
- _liquidityFee = 0 (#1154)
- _tokenTransfer(from,to,amount,takeFee) (#1198)
- _previousLiquidityFee = _liquidityFee (#1151)
- _tokenTransfer(from,to,amount,takeFee) (#1198)
- _previousTaxFee = _taxFee (#1150)
- _tokenTransfer(from,to,amount,takeFee) (#1198)
- _tFeeTotal = _tFeeTotal.add(tFee) (#1086)
- _tokenTransfer(from,to,amount,takeFee) (#1198)
- _taxFee = _previousTaxFee (#1158)
- _taxFee = 0 (#1153)
- _tokenTransfer(from,to,amount,takeFee) (#1198)
- nextAvailableClaimDate[recipient] = nextAvailableClaimDate[recipient] + Utils.calculateTopUpClaim(currentRecipientBalance,basedRewardCycleBlock,threshHoldTopUpRate,amount) (#1331-1336)
Reentrancy in CarrotToken.constructor() (#917-939):
External calls:
- pancakePair = IPancakeFactory(_pancakeRouter.factory()).createPair(address(this),_pancakeRouter.WETH()) (#922-923)
State variables written after the call(s):
- _isExcludedFromFee[owner()] = true (#929)
- _isExcludedFromFee[address(this)] = true (#930)
- _isExcludedFromMaxTx[owner()] = true (#933)
- _isExcludedFromMaxTx[address(this)] = true (#934)
- _isExcludedFromMaxTx[address(0x000000000000000000000000000000000000dEaD)] = true (#935)
- _isExcludedFromMaxTx[address(0)] = true (#936)
- pancakeRouter = _pancakeRouter (#926)
Reentrancy in CarrotToken.transferFrom(address,address,uint256) (#976-980):
External calls:
- _transfer(sender,recipient,amount,0) (#977)
- pancakeRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner,block.timestamp + 360) (#794-801)
- pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#755-761)
- Utils.swapTokensForEth(address(pancakeRouter),tokenAmountToBeSwapped) (#1394)
- Utils.addLiquidity(address(pancakeRouter),owner(),otherPiece,bnbToBeAddedToLiquidity) (#1407)
External calls sending eth:
- _transfer(sender,recipient,amount,0) (#977)
- pancakeRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner,block.timestamp + 360) (#794-801)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,BEP20: transfer amount exceeds allowance)) (#978)
- _allowances[owner][spender] = amount (#1170)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in CarrotToken._transfer(address,address,uint256,uint256) (#1174-1199):
External calls:
- swapAndLiquify(from,to) (#1187)
- pancakeRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner,block.timestamp + 360) (#794-801)
- pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#755-761)
- Utils.swapTokensForEth(address(pancakeRouter),tokenAmountToBeSwapped) (#1394)
- Utils.addLiquidity(address(pancakeRouter),owner(),otherPiece,bnbToBeAddedToLiquidity) (#1407)
External calls sending eth:
- swapAndLiquify(from,to) (#1187)
- pancakeRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner,block.timestamp + 360) (#794-801)
Event emitted after the call(s):
- Transfer(sender,recipient,tTransferAmount) (#1231)
- _tokenTransfer(from,to,amount,takeFee) (#1198)
- Transfer(sender,recipient,tTransferAmount) (#1241)
- _tokenTransfer(from,to,amount,takeFee) (#1198)
- Transfer(sender,recipient,tTransferAmount) (#1251)
- _tokenTransfer(from,to,amount,takeFee) (#1198)
- Transfer(sender,recipient,tTransferAmount) (#1057)
- _tokenTransfer(from,to,amount,takeFee) (#1198)
Reentrancy in CarrotToken.claimBNBReward() (#1303-1325):
External calls:
- Utils.swapETHForTokens(address(pancakeRouter),address(0x000000000000000000000000000000000000dEaD),reward.div(5)) (#1311-1315)
Event emitted after the call(s):
- ClaimBNBSuccessfully(msg.sender,reward,nextAvailableClaimDate[msg.sender]) (#1321)
Reentrancy in CarrotToken.constructor() (#917-939):
External calls:
- pancakePair = IPancakeFactory(_pancakeRouter.factory()).createPair(address(this),_pancakeRouter.WETH()) (#922-923)
Event emitted after the call(s):
- Transfer(address(0),_msgSender(),_tTotal) (#938)
Reentrancy in CarrotToken.swapAndLiquify(address,address) (#1360-1411):
External calls:
- Utils.swapTokensForEth(address(pancakeRouter),tokenAmountToBeSwapped) (#1394)
- Utils.addLiquidity(address(pancakeRouter),owner(),otherPiece,bnbToBeAddedToLiquidity) (#1407)
Event emitted after the call(s):
- SwapAndLiquify(piece,deltaBalance,otherPiece) (#1409)
Reentrancy in CarrotToken.transferFrom(address,address,uint256) (#976-980):
External calls:
- _transfer(sender,recipient,amount,0) (#977)
- pancakeRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner,block.timestamp + 360) (#794-801)
- pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#755-761)
- Utils.swapTokensForEth(address(pancakeRouter),tokenAmountToBeSwapped) (#1394)
- Utils.addLiquidity(address(pancakeRouter),owner(),otherPiece,bnbToBeAddedToLiquidity) (#1407)
External calls sending eth:
- _transfer(sender,recipient,amount,0) (#977)
- pancakeRouter.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner,block.timestamp + 360) (#794-801)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#1171)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,BEP20: transfer amount exceeds allowance)) (#978)
Apply the check-effects-interactions pattern.
Additional information: link
CarrotToken._rTotal (#886) is set pre-construction with a non-constant function or state variable:
- (MAX - (MAX % _tTotal))
CarrotToken._maxTxAmount (#1258) is set pre-construction with a non-constant function or state variable:
- _tTotal
CarrotToken._previousTaxFee (#1267) is set pre-construction with a non-constant function or state variable:
- _taxFee
CarrotToken._previousLiquidityFee (#1270) is set pre-construction with a non-constant function or state variable:
- _liquidityFee
CarrotToken.minTokenNumberToSell (#1273) is set pre-construction with a non-constant function or state variable:
- _tTotal.mul(1).div(10000).div(10)
Remove any initialization of state variables via non-constant state variables or function calls. If variables must be set upon contract deployment, locate initialization in the constructor instead.
Additional information: link
Low level call in Address.sendValue(address,uint256) (#291-297):
- (success) = recipient.call{value: amount}() (#295)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#357-378):
- (success,returndata) = target.call{value: weiValue}(data) (#361)
Low level call in CarrotToken.claimBNBReward() (#1303-1325):
- (sent) = address(msg.sender).call{value: reward}() (#1323)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IPancakePair.DOMAIN_SEPARATOR() (#498) is not in mixedCase
Function IPancakePair.PERMIT_TYPEHASH() (#499) is not in mixedCase
Function IPancakePair.MINIMUM_LIQUIDITY() (#516) is not in mixedCase
Function IPancakeRouter01.WETH() (#536) is not in mixedCase
Parameter CarrotToken.setSwapAndLiquifyEnabled(bool)._enabled (#1076) is not in mixedCase
Parameter CarrotToken.calculateTaxFee(uint256)._amount (#1135) is not in mixedCase
Parameter CarrotToken.calculateLiquidityFee(uint256)._amount (#1141) is not in mixedCase
Parameter CarrotToken.setExcludeFromMaxTx(address,bool)._address (#1279) is not in mixedCase
Variable CarrotToken._maxTxAmount (#1258) is not in mixedCase
Variable CarrotToken._taxFee (#1266) is not in mixedCase
Variable CarrotToken._liquidityFee (#1269) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#237)" inContext (#231-240)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Ownable.unlock() (#459-464) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(now > _lockTime,Contract is locked until 7 days) (#461)
Utils.isLotteryWon(uint256,uint256) (#689-693) uses timestamp for comparisons
Dangerous comparisons:
- luckyNumber <= winPercentage (#692)
CarrotToken.getRewardCycleBlock() (#1298-1301) uses timestamp for comparisons
Dangerous comparisons:
- block.timestamp >= disableEasyRewardFrom (#1299)
CarrotToken.claimBNBReward() (#1303-1325) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(nextAvailableClaimDate[msg.sender] <= block.timestamp,Error: next available not reached) (#1304)
CarrotToken.ensureMaxTxAmount(address,address,uint256,uint256) (#1339-1353) uses timestamp for comparisons
Dangerous comparisons:
- value < disruptiveCoverageFee && block.timestamp >= disruptiveTransferEnabledFrom (#1349)
Avoid relying on block.timestamp.
Additional information: link
Address.isContract(address) (#264-273) uses assembly
- INLINE ASM (#271)
Address._functionCallWithValue(address,bytes,uint256,string) (#357-378) uses assembly
- INLINE ASM (#370-373)
Do not use evm assembly.
Additional information: link
CarrotToken.ensureMaxTxAmount(address,address,uint256,uint256) (#1339-1353) compares to a boolean constant:
-_isExcludedFromMaxTx[from] == false && _isExcludedFromMaxTx[to] == false (#1346-1347)
Remove the equality to the boolean constant.
Additional information: link
CarrotToken.includeInReward(address) (#1036-1047) has costly operations inside a loop:
- _excluded.pop() (#1043)
Use a local variable to hold the loop computation result.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#357-378) is never used and should be removed
Address.functionCall(address,bytes) (#317-319) is never used and should be removed
Address.functionCall(address,bytes,string) (#327-329) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#342-344) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#352-355) is never used and should be removed
Address.isContract(address) (#264-273) is never used and should be removed
Address.sendValue(address,uint256) (#291-297) is never used and should be removed
Context._msgData() (#236-239) is never used and should be removed
Remove unused functions.
Additional information: link
Variable IPancakeRouter01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#541) is too similar to IPancakeRouter01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#542)
Variable CarrotToken._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#1106) is too similar to CarrotToken._getTValues(uint256).tTransferAmount (#1098)
Variable CarrotToken._transferBothExcluded(address,address,uint256).rTransferAmount (#1050) is too similar to CarrotToken._transferStandard(address,address,uint256).tTransferAmount (#1226)
Variable CarrotToken._transferStandard(address,address,uint256).rTransferAmount (#1226) is too similar to CarrotToken._transferStandard(address,address,uint256).tTransferAmount (#1226)
Variable CarrotToken._transferFromExcluded(address,address,uint256).rTransferAmount (#1245) is too similar to CarrotToken._getValues(uint256).tTransferAmount (#1090)
Variable CarrotToken._transferToExcluded(address,address,uint256).rTransferAmount (#1235) is too similar to CarrotToken._transferStandard(address,address,uint256).tTransferAmount (#1226)
Variable CarrotToken._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#1106) is too similar to CarrotToken._transferStandard(address,address,uint256).tTransferAmount (#1226)
Variable CarrotToken._transferBothExcluded(address,address,uint256).rTransferAmount (#1050) is too similar to CarrotToken._transferFromExcluded(address,address,uint256).tTransferAmount (#1245)
Variable CarrotToken._transferFromExcluded(address,address,uint256).rTransferAmount (#1245) is too similar to CarrotToken._transferBothExcluded(address,address,uint256).tTransferAmount (#1050)
Variable CarrotToken._transferFromExcluded(address,address,uint256).rTransferAmount (#1245) is too similar to CarrotToken._getTValues(uint256).tTransferAmount (#1098)
Variable CarrotToken._transferToExcluded(address,address,uint256).rTransferAmount (#1235) is too similar to CarrotToken._transferFromExcluded(address,address,uint256).tTransferAmount (#1245)
Variable CarrotToken._transferBothExcluded(address,address,uint256).rTransferAmount (#1050) is too similar to CarrotToken._transferToExcluded(address,address,uint256).tTransferAmount (#1235)
Variable CarrotToken._transferToExcluded(address,address,uint256).rTransferAmount (#1235) is too similar to CarrotToken._transferToExcluded(address,address,uint256).tTransferAmount (#1235)
Variable CarrotToken._transferFromExcluded(address,address,uint256).rTransferAmount (#1245) is too similar to CarrotToken._transferStandard(address,address,uint256).tTransferAmount (#1226)
Variable CarrotToken.reflectionFromToken(uint256,bool).rTransferAmount (#1015) is too similar to CarrotToken._getValues(uint256).tTransferAmount (#1090)
Variable CarrotToken._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#1106) is too similar to CarrotToken._transferToExcluded(address,address,uint256).tTransferAmount (#1235)
Variable CarrotToken._transferFromExcluded(address,address,uint256).rTransferAmount (#1245) is too similar to CarrotToken._transferFromExcluded(address,address,uint256).tTransferAmount (#1245)
Variable CarrotToken._transferBothExcluded(address,address,uint256).rTransferAmount (#1050) is too similar to CarrotToken._getValues(uint256).tTransferAmount (#1090)
Variable CarrotToken._transferStandard(address,address,uint256).rTransferAmount (#1226) is too similar to CarrotToken._getValues(uint256).tTransferAmount (#1090)
Variable CarrotToken._transferToExcluded(address,address,uint256).rTransferAmount (#1235) is too similar to CarrotToken._getValues(uint256).tTransferAmount (#1090)
Variable CarrotToken._transferFromExcluded(address,address,uint256).rTransferAmount (#1245) is too similar to CarrotToken._transferToExcluded(address,address,uint256).tTransferAmount (#1235)
Variable CarrotToken._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#1106) is too similar to CarrotToken._getValues(uint256).tTransferAmount (#1090)
Variable CarrotToken._transferBothExcluded(address,address,uint256).rTransferAmount (#1050) is too similar to CarrotToken._transferBothExcluded(address,address,uint256).tTransferAmount (#1050)
Variable CarrotToken._transferToExcluded(address,address,uint256).rTransferAmount (#1235) is too similar to CarrotToken._transferBothExcluded(address,address,uint256).tTransferAmount (#1050)
Variable CarrotToken._transferBothExcluded(address,address,uint256).rTransferAmount (#1050) is too similar to CarrotToken._getTValues(uint256).tTransferAmount (#1098)
Variable CarrotToken._transferToExcluded(address,address,uint256).rTransferAmount (#1235) is too similar to CarrotToken._getTValues(uint256).tTransferAmount (#1098)
Variable CarrotToken.reflectionFromToken(uint256,bool).rTransferAmount (#1015) is too similar to CarrotToken._transferStandard(address,address,uint256).tTransferAmount (#1226)
Variable CarrotToken._transferStandard(address,address,uint256).rTransferAmount (#1226) is too similar to CarrotToken._transferToExcluded(address,address,uint256).tTransferAmount (#1235)
Variable CarrotToken._transferStandard(address,address,uint256).rTransferAmount (#1226) is too similar to CarrotToken._getTValues(uint256).tTransferAmount (#1098)
Variable CarrotToken.reflectionFromToken(uint256,bool).rTransferAmount (#1015) is too similar to CarrotToken._transferToExcluded(address,address,uint256).tTransferAmount (#1235)
Variable CarrotToken.reflectionFromToken(uint256,bool).rTransferAmount (#1015) is too similar to CarrotToken._getTValues(uint256).tTransferAmount (#1098)
Variable CarrotToken._getValues(uint256).rTransferAmount (#1091) is too similar to CarrotToken._getValues(uint256).tTransferAmount (#1090)
Variable CarrotToken._transferStandard(address,address,uint256).rTransferAmount (#1226) is too similar to CarrotToken._transferBothExcluded(address,address,uint256).tTransferAmount (#1050)
Variable CarrotToken.reflectionFromToken(uint256,bool).rTransferAmount (#1015) is too similar to CarrotToken._transferBothExcluded(address,address,uint256).tTransferAmount (#1050)
Variable CarrotToken._transferStandard(address,address,uint256).rTransferAmount (#1226) is too similar to CarrotToken._transferFromExcluded(address,address,uint256).tTransferAmount (#1245)
Variable CarrotToken.reflectionFromToken(uint256,bool).rTransferAmount (#1015) is too similar to CarrotToken._transferFromExcluded(address,address,uint256).tTransferAmount (#1245)
Variable CarrotToken._getValues(uint256).rTransferAmount (#1091) is too similar to CarrotToken._transferToExcluded(address,address,uint256).tTransferAmount (#1235)
Variable CarrotToken._getValues(uint256).rTransferAmount (#1091) is too similar to CarrotToken._getTValues(uint256).tTransferAmount (#1098)
Variable CarrotToken._getValues(uint256).rTransferAmount (#1091) is too similar to CarrotToken._transferStandard(address,address,uint256).tTransferAmount (#1226)
Variable CarrotToken._getValues(uint256).rTransferAmount (#1091) is too similar to CarrotToken._transferBothExcluded(address,address,uint256).tTransferAmount (#1050)
Variable CarrotToken._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#1106) is too similar to CarrotToken._transferBothExcluded(address,address,uint256).tTransferAmount (#1050)
Variable CarrotToken._getValues(uint256).rTransferAmount (#1091) is too similar to CarrotToken._transferFromExcluded(address,address,uint256).tTransferAmount (#1245)
Variable CarrotToken._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#1106) is too similar to CarrotToken._transferFromExcluded(address,address,uint256).tTransferAmount (#1245)
Prevent variables from having similar names.
Additional information: link
CarrotToken.constructor() (#917-939) uses literals with too many digits:
- _isExcludedFromMaxTx[address(0x000000000000000000000000000000000000dEaD)] = true (#935)
CarrotToken.calculateBNBReward(address) (#1283-1296) uses literals with too many digits:
- totalSupplyAmount = uint256(_tTotal).sub(balanceOf(address(0))).sub(balanceOf(0x000000000000000000000000000000000000dEaD)).sub(balanceOf(address(pancakePair))) (#1284-1287)
CarrotToken.claimBNBReward() (#1303-1325) uses literals with too many digits:
- Utils.swapETHForTokens(address(pancakeRouter),address(0x000000000000000000000000000000000000dEaD),reward.div(5)) (#1311-1315)
CarrotToken.slitherConstructorVariables() (#870-1431) uses literals with too many digits:
- _tTotal = 1000000000 * 10 ** 6 * 10 ** 9 (#885)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
CarrotToken._decimals (#891) should be constant
CarrotToken._name (#889) should be constant
CarrotToken._symbol (#890) should be constant
CarrotToken._tTotal (#885) should be constant
CarrotToken.rewardThreshold (#1271) should be constant
CarrotToken.threshHoldTopUpRate (#1257) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#431-434)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#440-444)
geUnlockTime() should be declared external:
- Ownable.geUnlockTime() (#446-448)
lock(uint256) should be declared external:
- Ownable.lock(uint256) (#451-456)
unlock() should be declared external:
- Ownable.unlock() (#459-464)
calculateBNBReward(uint256,uint256,uint256,uint256) should be declared external:
- Utils.calculateBNBReward(uint256,uint256,uint256,uint256) (#695-715)
calculateTopUpClaim(uint256,uint256,uint256,uint256) should be declared external:
- Utils.calculateTopUpClaim(uint256,uint256,uint256,uint256) (#717-741)
swapTokensForEth(address,uint256) should be declared external:
- Utils.swapTokensForEth(address,uint256) (#743-762)
swapETHForTokens(address,address,uint256) should be declared external:
- Utils.swapETHForTokens(address,address,uint256) (#764-783)
addLiquidity(address,address,uint256,uint256) should be declared external:
- Utils.addLiquidity(address,address,uint256,uint256) (#785-802)
name() should be declared external:
- CarrotToken.name() (#941-943)
symbol() should be declared external:
- CarrotToken.symbol() (#945-947)
decimals() should be declared external:
- CarrotToken.decimals() (#949-951)
totalSupply() should be declared external:
- CarrotToken.totalSupply() (#953-955)
transfer(address,uint256) should be declared external:
- CarrotToken.transfer(address,uint256) (#962-965)
allowance(address,address) should be declared external:
- CarrotToken.allowance(address,address) (#967-969)
approve(address,uint256) should be declared external:
- CarrotToken.approve(address,uint256) (#971-974)
transferFrom(address,address,uint256) should be declared external:
- CarrotToken.transferFrom(address,address,uint256) (#976-980)
increaseAllowance(address,uint256) should be declared external:
- CarrotToken.increaseAllowance(address,uint256) (#982-985)
decreaseAllowance(address,uint256) should be declared external:
- CarrotToken.decreaseAllowance(address,uint256) (#987-990)
isExcludedFromReward(address) should be declared external:
- CarrotToken.isExcludedFromReward(address) (#992-994)
totalFees() should be declared external:
- CarrotToken.totalFees() (#996-998)
deliver(uint256) should be declared external:
- CarrotToken.deliver(uint256) (#1000-1007)
reflectionFromToken(uint256,bool) should be declared external:
- CarrotToken.reflectionFromToken(uint256,bool) (#1009-1018)
excludeFromReward(address) should be declared external:
- CarrotToken.excludeFromReward(address) (#1026-1034)
excludeFromFee(address) should be declared external:
- CarrotToken.excludeFromFee(address) (#1060-1062)
includeInFee(address) should be declared external:
- CarrotToken.includeInFee(address) (#1064-1066)
isExcludedFromFee(address) should be declared external:
- CarrotToken.isExcludedFromFee(address) (#1162-1164)
setExcludeFromMaxTx(address,bool) should be declared external:
- CarrotToken.setExcludeFromMaxTx(address,bool) (#1279-1281)
claimBNBReward() should be declared external:
- CarrotToken.claimBNBReward() (#1303-1325)
disruptiveTransfer(address,uint256) should be declared external:
- CarrotToken.disruptiveTransfer(address,uint256) (#1355-1358)
activateContract() should be declared external:
- CarrotToken.activateContract() (#1413-1429)
Use the external attribute for functions never called from the contract.
Additional information: link
Average 30d PancakeSwap volume is less than $100. Token is either dead or inactive.
Average 30d number of PancakeSwap swaps is less than 1. Token is either dead or inactive.
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Average 30d PancakeSwap liquidity is low.
Token is deployed only at one blockchain
Token has no active CoinMarketCap listing / rank
Token has a considerable age, but social accounts / website are missing or have few users
Token has a considerable age, but average PancakeSwap 30d trading volume is low
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Token has relatively low CoinGecko rank
Telegram account link seems to be invalid
Last post in Twitter was more than 180 days ago
Unable to find Youtube account
Unable to find Discord account