The Baked Caked features are the following:
BakedCake.Finance - Dapp Features
BakedCakeSwap - Innovative New
NFT Treasure Chest with special rewards
NFT Marketplace with Auctions
NFT Staking - Get Rewards
NFT Minting - Create your own NFT's
Games - Play Games, Earn Rewards!
Lottery - Weekly Giveaways!
Charts - BakedCake Charts, Clean simple
Utilities - Limit Trade, Sniper
BakedCake.buyBackAndBurn(uint256) (#2078-2099) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,marketingWallet,block.timestamp.add(300)) (#2087-2092)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in BakedCake.buyBackAndBurn(uint256) (#2078-2099):
External calls:
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,marketingWallet,block.timestamp.add(300)) (#2087-2092)
State variables written after the call(s):
- _burn(marketingWallet,swappedBalance) (#2096)
- _balances[account] = _balances[account].sub(amount,exceeds balance) (#450)
Apply the check-effects-interactions pattern.
Additional information: link
BakedCake.transferAnyBEP20Tokens(address,address,uint256) (#1749-1753) ignores return value by Token(tokenAddress).transfer(recipient,amount) (#1752)
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
BakedCake.rand() (#1856-1872) uses a dangerous strict equality:
- randNumber == 0 (#1866)
Don't use strict equality to determine if an account has enough Ether or tokens.
Additional information: link
Contract locking ether found:
Contract BakeDividendTracker (#2392-2606) has payable functions:
- DividendPayingToken.receive() (#613-614)
- DividendPayingToken.distributeDividends() (#629-640)
- IDividendPayingToken.distributeDividends() (#523)
But does not have a function to withdraw the ether
Remove the payable attribute or add a withdraw function.
Additional information: link
BakedCake.setMinimumBalanceRequired(uint256) (#1568-1571) contains a tautology or contradiction:
- require(bool,string)(_newAmount >= 0,newAmount error) (#1569)
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.
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.
BakedCake._transfer(address,address,uint256) (#1897-2044) performs a multiplication on the result of a division:
-sellTokens_scope_0 = contractTokenBalance.div(totalFees).mul(bakeDividendRewardsFee) (#1958)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (#671-687):
External calls:
- success = IERC20(dividendToken).transfer(user,_withdrawableDividend) (#676)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (#679)
Apply the check-effects-interactions pattern.
Additional information: link
BakedCake._transfer(address,address,uint256).iterations_scope_4 (#2026) 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
BakedCake.addLiquidity(uint256,uint256) (#2062-2076) ignores return value by uniswapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#2068-2075)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendPayingToken.constructor(string,string,address)._symbol (#609) shadows:
- ERC20._symbol (#239) (state variable)
Rename the local variables that shadow another component.
Additional information: link
BakedCake.updateBuyBackAndLiquidityFee(uint8) (#1684-1687) should emit an event for:
- buyBackAndLiquidityFee = newFee (#1685)
- totalFees = buyBackAndLiquidityFee.add(cakeDividendRewardsFee).add(bakeDividendRewardsFee).add(marketingFee) (#1686)
Emit an event for critical parameter changes.
Additional information: link
BakeDividendTracker.setDividendTokenAddress(address).newToken (#2425) lacks a zero-check on :
- dividendToken = newToken (#2426)
Check that the address is not zero.
Additional information: link
Variable 'BakedCake._transfer(address,address,uint256).iterations_scope_7 (#2035)' in BakedCake._transfer(address,address,uint256) (#1897-2044) potentially used before declaration: ProcessedCakeDividendTracker(iterations_scope_7,claims_scope_8,lastProcessedIndex_scope_9,true,gas,tx.origin) (#2036)
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 BakedCake.updateCakeDividendTracker(address) (#1639-1652):
External calls:
- newCakeDividendTracker.excludeFromDividends(address(newCakeDividendTracker)) (#1644)
- newCakeDividendTracker.excludeFromDividends(address(this)) (#1645)
- newCakeDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1646)
- newCakeDividendTracker.excludeFromDividends(address(deadAddress)) (#1647)
State variables written after the call(s):
- cakeDividendTracker = newCakeDividendTracker (#1651)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in BakedCake.updateCakeDividendTracker(address) (#1639-1652):
External calls:
- newCakeDividendTracker.excludeFromDividends(address(newCakeDividendTracker)) (#1644)
- newCakeDividendTracker.excludeFromDividends(address(this)) (#1645)
- newCakeDividendTracker.excludeFromDividends(address(uniswapV2Router)) (#1646)
- newCakeDividendTracker.excludeFromDividends(address(deadAddress)) (#1647)
Event emitted after the call(s):
- UpdateCakeDividendTracker(newAddress,address(cakeDividendTracker)) (#1649)
Apply the check-effects-interactions pattern.
Additional information: link
BakeDividendTracker.canAutoClaim(uint256) (#2522-2528) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#2523)
- block.timestamp.sub(lastClaimTime) >= claimWait (#2527)
Avoid relying on block.timestamp.
Additional information: link
BakedCake.setMarketingEnabled(bool) (#1625-1637) compares to a boolean constant:
-_enabled == false (#1626)
Remove the equality to the boolean constant.
Additional information: link
SafeMathInt.mul(int256,int256) (#1257-1265) is never used and should be removed
Remove unused functions.
Additional information: link
solc-0.8.7 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
Parameter BakeDividendTracker.getAccount(address)._account (#2458) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#47)" inContext (#41-50)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Reentrancy in BakedCake._transfer(address,address,uint256) (#1897-2044):
External calls:
- transferToWallet(address(marketingWallet),marketingPortion) (#1940)
- recipient.transfer(amount) (#2164)
- transferToWallet(address(divident),dividentPortion) (#1941)
- recipient.transfer(amount) (#2164)
External calls sending eth:
- transferToWallet(address(marketingWallet),marketingPortion) (#1940)
- recipient.transfer(amount) (#2164)
- transferToWallet(address(divident),dividentPortion) (#1941)
- recipient.transfer(amount) (#2164)
- swapAndLiquify(contractTokenBalance.div(totalFees).mul(buyBackAndLiquidityFee)) (#1948)
- uniswapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,marketingWallet,block.timestamp) (#2068-2075)
- buyBackAndBurn(buyBackBalanceBnb.div(10 ** 2)) (#1975)
- uniswapV2Router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,marketingWallet,block.timestamp.add(300)) (#2087-2092)
State variables written after the call(s):
- buyBackAndBurn(buyBackBalanceBnb.div(10 ** 2)) (#1975)
- _balances[account] = _balances[account].sub(amount,exceeds balance) (#450)
- super._transfer(from,address(this),fees) (#1992)
- _balances[sender] = _balances[sender].sub(amount,exceeds balance) (#410)
- _balances[recipient] = _balances[recipient].add(amount) (#411)
- super._transfer(from,to,amount) (#1995)
- _balances[sender] = _balances[sender].sub(amount,exceeds balance) (#410)
- _balances[recipient] = _balances[recipient].add(amount) (#411)
- buyBackAndBurn(buyBackBalanceBnb.div(10 ** 2)) (#1975)
- _totalSupply = _totalSupply.sub(amount) (#451)
- swapping = false (#1977)
Event emitted after the call(s):
- ProcessedBakeDividendTracker(iterations_scope_1,claims_scope_2,lastProcessedIndex_scope_3,true,gas,tx.origin) (#2018)
- ProcessedBakeDividendTracker(iterations_scope_4,claims_scope_5,lastProcessedIndex_scope_6,true,gas,tx.origin) (#2027)
- ProcessedCakeDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#2009)
- ProcessedCakeDividendTracker(iterations_scope_7,claims_scope_8,lastProcessedIndex_scope_9,true,gas,tx.origin) (#2036)
- SwapBNBForTokens(amount,path) (#2098)
- buyBackAndBurn(buyBackBalanceBnb.div(10 ** 2)) (#1975)
- Transfer(account,address(0),amount) (#452)
- buyBackAndBurn(buyBackBalanceBnb.div(10 ** 2)) (#1975)
- Transfer(sender,recipient,amount) (#412)
- super._transfer(from,to,amount) (#1995)
- Transfer(sender,recipient,amount) (#412)
- super._transfer(from,address(this),fees) (#1992)
Apply the check-effects-interactions pattern.
Additional information: link
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#672) is too similar to BakeDividendTracker.getAccount(address).withdrawableDividends (#2463)
Prevent variables from having similar names.
Additional information: link
BakeDividendTracker.getAccountAtIndex(uint256) (#2503-2520) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (#2514)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
DividendPayingToken.lastAmount (#588) is never used in BakeDividendTracker (#2392-2606)
Remove unused state variables.
Additional information: link
DividendPayingToken.lastAmount (#588) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
process(uint256) should be declared external:
- BakeDividendTracker.process(uint256) (#2547-2592)
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
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.
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
Young tokens have high risks of price dump / death
Token has relatively low CoinGecko rank
Token has relatively low CoinMarketCap rank
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