Burnt Cake Token Logo

BCAKE [Burnt Cake] Token

About BCAKE

Listings

Token 2 years
white paper

Burnt Cake is a decentralized and deflationary token built on the Binance Smart Chain. Burnt Cake's primary goal is to make decentralized finance easier to use and navigate for regular everyday people, the first step towards achieving this goal was to create the $BCAKE token. It is an innovative reflections token that pays high yield dividends to its holders in the form of $CAKE, these reflections are sent to holder's wallets automatically based on a percentage of daily transactions. Burnt Cake will be developing key components to change the way everyday people interact with Defi.

Social

Laser Scorebeta Last Audit: 30 November 2021

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

Anti-Scam

Links

BurntCake.swapBack() (#1653-1700) sends eth to arbitrary user
Dangerous calls:
- (success,None) = address(buyBackWallet).call{value: address(this).balance}() (#1697)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in BurntCake._transfer(address,address,uint256) (#1488-1600):
External calls:
- swapBack() (#1550)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0xdead),block.timestamp) (#1642-1649)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1627-1633)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(this),block.timestamp) (#1608-1613)
- success = IERC20(token).transfer(address(dividendTracker),tokenBalance) (#1689)
- dividendTracker.distributeTokenDividends(tokenBalance) (#1692)
- (success,None) = address(buyBackWallet).call{value: address(this).balance}() (#1697)
External calls sending eth:
- swapBack() (#1550)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0xdead),block.timestamp) (#1642-1649)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(this),block.timestamp) (#1608-1613)
- (success,None) = address(buyBackWallet).call{value: address(this).balance}() (#1697)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (#1581)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#424)
- _balances[recipient] = _balances[recipient].add(amount) (#425)
- super._transfer(from,to,amount) (#1587)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#424)
- _balances[recipient] = _balances[recipient].add(amount) (#425)
- swapping = false (#1551)
- tokensForBuyBack += fees * buyBackSellFee / totalSellFees (#1570)
- tokensForBuyBack += fees * buyBackBuyFee / totalBuyFees (#1577)
- tokensForLiquidity += fees * liquiditySellFee / totalSellFees (#1569)
- tokensForLiquidity += fees * liquidityBuyFee / totalBuyFees (#1576)
- tokensForRewards += fees * rewardsSellFee / totalSellFees (#1568)
- tokensForRewards += fees * rewardsBuyFee / totalBuyFees (#1575)
Apply the check-effects-interactions pattern.

Additional information: link


Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)

Contract locking ether found:
Contract DividendTracker (#1724-1932) has payable functions:
- DividendPayingToken.receive() (#1002-1004)
- DividendPayingToken.distributeDividends() (#1020-1022)
- DividendPayingTokenInterface.distributeDividends() (#543)
But does not have a function to withdraw the ether
Remove the payable attribute or add a withdraw function.

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.

BurntCake._transfer(address,address,uint256) (#1488-1600) performs a multiplication on the result of a division:
-fees = amount.mul(totalBuyFees).div(100) (#1574)
-tokensForBuyBack += fees * buyBackBuyFee / totalBuyFees (#1577)
Consider ordering multiplication before division.

Additional information: link

Reentrancy in BurntCake.swapBack() (#1653-1700):
External calls:
- swapTokensForEth(amountToSwapForETH) (#1666)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1627-1633)
State variables written after the call(s):
- tokensForBuyBack = 0 (#1676)
- tokensForLiquidity = 0 (#1675)
- tokensForRewards = 0 (#1677)
Apply the check-effects-interactions pattern.

Additional information: link

BurntCake._transfer(address,address,uint256) (#1488-1600) uses tx.origin for authorization: require(bool,string)(_holderLastTransferTimestamp[tx.origin] < block.number,_transfer:: Transfer Delay enabled. Only one purchase per block allowed.) (#1517)
Do not use tx.origin for authorization.

Additional information: link

BurntCake._transfer(address,address,uint256).iterations (#1595) 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

BurntCake.addLiquidity(uint256,uint256) (#1637-1651) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0xdead),block.timestamp) (#1642-1649)
Ensure that all the return values of the function calls are used.

Additional information: link

BurntCake.constructor().totalSupply (#1233) shadows:
- ERC20.totalSupply() (#298-300) (function)
- IERC20.totalSupply() (#148) (function)
Rename the local variables that shadow another component.

Additional information: link

BurntCake.updateSellFees(uint256,uint256,uint256) (#1351-1357) should emit an event for:
- buyBackSellFee = _buyBackFee (#1352)
- rewardsSellFee = _rewardsFee (#1353)
- liquiditySellFee = _liquidityFee (#1354)
- totalSellFees = buyBackSellFee + rewardsSellFee + liquiditySellFee (#1355)
Emit an event for critical parameter changes.

Additional information: link

BurntCake.addPresaleAddressForExclusions(address)._presaleAddress (#1297) lacks a zero-check on :
- presaleAddress = _presaleAddress (#1298)
Check that the address is not zero.

Additional information: link

Variable 'BurntCake._transfer(address,address,uint256).lastProcessedIndex (#1595)' in BurntCake._transfer(address,address,uint256) (#1488-1600) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1596)
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 BurntCake.swapBack() (#1653-1700):
External calls:
- swapTokensForEth(amountToSwapForETH) (#1666)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1627-1633)
- addLiquidity(liquidityTokens,ethForLiquidity) (#1680)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0xdead),block.timestamp) (#1642-1649)
External calls sending eth:
- addLiquidity(liquidityTokens,ethForLiquidity) (#1680)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0xdead),block.timestamp) (#1642-1649)
State variables written after the call(s):
- addLiquidity(liquidityTokens,ethForLiquidity) (#1680)
- _allowances[owner][spender] = amount (#490)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in BurntCake.swapBack() (#1653-1700):
External calls:
- swapTokensForEth(amountToSwapForETH) (#1666)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1627-1633)
- addLiquidity(liquidityTokens,ethForLiquidity) (#1680)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0xdead),block.timestamp) (#1642-1649)
- swapBnbForRewardToken(ethForRewards) (#1686)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(this),block.timestamp) (#1608-1613)
- success = IERC20(token).transfer(address(dividendTracker),tokenBalance) (#1689)
- dividendTracker.distributeTokenDividends(tokenBalance) (#1692)
External calls sending eth:
- addLiquidity(liquidityTokens,ethForLiquidity) (#1680)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0xdead),block.timestamp) (#1642-1649)
- swapBnbForRewardToken(ethForRewards) (#1686)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: bnbAmount}(0,path,address(this),block.timestamp) (#1608-1613)
Event emitted after the call(s):
- SendDividends(tokenBalance,ethForRewards) (#1693)
Apply the check-effects-interactions pattern.

Additional information: link

DividendTracker.canAutoClaim(uint256) (#1848-1854) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#1849)
- block.timestamp.sub(lastClaimTime) >= claimWait (#1853)
Avoid relying on block.timestamp.

Additional information: link

SafeMathInt.mul(int256,int256) (#771-778) is never used and should be removed
Remove unused functions.

Additional information: link

solc-0.8.9 is not recommended for deployment
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 BurntCake.withdrawStuckEth() (#1718-1721):
- (success) = address(msg.sender).call{value: address(this).balance}() (#1719)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence

Additional information: link

Parameter DividendTracker.getAccount(address)._account (#1784) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Redundant expression "this (#11)" inContext (#5-14)
Remove redundant statements if they congest code but offer no value.

Additional information: link

Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#1046) is too similar to DividendTracker.getAccount(address).withdrawableDividends (#1789)
Prevent variables from having similar names.

Additional information: link

DividendTracker.getAccountAtIndex(uint256) (#1829-1846) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (#1840)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

SafeMathInt.MAX_INT256 (#766) is never used in SafeMathInt (#764-822)
Remove unused state variables.

Additional information: link

BurntCake.presaleRouterAddress (#1161) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

process(uint256) should be declared external:
- DividendTracker.process(uint256) (#1874-1918)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:


Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive. Ignore for presale.


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 Blog account (Reddit or Medium)


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 contract audit


Unable to find audit link on the website


Unable to find token on CoinHunt

Additional information: link


Young tokens have high risks of price dump / death


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


Token has relatively low CoinGecko rank

Price for BCAKE