CAKE BANK Token Logo

CAKEBANK [CAKE BANK] Token

About CAKEBANK

Listings

Token 3 years
white paper

The CAKEBANK protocol is a community inspired DeFi experiment built on Binance. 

So many projects enters the markets as community-driven and yet there's always some owner that sets the rule for marketing and guidelines of branding. We want to encourage each individual investor to participate as owners and not just holder.

The Binance network already facilitates countless projects with real world applications, further fostering innovation and adoption. CAKEBANK holders are rewarded with CAKE reflections.

Social

Laser Scorebeta Last Audit: 30 November 2021

report
Token is either risky or in presale. For presale 30+ is a fine score.

CAKEBANK.addLiquidity(uint256,uint256) (CAKEBANK.sol#438-453) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (CAKEBANK.sol#444-451)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in CAKEBANK._transfer(address,address,uint256) (CAKEBANK.sol#292-363):
External calls:
- swapAndSendToFee(marketingTokens) (CAKEBANK.sol#319)
- IERC20(CAKE).transfer(_marketingWalletAddress,newBalance) (CAKEBANK.sol#371)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (CAKEBANK.sol#429-435)
- swapAndLiquify(swapTokens) (CAKEBANK.sol#322)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (CAKEBANK.sol#444-451)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (CAKEBANK.sol#409-415)
- swapAndSendDividends(sellTokens) (CAKEBANK.sol#325)
- success = IERC20(CAKE).transfer(address(dividendTracker),dividends) (CAKEBANK.sol#458)
- dividendTracker.distributeCAKEDividends(dividends) (CAKEBANK.sol#461)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (CAKEBANK.sol#429-435)
External calls sending eth:
- swapAndLiquify(swapTokens) (CAKEBANK.sol#322)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (CAKEBANK.sol#444-451)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (CAKEBANK.sol#345)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (ERC20.sol#221)
- _balances[recipient] = _balances[recipient].add(amount) (ERC20.sol#222)
- super._transfer(from,to,amount) (CAKEBANK.sol#348)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (ERC20.sol#221)
- _balances[recipient] = _balances[recipient].add(amount) (ERC20.sol#222)
- swapping = false (CAKEBANK.sol#327)
Apply the check-effects-interactions pattern.

Additional information: link

CAKEBANK.swapAndSendToFee(uint256) (CAKEBANK.sol#365-372) ignores return value by IERC20(CAKE).transfer(_marketingWalletAddress,newBalance) (CAKEBANK.sol#371)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.

Additional information: link


Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains


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 CAKEBANK.updateDividendTracker(address) (CAKEBANK.sol#128-143):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (CAKEBANK.sol#135)
- newDividendTracker.excludeFromDividends(address(this)) (CAKEBANK.sol#136)
- newDividendTracker.excludeFromDividends(owner()) (CAKEBANK.sol#137)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (CAKEBANK.sol#138)
State variables written after the call(s):
- dividendTracker = newDividendTracker (CAKEBANK.sol#142)
Apply the check-effects-interactions pattern.

Additional information: link

CAKEBANK._transfer(address,address,uint256).iterations (CAKEBANK.sol#356) 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

CAKEBANK.addLiquidity(uint256,uint256) (CAKEBANK.sol#438-453) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (CAKEBANK.sol#444-451)
Ensure that all the return values of the function calls are used.

Additional information: link

DividendPayingToken.accumulativeDividendOf(address)._owner (DividendPayingToken.sol#122) shadows:
- Ownable._owner (Ownable.sol#8) (state variable)
Rename the local variables that shadow another component.

Additional information: link

CAKEBANK.setMarketingFee(uint256) (CAKEBANK.sol#183-187) should emit an event for:
- marketingFee = value (CAKEBANK.sol#184)
- totalFees = CAKERewardsFee.add(liquidityFee).add(marketingFee) (CAKEBANK.sol#185)
Emit an event for critical parameter changes.

Additional information: link

CAKEBANK.setMarketingWallet(address).wallet (CAKEBANK.sol#169) lacks a zero-check on :
- _marketingWalletAddress = wallet (CAKEBANK.sol#170)
Check that the address is not zero.

Additional information: link

Variable 'CAKEBANK._transfer(address,address,uint256).claims (CAKEBANK.sol#356)' in CAKEBANK._transfer(address,address,uint256) (CAKEBANK.sol#292-363) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (CAKEBANK.sol#357)
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 CAKEBANK.updateUniswapV2Router(address) (CAKEBANK.sol#145-152):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this),uniswapV2Router.WETH()) (CAKEBANK.sol#149-150)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (CAKEBANK.sol#151)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in CAKEBANK.updateDividendTracker(address) (CAKEBANK.sol#128-143):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (CAKEBANK.sol#135)
- newDividendTracker.excludeFromDividends(address(this)) (CAKEBANK.sol#136)
- newDividendTracker.excludeFromDividends(owner()) (CAKEBANK.sol#137)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (CAKEBANK.sol#138)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (CAKEBANK.sol#140)
Apply the check-effects-interactions pattern.

Additional information: link

CAKEBANKDividendTracker.canAutoClaim(uint256) (CAKEBANK.sol#591-597) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (CAKEBANK.sol#592)
- block.timestamp.sub(lastClaimTime) >= claimWait (CAKEBANK.sol#596)
Avoid relying on block.timestamp.

Additional information: link

SafeMathInt.mul(int256,int256) (SafeMathInt.sol#41-48) is never used and should be removed
Remove unused functions.

Additional information: link

CAKEBANK.totalFees (CAKEBANK.sol#41) 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 (SafeMathUint.sol#3) 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 IUniswapV2Router01.WETH() (IUniswapV2Router.sol#7) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Redundant expression "this (Context.sol#21)" inContext (Context.sol#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 (IUniswapV2Router.sol#12) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (IUniswapV2Router.sol#13)
Prevent variables from having similar names.

Additional information: link

CAKEBANKDividendTracker.getAccountAtIndex(uint256) (CAKEBANK.sol#572-589) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (CAKEBANK.sol#583)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

SafeMathInt.MAX_INT256 (SafeMathInt.sol#36) is never used in SafeMathInt (SafeMathInt.sol#34-92)
Remove unused state variables.

Additional information: link

DividendPayingToken.CAKE (DividendPayingToken.sol#24) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (Ownable.sol#52-56)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


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.


Twitter account link seems to be invalid


Unable to find Youtube account


Unable to find Discord account


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 on CoinHunt

Additional information: link


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

Price for CAKEBANK