Brief Description about token, should be appealing: Golden Kitty Cake is inspired from the Waving Lucky Cat from the Chinese/Japanese community. It was believed that the figurine will bring good fortune and luck to the owners. Now, it is Golden Kitty's turn to bring you tons of fortune through its own token and the CAKE token that it is spreading.
Now you get to earn real passive income with meme-tokens. Golden Kitty Cake provides you a real chance to earn CAKE token daily. With our Cake Bank utilities, every GKCAKE transactions shall rewards 7% of CAKE reward into the cake bank. After 24 hours, you get to claim your CAKE token daily. The more GKCAKE you hold, the more CAKE token you’ll earned!
Aside from that GKCAKE also has a security insurance features, when a whale dumps occurs, it will be triggered automatically, to bring back the price.
GoldenKittyCake.addLiquidity(uint256,uint256) (#1212-1225) sends eth to arbitrary user
Dangerous calls:
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1217-1224)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in GoldenKittyCake._transfer(address,address,uint256) (#884-921):
External calls:
- swap() (#896)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1217-1224)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,recipient,block.timestamp) (#1188-1194)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1166-1172)
External calls sending eth:
- swap() (#896)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1217-1224)
State variables written after the call(s):
- transferAmount = collectFee(sender,amount,rate,recipient == pair,sender != pair && recipient != pair) (#905)
- _reflectionBalance[tokenPool] = _reflectionBalance[tokenPool].add(taxFee.mul(rate)) (#936)
- _reflectionBalance[address(this)] = _reflectionBalance[address(this)].add(liqFee.mul(rate)) (#948)
- _reflectionBalance[marketingWallet] = _reflectionBalance[marketingWallet].add(marketingFee.mul(rate)) (#960)
- _reflectionBalance[insuranceWallet] = _reflectionBalance[insuranceWallet].add(insuranceFee.mul(rate)) (#972)
- _reflectionBalance[sender] = _reflectionBalance[sender].sub(amount.mul(rate)) (#909)
- _reflectionBalance[recipient] = _reflectionBalance[recipient].add(transferAmount.mul(rate)) (#910)
- transferAmount = collectFee(sender,amount,rate,recipient == pair,sender != pair && recipient != pair) (#905)
- _tokenBalance[tokenPool] = _tokenBalance[tokenPool].add(taxFee) (#938)
- _tokenBalance[address(this)] = _tokenBalance[address(this)].add(liqFee) (#950)
- _tokenBalance[marketingWallet] = _tokenBalance[marketingWallet].add(marketingFee) (#962)
- _tokenBalance[insuranceWallet] = _tokenBalance[insuranceWallet].add(insuranceFee) (#974)
- _tokenBalance[sender] = _tokenBalance[sender].sub(amount) (#914)
- _tokenBalance[recipient] = _tokenBalance[recipient].add(transferAmount) (#917)
Apply the check-effects-interactions pattern.
Additional information: link
Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains
Contract locking ether found:
Contract Wallet (#650-652) has payable functions:
- Wallet.receive() (#651)
But does not have a function to withdraw the ether
Remove the payable attribute or add a withdraw function.
Additional information: link
GoldenKittyCake.claimReward(bool) (#1001-1026) contains a tautology or contradiction:
- require(bool,string)(balanceOf(msg.sender) >= 0,Error: Must be a holder to claim rewards!) (#1003)
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.
Not a direct threat, but may indicate unreliable intentions of developer. Widespread names (e.g. Elon, King, Moon, Doge) are common among meme-tokens and scams. The allow to gain free hype and attract unexperienced investors.
GoldenKittyCake.collectFee(address,uint256,uint256,bool,bool) (#923-981) performs a multiplication on the result of a division:
-_reflectionBalance[insuranceWallet] = _reflectionBalance[insuranceWallet].add(insuranceFee.mul(rate)) (#972)
-insuranceFee = amount.mul(_insuranceFee[0]).div(10 ** (_feeDecimal + 2)) (#969)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in GoldenKittyCake.swap() (#1078-1127):
External calls:
- swapedEth = swapTokensForEth(cakeBankBalance,insuranceWallet) (#1107)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,recipient,block.timestamp) (#1188-1194)
State variables written after the call(s):
- _reflectionBalance[marketingWallet] = _reflectionBalance[marketingWallet].sub(marketingWalletBalance.mul(rate)) (#1111-1113)
- _reflectionBalance[address(this)] = _reflectionBalance[address(this)].add(marketingWalletBalance.mul(rate)) (#1114-1116)
- _tokenBalance[address(this)] = _tokenBalance[address(this)].add(marketingWalletBalance) (#1118)
- _tokenBalance[marketingWallet] = _tokenBalance[marketingWallet].sub(marketingWalletBalance) (#1121)
Apply the check-effects-interactions pattern.
Additional information: link
GoldenKittyCake.addLiquidity(uint256,uint256) (#1212-1225) ignores return value by router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1217-1224)
Ensure that all the return values of the function calls are used.
Additional information: link
GoldenKittyCake.claimReward(bool).swap (#1001) shadows:
- GoldenKittyCake.swap() (#1078-1127) (function)
Rename the local variables that shadow another component.
Additional information: link
GoldenKittyCake.setRewardCycleInterval(uint256) (#1286-1288) should emit an event for:
- rewardCycleInterval = interval (#1287)
Emit an event for critical parameter changes.
Additional information: link
GoldenKittyCake.setInsuranceWallet(address).bank (#1274) lacks a zero-check on :
- insuranceWallet = bank (#1275)
Check that the address is not zero.
Additional information: link
Reentrancy in GoldenKittyCake.transferFrom(address,address,uint256) (#805-818):
External calls:
- _transfer(sender,recipient,amount) (#810)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1217-1224)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,recipient,block.timestamp) (#1188-1194)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1166-1172)
External calls sending eth:
- _transfer(sender,recipient,amount) (#810)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1217-1224)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#812-816)
- _allowances[owner][spender] = amount (#880)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in GoldenKittyCake.transferFrom(address,address,uint256) (#805-818):
External calls:
- _transfer(sender,recipient,amount) (#810)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1217-1224)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,recipient,block.timestamp) (#1188-1194)
- router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1166-1172)
External calls sending eth:
- _transfer(sender,recipient,amount) (#810)
- router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(this),block.timestamp) (#1217-1224)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#881)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#812-816)
Apply the check-effects-interactions pattern.
Additional information: link
GoldenKittyCake.claimReward(bool) (#1001-1026) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(nextAvailableClaimDate[msg.sender] <= block.timestamp,Error: Reward Claim unavailable!) (#1002)
Avoid relying on block.timestamp.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#402-428) uses assembly
- INLINE ASM (#420-423)
Do not use evm assembly.
Additional information: link
TransferHelper.safeTransferFrom(address,address,address,uint256) (#630-642) is never used and should be removed
Remove unused functions.
Additional information: link
GoldenKittyCake.maxTxAmount (#696) is set pre-construction with a non-constant function or state variable:
- _tokenTotal.mul(5).div(1000)
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.0 (#601) 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
Low level call in TransferHelper.safeTransferETH(address,uint256) (#644-647):
- (success) = to.call{value: value}(new bytes(0)) (#645)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Variable GoldenKittyCake._insuranceFeeTotal (#690) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#21)" inContext (#15-24)
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 (#511) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#512)
Prevent variables from having similar names.
Additional information: link
GoldenKittyCake.calculateReward(address) (#983-999) uses literals with too many digits:
- _totalSupply = totalSupply().sub(balanceOf(marketingWallet)).sub(balanceOf(insuranceWallet)).sub(balanceOf(tokenPool)).sub(balanceOf(address(0))).sub(balanceOf(0x000000000000000000000000000000000000dEaD)).sub(balanceOf(address(pair))) (#984-990)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
GoldenKittyCake.threshHoldTopUpRate (#676) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
claimReward(bool) should be declared external:
- GoldenKittyCake.claimReward(bool) (#1001-1026)
Use the external attribute for functions never called from the contract.
Additional information: link
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Token is deployed only at one blockchain
Token has only one trading pair
Unable to find PancakeSwap trading pair to compute liquidity.
Unable to find PancakeSwap trading pair to compute volume.
Unable to find PancakeSwap trading pair to compute number of swaps.
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Token was delisted (assigned to inactive / untracked listing) from CoinMarketCap
Additional information: link
Unable to find token/project description on the website or on BscScan, CoinMarketCap
Unable to find whitepaper link on the website
Unable to find code repository for the project
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Token has no active CoinMarketCap listing / rank
Young tokens have high risks of price dump / death
Token has relatively low CoinGecko rank
Twitter account link seems to be invalid
Unable to find Blog account (Reddit or Medium)
Unable to find Discord account