UNICORN CAKE Token Logo

UNIC [UNICORN CAKE] Token

About UNIC

Listings

Token 15 months
CoinMarketCap 13 months

Description

Not Found

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


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

UNICORNCAKE.addLiquidity(uint256,uint256) (UNICORNCAKE.sol#443-458) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (UNICORNCAKE.sol#449-456)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in UNICORNCAKE._transfer(address,address,uint256) (UNICORNCAKE.sol#297-368):
External calls:
- swapAndSendToFee(marketingTokens) (UNICORNCAKE.sol#324)
- IERC20(CAKE).transfer(_marketingWalletAddress,newBalance) (UNICORNCAKE.sol#376)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (UNICORNCAKE.sol#434-440)
- swapAndLiquify(swapTokens) (UNICORNCAKE.sol#327)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (UNICORNCAKE.sol#449-456)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (UNICORNCAKE.sol#414-420)
- swapAndSendDividends(sellTokens) (UNICORNCAKE.sol#330)
- success = IERC20(CAKE).transfer(address(dividendTracker),dividends) (UNICORNCAKE.sol#463)
- dividendTracker.distributeCAKEDividends(dividends) (UNICORNCAKE.sol#466)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (UNICORNCAKE.sol#434-440)
External calls sending eth:
- swapAndLiquify(swapTokens) (UNICORNCAKE.sol#327)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (UNICORNCAKE.sol#449-456)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (UNICORNCAKE.sol#350)
- _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) (UNICORNCAKE.sol#353)
- _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 (UNICORNCAKE.sol#332)
Apply the check-effects-interactions pattern.

Additional information: link

UNICORNCAKE.swapAndSendToFee(uint256) (UNICORNCAKE.sol#370-377) ignores return value by IERC20(CAKE).transfer(_marketingWalletAddress,newBalance) (UNICORNCAKE.sol#376)
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 UNICORNCAKE.updateDividendTracker(address) (UNICORNCAKE.sol#133-148):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (UNICORNCAKE.sol#140)
- newDividendTracker.excludeFromDividends(address(this)) (UNICORNCAKE.sol#141)
- newDividendTracker.excludeFromDividends(owner()) (UNICORNCAKE.sol#142)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (UNICORNCAKE.sol#143)
State variables written after the call(s):
- dividendTracker = newDividendTracker (UNICORNCAKE.sol#147)
Apply the check-effects-interactions pattern.

Additional information: link

UNICORNCAKE._transfer(address,address,uint256).lastProcessedIndex (UNICORNCAKE.sol#361) 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

UNICORNCAKE.addLiquidity(uint256,uint256) (UNICORNCAKE.sol#443-458) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (UNICORNCAKE.sol#449-456)
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

UNICORNCAKE.setMarketingFee(uint256) (UNICORNCAKE.sol#188-192) should emit an event for:
- marketingFee = value (UNICORNCAKE.sol#189)
- totalFees = CAKERewardsFee.add(liquidityFee).add(marketingFee) (UNICORNCAKE.sol#190)
Emit an event for critical parameter changes.

Additional information: link

UNICORNCAKE.setMarketingWallet(address).wallet (UNICORNCAKE.sol#174) lacks a zero-check on :
- _marketingWalletAddress = wallet (UNICORNCAKE.sol#175)
Check that the address is not zero.

Additional information: link

Variable 'UNICORNCAKE._transfer(address,address,uint256).lastProcessedIndex (UNICORNCAKE.sol#361)' in UNICORNCAKE._transfer(address,address,uint256) (UNICORNCAKE.sol#297-368) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (UNICORNCAKE.sol#362)
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 UNICORNCAKE.updateUniswapV2Router(address) (UNICORNCAKE.sol#150-157):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this),uniswapV2Router.WETH()) (UNICORNCAKE.sol#154-155)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (UNICORNCAKE.sol#156)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in UNICORNCAKE.updateDividendTracker(address) (UNICORNCAKE.sol#133-148):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (UNICORNCAKE.sol#140)
- newDividendTracker.excludeFromDividends(address(this)) (UNICORNCAKE.sol#141)
- newDividendTracker.excludeFromDividends(owner()) (UNICORNCAKE.sol#142)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (UNICORNCAKE.sol#143)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (UNICORNCAKE.sol#145)
Apply the check-effects-interactions pattern.

Additional information: link

BABYCAKEDividendTracker.canAutoClaim(uint256) (UNICORNCAKE.sol#596-602) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (UNICORNCAKE.sol#597)
- block.timestamp.sub(lastClaimTime) >= claimWait (UNICORNCAKE.sol#601)
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

UNICORNCAKE.totalFees (UNICORNCAKE.sol#46) 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 (UNICORNCAKE.sol#14) 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

Parameter BABYCAKEDividendTracker.getAccount(address)._account (UNICORNCAKE.sol#532) 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 DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (DividendPayingToken.sol#77) is too similar to BABYCAKEDividendTracker.getAccount(address).withdrawableDividends (UNICORNCAKE.sol#537)
Prevent variables from having similar names.

Additional information: link

BABYCAKEDividendTracker.getAccountAtIndex(uint256) (UNICORNCAKE.sol#577-594) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (UNICORNCAKE.sol#588)
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

UNICORNCAKE.swapTokensAtAmount (UNICORNCAKE.sol#39) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

process(uint256) should be declared external:
- BABYCAKEDividendTracker.process(uint256) (UNICORNCAKE.sol#621-666)
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 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/project description on the website or on BscScan, CoinMarketCap


Unable to find token contract audit


Unable to find audit link on the website


Unable to find whitepaper link on the website


Unable to find token on CoinHunt

Additional information: link


Unable to find token/project description on the website or on BscScan, CoinHunt, CoinGecko, CoinMarketCap


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

Price for UNIC