Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Garfieldcat.addLiquidity(uint256,uint256) (#1270-1285) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1276-1283)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in Garfieldcat._transfer(address,address,uint256) (#1128-1199):
External calls:
- swapAndSendToFee(marketingTokens) (#1155)
- IERC20(CAKE).transfer(_marketingWalletAddress,newBalance) (#1207)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1261-1267)
- swapAndLiquify(swapTokens) (#1158)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1276-1283)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1242-1248)
- swapAndSendDividends(sellTokens) (#1161)
- success = IERC20(CAKE).transfer(address(dividendTracker),dividends) (#1290)
- dividendTracker.distributeCAKEDividends(dividends) (#1293)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1261-1267)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1158)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1276-1283)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (#1181)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#645)
- _balances[recipient] = _balances[recipient].add(amount) (#646)
- super._transfer(from,to,amount) (#1184)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#645)
- _balances[recipient] = _balances[recipient].add(amount) (#646)
- swapping = false (#1163)
Apply the check-effects-interactions pattern.
Additional information: link
Garfieldcat.swapAndSendToFee(uint256) (#1201-1208) ignores return value by IERC20(CAKE).transfer(_marketingWalletAddress,newBalance) (#1207)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Combination 1: Reentrancy vulnerabilities + Functions that send Ether to arbitraty destination. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
Combination 2: Unchecked transfer + Functions that send Ether to arbitraty destination. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
Combination 3: Reentrancy vulnerabilities + Unchecked transfer vulnerability. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (#779-795):
External calls:
- success = IERC20(CAKE).transfer(user,_withdrawableDividend) (#784)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (#787)
Reentrancy in Garfieldcat.updateDividendTracker(address) (#964-979):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#971)
- newDividendTracker.excludeFromDividends(address(this)) (#972)
- newDividendTracker.excludeFromDividends(owner()) (#973)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#974)
State variables written after the call(s):
- dividendTracker = newDividendTracker (#978)
Apply the check-effects-interactions pattern.
Additional information: link
Garfieldcat._transfer(address,address,uint256).lastProcessedIndex (#1192) is a local variable never initialized
Garfieldcat._transfer(address,address,uint256).iterations (#1192) is a local variable never initialized
Garfieldcat._transfer(address,address,uint256).claims (#1192) is a local variable never initialized
Initialize all the variables. If a variable is meant to be initialized to zero, explicitly set it to zero to improve code readability.
Additional information: link
Garfieldcat.claim() (#1115-1117) ignores return value by dividendTracker.processAccount(msg.sender,false) (#1116)
Garfieldcat._transfer(address,address,uint256) (#1128-1199) ignores return value by dividendTracker.process(gas) (#1192-1197)
Garfieldcat.addLiquidity(uint256,uint256) (#1270-1285) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1276-1283)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendPayingToken.constructor(string,string)._name (#755) shadows:
- ERC20._name (#562) (state variable)
DividendPayingToken.constructor(string,string)._symbol (#755) shadows:
- ERC20._symbol (#563) (state variable)
DividendPayingToken.dividendOf(address)._owner (#799) shadows:
- Ownable._owner (#300) (state variable)
DividendPayingToken.withdrawableDividendOf(address)._owner (#804) shadows:
- Ownable._owner (#300) (state variable)
DividendPayingToken.withdrawnDividendOf(address)._owner (#809) shadows:
- Ownable._owner (#300) (state variable)
DividendPayingToken.accumulativeDividendOf(address)._owner (#815) shadows:
- Ownable._owner (#300) (state variable)
Rename the local variables that shadow another component.
Additional information: link
Garfieldcat.setCAKERewardsFee(uint256) (#1009-1012) should emit an event for:
- CAKERewardsFee = value (#1010)
- totalFees = CAKERewardsFee.add(liquidityFee).add(marketingFee) (#1011)
Garfieldcat.setLiquiditFee(uint256) (#1014-1017) should emit an event for:
- liquidityFee = value (#1015)
- totalFees = CAKERewardsFee.add(liquidityFee).add(marketingFee) (#1016)
Garfieldcat.setMarketingFee(uint256) (#1019-1023) should emit an event for:
- marketingFee = value (#1020)
- totalFees = CAKERewardsFee.add(liquidityFee).add(marketingFee) (#1021)
Emit an event for critical parameter changes.
Additional information: link
Garfieldcat.updateUniswapV2Router(address)._uniswapV2Pair (#985-986) lacks a zero-check on :
- uniswapV2Pair = _uniswapV2Pair (#987)
Garfieldcat.setMarketingWallet(address).wallet (#1005) lacks a zero-check on :
- _marketingWalletAddress = wallet (#1006)
Check that the address is not zero.
Additional information: link
DividendPayingToken._withdrawDividendOfUser(address) (#779-795) has external calls inside a loop: success = IERC20(CAKE).transfer(user,_withdrawableDividend) (#784)
Favor pull over push strategy for external calls.
Additional information: link
Variable 'Garfieldcat._transfer(address,address,uint256).lastProcessedIndex (#1192)' in Garfieldcat._transfer(address,address,uint256) (#1128-1199) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1193)
Variable 'Garfieldcat._transfer(address,address,uint256).claims (#1192)' in Garfieldcat._transfer(address,address,uint256) (#1128-1199) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1193)
Variable 'Garfieldcat._transfer(address,address,uint256).iterations (#1192)' in Garfieldcat._transfer(address,address,uint256) (#1128-1199) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1193)
Move all variable declarations prior to any usage of the variable, and ensure that reaching a variable declaration does not depend on some conditional if it is used unconditionally.
Additional information: link
Reentrancy in Garfieldcat._transfer(address,address,uint256) (#1128-1199):
External calls:
- swapAndSendToFee(marketingTokens) (#1155)
- IERC20(CAKE).transfer(_marketingWalletAddress,newBalance) (#1207)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1261-1267)
- swapAndLiquify(swapTokens) (#1158)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1276-1283)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1242-1248)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1158)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1276-1283)
State variables written after the call(s):
- swapAndLiquify(swapTokens) (#1158)
- _allowances[owner][spender] = amount (#681)
Reentrancy in Garfieldcat._transfer(address,address,uint256) (#1128-1199):
External calls:
- swapAndSendToFee(marketingTokens) (#1155)
- IERC20(CAKE).transfer(_marketingWalletAddress,newBalance) (#1207)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1261-1267)
- swapAndLiquify(swapTokens) (#1158)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1276-1283)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1242-1248)
- swapAndSendDividends(sellTokens) (#1161)
- success = IERC20(CAKE).transfer(address(dividendTracker),dividends) (#1290)
- dividendTracker.distributeCAKEDividends(dividends) (#1293)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1261-1267)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1158)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1276-1283)
State variables written after the call(s):
- swapAndSendDividends(sellTokens) (#1161)
- _allowances[owner][spender] = amount (#681)
Reentrancy in Garfieldcat.constructor() (#929-958):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#936-937)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#940)
- uniswapV2Router = _uniswapV2Router (#939)
Reentrancy in Garfieldcat.constructor() (#929-958):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#936-937)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#942)
- dividendTracker.excludeFromDividends(pair) (#1042)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#945)
- dividendTracker.excludeFromDividends(address(this)) (#946)
- dividendTracker.excludeFromDividends(owner()) (#947)
- dividendTracker.excludeFromDividends(deadWallet) (#948)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#949)
State variables written after the call(s):
- _mint(owner(),100000000000 * (10 ** 18)) (#957)
- _balances[account] = _balances[account].add(amount) (#657)
- excludeFromFees(owner(),true) (#952)
- _isExcludedFromFees[account] = excluded (#992)
- excludeFromFees(_marketingWalletAddress,true) (#953)
- _isExcludedFromFees[account] = excluded (#992)
- excludeFromFees(address(this),true) (#954)
- _isExcludedFromFees[account] = excluded (#992)
- _mint(owner(),100000000000 * (10 ** 18)) (#957)
- _totalSupply = _totalSupply.add(amount) (#656)
Reentrancy in GarfieldcatDividendTracker.processAccount(address,bool) (#1495-1505):
External calls:
- amount = _withdrawDividendOfUser(account) (#1496)
- success = IERC20(CAKE).transfer(user,_withdrawableDividend) (#784)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (#1499)
Reentrancy in Garfieldcat.swapAndLiquify(uint256) (#1210-1228):
External calls:
- swapTokensForEth(half) (#1219)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1242-1248)
- addLiquidity(otherHalf,newBalance) (#1225)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1276-1283)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1225)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1276-1283)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#1225)
- _allowances[owner][spender] = amount (#681)
Reentrancy in Garfieldcat.updateUniswapV2Router(address) (#981-988):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this),uniswapV2Router.WETH()) (#985-986)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (#987)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Garfieldcat._setAutomatedMarketMakerPair(address,bool) (#1037-1046):
External calls:
- dividendTracker.excludeFromDividends(pair) (#1042)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1045)
Reentrancy in Garfieldcat._transfer(address,address,uint256) (#1128-1199):
External calls:
- swapAndSendToFee(marketingTokens) (#1155)
- IERC20(CAKE).transfer(_marketingWalletAddress,newBalance) (#1207)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1261-1267)
- swapAndLiquify(swapTokens) (#1158)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1276-1283)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1242-1248)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1158)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1276-1283)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#682)
- swapAndLiquify(swapTokens) (#1158)
- SwapAndLiquify(half,newBalance,otherHalf) (#1227)
- swapAndLiquify(swapTokens) (#1158)
Reentrancy in Garfieldcat._transfer(address,address,uint256) (#1128-1199):
External calls:
- swapAndSendToFee(marketingTokens) (#1155)
- IERC20(CAKE).transfer(_marketingWalletAddress,newBalance) (#1207)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1261-1267)
- swapAndLiquify(swapTokens) (#1158)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1276-1283)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1242-1248)
- swapAndSendDividends(sellTokens) (#1161)
- success = IERC20(CAKE).transfer(address(dividendTracker),dividends) (#1290)
- dividendTracker.distributeCAKEDividends(dividends) (#1293)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1261-1267)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1158)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1276-1283)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#682)
- swapAndSendDividends(sellTokens) (#1161)
- SendDividends(tokens,dividends) (#1294)
- swapAndSendDividends(sellTokens) (#1161)
- Transfer(sender,recipient,amount) (#647)
- super._transfer(from,address(this),fees) (#1181)
- Transfer(sender,recipient,amount) (#647)
- super._transfer(from,to,amount) (#1184)
Reentrancy in Garfieldcat._transfer(address,address,uint256) (#1128-1199):
External calls:
- swapAndSendToFee(marketingTokens) (#1155)
- IERC20(CAKE).transfer(_marketingWalletAddress,newBalance) (#1207)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1261-1267)
- swapAndLiquify(swapTokens) (#1158)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1276-1283)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1242-1248)
- swapAndSendDividends(sellTokens) (#1161)
- success = IERC20(CAKE).transfer(address(dividendTracker),dividends) (#1290)
- dividendTracker.distributeCAKEDividends(dividends) (#1293)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1261-1267)
- dividendTracker.setBalance(address(from),balanceOf(from)) (#1186)
- dividendTracker.setBalance(address(to),balanceOf(to)) (#1187)
- dividendTracker.process(gas) (#1192-1197)
External calls sending eth:
- swapAndLiquify(swapTokens) (#1158)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1276-1283)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1193)
Reentrancy in Garfieldcat.constructor() (#929-958):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#936-937)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#942)
- dividendTracker.excludeFromDividends(pair) (#1042)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (#1045)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#942)
Reentrancy in Garfieldcat.constructor() (#929-958):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#936-937)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (#942)
- dividendTracker.excludeFromDividends(pair) (#1042)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (#945)
- dividendTracker.excludeFromDividends(address(this)) (#946)
- dividendTracker.excludeFromDividends(owner()) (#947)
- dividendTracker.excludeFromDividends(deadWallet) (#948)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (#949)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (#994)
- excludeFromFees(address(this),true) (#954)
- ExcludeFromFees(account,excluded) (#994)
- excludeFromFees(_marketingWalletAddress,true) (#953)
- ExcludeFromFees(account,excluded) (#994)
- excludeFromFees(owner(),true) (#952)
- Transfer(address(0),account,amount) (#658)
- _mint(owner(),100000000000 * (10 ** 18)) (#957)
Reentrancy in GarfieldcatDividendTracker.processAccount(address,bool) (#1495-1505):
External calls:
- amount = _withdrawDividendOfUser(account) (#1496)
- success = IERC20(CAKE).transfer(user,_withdrawableDividend) (#784)
Event emitted after the call(s):
- Claim(account,amount,automatic) (#1500)
Reentrancy in Garfieldcat.processDividendTracker(uint256) (#1110-1113):
External calls:
- (iterations,claims,lastProcessedIndex) = dividendTracker.process(gas) (#1111)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,false,gas,tx.origin) (#1112)
Reentrancy in Garfieldcat.swapAndLiquify(uint256) (#1210-1228):
External calls:
- swapTokensForEth(half) (#1219)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1242-1248)
- addLiquidity(otherHalf,newBalance) (#1225)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1276-1283)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#1225)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (#1276-1283)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#682)
- addLiquidity(otherHalf,newBalance) (#1225)
- SwapAndLiquify(half,newBalance,otherHalf) (#1227)
Reentrancy in Garfieldcat.swapAndSendDividends(uint256) (#1287-1296):
External calls:
- swapTokensForCake(tokens) (#1288)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1261-1267)
- success = IERC20(CAKE).transfer(address(dividendTracker),dividends) (#1290)
- dividendTracker.distributeCAKEDividends(dividends) (#1293)
Event emitted after the call(s):
- SendDividends(tokens,dividends) (#1294)
Reentrancy in Garfieldcat.updateDividendTracker(address) (#964-979):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (#971)
- newDividendTracker.excludeFromDividends(address(this)) (#972)
- newDividendTracker.excludeFromDividends(owner()) (#973)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#974)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (#976)
Apply the check-effects-interactions pattern.
Additional information: link
GarfieldcatDividendTracker.getAccount(address) (#1359-1402) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (#1399-1401)
GarfieldcatDividendTracker.canAutoClaim(uint256) (#1423-1429) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#1424)
- block.timestamp.sub(lastClaimTime) >= claimWait (#1428)
Avoid relying on block.timestamp.
Additional information: link
Context._msgData() (#81-84) is never used and should be removed
DividendPayingToken._transfer(address,address,uint256) (#821-827) is never used and should be removed
SafeMath.mod(uint256,uint256) (#387-389) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#392-395) is never used and should be removed
SafeMathInt.abs(int256) (#465-468) is never used and should be removed
SafeMathInt.div(int256,int256) (#442-448) is never used and should be removed
SafeMathInt.mul(int256,int256) (#433-440) is never used and should be removed
Remove unused functions.
Additional information: link
Garfieldcat.totalFees (#881) is set pre-construction with a non-constant function or state variable:
- CAKERewardsFee.add(liquidityFee).add(marketingFee)
Remove any initialization of state variables via non-constant state variables or function calls. If variables must be set upon contract deployment, locate initialization in the constructor instead.
Additional information: link
Pragma version^0.6.2 (#14) allows old versions
Pragma version^0.6.2 (#49) allows old versions
Pragma version^0.6.2 (#64) allows old versions
Pragma version^0.6.2 (#87) allows old versions
Pragma version^0.6.2 (#140) allows old versions
Pragma version^0.6.2 (#158) allows old versions
Pragma version^0.6.2 (#297) allows old versions
Pragma version^0.6.2 (#334) allows old versions
Pragma version^0.6.2 (#423) allows old versions
Pragma version^0.6.2 (#477) allows old versions
Pragma version^0.6.2 (#487) allows old versions
Pragma version^0.6.2 (#550) allows old versions
Pragma version^0.6.2 (#693) allows old versions
Pragma version^0.6.2 (#717) allows old versions
Pragma version^0.6.2 (#733) allows old versions
Pragma version^0.6.2 (#858) allows old versions
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
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#104) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#105) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#122) is not in mixedCase
Function IUniswapV2Router01.WETH() (#162) is not in mixedCase
Parameter DividendPayingToken.dividendOf(address)._owner (#799) is not in mixedCase
Parameter DividendPayingToken.withdrawableDividendOf(address)._owner (#804) is not in mixedCase
Parameter DividendPayingToken.withdrawnDividendOf(address)._owner (#809) is not in mixedCase
Parameter DividendPayingToken.accumulativeDividendOf(address)._owner (#815) is not in mixedCase
Variable DividendPayingToken.CAKE (#741) is not in mixedCase
Constant DividendPayingToken.magnitude (#745) is not in UPPER_CASE_WITH_UNDERSCORES
Variable Garfieldcat.CAKE (#872) is not in mixedCase
Variable Garfieldcat._isBlacklisted (#876) is not in mixedCase
Variable Garfieldcat.CAKERewardsFee (#878) is not in mixedCase
Variable Garfieldcat._marketingWalletAddress (#883) is not in mixedCase
Parameter GarfieldcatDividendTracker.getAccount(address)._account (#1359) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#82)" inContext (#76-85)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#167) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#168)
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#780) is too similar to GarfieldcatDividendTracker.getAccount(address).withdrawableDividends (#1364)
Prevent variables from having similar names.
Additional information: link
Garfieldcat.constructor() (#929-958) uses literals with too many digits:
- _mint(owner(),100000000000 * (10 ** 18)) (#957)
Garfieldcat.updateGasForProcessing(uint256) (#1049-1054) uses literals with too many digits:
- require(bool,string)(newValue >= 200000 && newValue <= 500000,Garfieldcat: gasForProcessing must be between 200,000 and 500,000) (#1050)
Garfieldcat.slitherConstructorVariables() (#860-1297) uses literals with too many digits:
- deadWallet = 0x000000000000000000000000000000000000dEaD (#870)
Garfieldcat.slitherConstructorVariables() (#860-1297) uses literals with too many digits:
- swapTokensAtAmount = 20000000 * (10 ** 18) (#874)
Garfieldcat.slitherConstructorVariables() (#860-1297) uses literals with too many digits:
- gasForProcessing = 300000 (#887)
GarfieldcatDividendTracker.constructor() (#1319-1322) uses literals with too many digits:
- minimumTokenBalanceForDividends = 5000000 * (10 ** 18) (#1321)
GarfieldcatDividendTracker.getAccountAtIndex(uint256) (#1404-1421) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (#1415)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
SafeMathInt.MAX_INT256 (#428) is never used in SafeMathInt (#426-475)
Remove unused state variables.
Additional information: link
Garfieldcat.deadWallet (#870) should be constant
Garfieldcat.swapTokensAtAmount (#874) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#322-325)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#327-331)
get(IterableMapping.Map,address) should be declared external:
- IterableMapping.get(IterableMapping.Map,address) (#498-500)
getIndexOfKey(IterableMapping.Map,address) should be declared external:
- IterableMapping.getIndexOfKey(IterableMapping.Map,address) (#502-507)
getKeyAtIndex(IterableMapping.Map,uint256) should be declared external:
- IterableMapping.getKeyAtIndex(IterableMapping.Map,uint256) (#509-511)
size(IterableMapping.Map) should be declared external:
- IterableMapping.size(IterableMapping.Map) (#515-517)
name() should be declared external:
- ERC20.name() (#572-574)
symbol() should be declared external:
- ERC20.symbol() (#577-579)
decimals() should be declared external:
- ERC20.decimals() (#582-584)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (#597-600)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (#602-604)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (#607-610)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (#613-621)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (#624-627)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#630-633)
distributeCAKEDividends(uint256) should be declared external:
- DividendPayingToken.distributeCAKEDividends(uint256) (#760-771)
withdrawDividend() should be declared external:
- DividendPayingToken.withdrawDividend() (#774-776)
- GarfieldcatDividendTracker.withdrawDividend() (#1328-1330)
dividendOf(address) should be declared external:
- DividendPayingToken.dividendOf(address) (#799-801)
withdrawnDividendOf(address) should be declared external:
- DividendPayingToken.withdrawnDividendOf(address) (#809-811)
updateDividendTracker(address) should be declared external:
- Garfieldcat.updateDividendTracker(address) (#964-979)
updateUniswapV2Router(address) should be declared external:
- Garfieldcat.updateUniswapV2Router(address) (#981-988)
excludeMultipleAccountsFromFees(address[],bool) should be declared external:
- Garfieldcat.excludeMultipleAccountsFromFees(address[],bool) (#997-1003)
setAutomatedMarketMakerPair(address,bool) should be declared external:
- Garfieldcat.setAutomatedMarketMakerPair(address,bool) (#1026-1030)
updateGasForProcessing(uint256) should be declared external:
- Garfieldcat.updateGasForProcessing(uint256) (#1049-1054)
isExcludedFromFees(address) should be declared external:
- Garfieldcat.isExcludedFromFees(address) (#1068-1070)
withdrawableDividendOf(address) should be declared external:
- Garfieldcat.withdrawableDividendOf(address) (#1072-1074)
dividendTokenBalanceOf(address) should be declared external:
- Garfieldcat.dividendTokenBalanceOf(address) (#1076-1078)
getAccountAtIndex(uint256) should be declared external:
- GarfieldcatDividendTracker.getAccountAtIndex(uint256) (#1404-1421)
process(uint256) should be declared external:
- GarfieldcatDividendTracker.process(uint256) (#1448-1493)
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