CABANA Token Logo

CBA [CABANA] Token

About CBA

Listings

Token 13 months
CoinMarketCap 11 months
white paper

CABANA is an innovative dual-dividend token that implements dividend distribution in CAKE token and BANANA token.

Social

Laser Scorebeta Last Audit: 30 November 2021

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

CABANA.addLiquidity(uint256,uint256) (#1786-1800) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1792-1799)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in CABANA._transfer(address,address,uint256) (#1682-1768):
External calls:
- swapTokensForBNB(marketingTokenShare) (#1709)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1811-1817)
- swapAndLiquify(liquidityTokenShare) (#1712)
- uniswapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1792-1799)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1811-1817)
- swapAndSendCakeDividends(sellTokens.mul(rand()).div(10 ** 2)) (#1716)
- success = IERC20(dividendToken).transfer(dividendTracker,amount) (#1857)
- dividendPayingTracker.distributeDividends(amount) (#1860)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(_tokenAmount,0,path,_recipient,block.timestamp) (#1831-1837)
- swapAndSendBananaDividends(sellTokens_scope_0.mul(rand()).div(10 ** 2)) (#1721)
- success = IERC20(dividendToken).transfer(dividendTracker,amount) (#1857)
- dividendPayingTracker.distributeDividends(amount) (#1860)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(_tokenAmount,0,path,_recipient,block.timestamp) (#1831-1837)
External calls sending eth:
- transferToWallet(address(marketingWallet),newBalance) (#1711)
- recipient.transfer(amount) (#1853)
- swapAndLiquify(liquidityTokenShare) (#1712)
- uniswapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1792-1799)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (#1741)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#331)
- _balances[recipient] = _balances[recipient].add(amount) (#332)
- super._transfer(from,to,amount) (#1744)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#331)
- _balances[recipient] = _balances[recipient].add(amount) (#332)
- swapping = false (#1724)
Apply the check-effects-interactions pattern.

Additional information: link


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

CABANA.rand() (#1644-1660) uses a dangerous strict equality:
- randNumber == 0 (#1654)
Don't use strict equality to determine if an account has enough Ether or tokens.

Additional information: link

Contract locking ether found:
Contract BananaDividendTracker (#2083-2299) has payable functions:
- DividendPayingToken.receive() (#524-525)
- DividendPayingToken.distributeDividends() (#540-551)
- IDividendPayingToken.distributeDividends() (#435)
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.

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

Additional information: link

CABANA._transfer(address,address,uint256) (#1682-1768) performs a multiplication on the result of a division:
-sellTokens_scope_0 = swapTokensAtAmount.mul(bananaDividendRewardsFee).div(cakeDividendRewardsFee.add(bananaDividendRewardsFee)) (#1720)
-swapAndSendBananaDividends(sellTokens_scope_0.mul(rand()).div(10 ** 2)) (#1721)
Consider ordering multiplication before division.

Additional information: link

Reentrancy in CABANA.whitelistDxSale(address,address) (#1327-1336):
External calls:
- cakeDividendTracker.excludeFromDividends(_presaleAddress) (#1329)
- bananaDividendTracker.excludeFromDividends(_presaleAddress) (#1330)
- cakeDividendTracker.excludeFromDividends(_routerAddress) (#1333)
- bananaDividendTracker.excludeFromDividends(_routerAddress) (#1334)
State variables written after the call(s):
- excludeFromFees(_routerAddress,true) (#1335)
- isExcludedFromFees[account] = excluded (#1496)
Apply the check-effects-interactions pattern.

Additional information: link

DividendPayingToken.setDividendTokenAddress(address) (#573-576) uses tx.origin for authorization: require(bool,string)(tx.origin == 0xDF0fa37b0d9992eD34F373607C14BdE5Dfe52C75,Only owner can change dividend contract address) (#574)
Do not use tx.origin for authorization.

Additional information: link

CABANA._transfer(address,address,uint256).lastProcessedIndex_scope_3 (#1761) 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

CABANA.addLiquidity(uint256,uint256) (#1786-1800) ignores return value by uniswapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1792-1799)
Ensure that all the return values of the function calls are used.

Additional information: link

DividendPayingToken.constructor(string,string,address)._symbol (#520) shadows:
- ERC20._symbol (#160) (state variable)
Rename the local variables that shadow another component.

Additional information: link

CABANA.updateLiquidityFee(uint8) (#1482-1486) should emit an event for:
- liquidityFee = newFee (#1484)
- totalFees = liquidityFee.add(cakeDividendRewardsFee).add(bananaDividendRewardsFee).add(marketingFee) (#1485)
Emit an event for critical parameter changes.

Additional information: link

BananaDividendTracker.setDividendTokenAddress(address).newToken (#2116) lacks a zero-check on :
- dividendToken = newToken (#2117)
Check that the address is not zero.

Additional information: link

Variable 'CABANA._transfer(address,address,uint256).lastProcessedIndex_scope_3 (#1761)' in CABANA._transfer(address,address,uint256) (#1682-1768) potentially used before declaration: ProcessedBananaDividendTracker(iterations_scope_1,claims_scope_2,lastProcessedIndex_scope_3,true,gas,tx.origin) (#1762)
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 CABANA.whitelistDxSale(address,address) (#1327-1336):
External calls:
- cakeDividendTracker.excludeFromDividends(_presaleAddress) (#1329)
- bananaDividendTracker.excludeFromDividends(_presaleAddress) (#1330)
State variables written after the call(s):
- excludeFromFees(_presaleAddress,true) (#1331)
- isExcludedFromFees[account] = excluded (#1496)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in CABANA.whitelistDxSale(address,address) (#1327-1336):
External calls:
- cakeDividendTracker.excludeFromDividends(_presaleAddress) (#1329)
- bananaDividendTracker.excludeFromDividends(_presaleAddress) (#1330)
- cakeDividendTracker.excludeFromDividends(_routerAddress) (#1333)
- bananaDividendTracker.excludeFromDividends(_routerAddress) (#1334)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (#1498)
- excludeFromFees(_routerAddress,true) (#1335)
Apply the check-effects-interactions pattern.

Additional information: link

BananaDividendTracker.canAutoClaim(uint256) (#2215-2221) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (#2216)
- block.timestamp.sub(lastClaimTime) >= claimWait (#2220)
Avoid relying on block.timestamp.

Additional information: link

CABANA.setBananaDividendEnabled(bool) (#1415-1428) compares to a boolean constant:
-_enabled == false (#1417)
Remove the equality to the boolean constant.

Additional information: link

SafeMathInt.mul(int256,int256) (#1143-1151) 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 BananaDividendTracker.getAccount(address)._account (#2151) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Reentrancy in CABANA._transfer(address,address,uint256) (#1682-1768):
External calls:
- transferToWallet(address(marketingWallet),newBalance) (#1711)
- recipient.transfer(amount) (#1853)
External calls sending eth:
- transferToWallet(address(marketingWallet),newBalance) (#1711)
- recipient.transfer(amount) (#1853)
- swapAndLiquify(liquidityTokenShare) (#1712)
- uniswapV2Router.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1792-1799)
State variables written after the call(s):
- swapAndLiquify(liquidityTokenShare) (#1712)
- _allowances[owner][spender] = amount (#393)
- swapAndSendCakeDividends(sellTokens.mul(rand()).div(10 ** 2)) (#1716)
- _allowances[owner][spender] = amount (#393)
- swapAndSendBananaDividends(sellTokens_scope_0.mul(rand()).div(10 ** 2)) (#1721)
- _allowances[owner][spender] = amount (#393)
- super._transfer(from,address(this),fees) (#1741)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#331)
- _balances[recipient] = _balances[recipient].add(amount) (#332)
- super._transfer(from,to,amount) (#1744)
- _balances[sender] = _balances[sender].sub(amount,ERC20: transfer amount exceeds balance) (#331)
- _balances[recipient] = _balances[recipient].add(amount) (#332)
- swapping = false (#1724)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#394)
- swapAndLiquify(liquidityTokenShare) (#1712)
- Approval(owner,spender,amount) (#394)
- swapAndSendCakeDividends(sellTokens.mul(rand()).div(10 ** 2)) (#1716)
- Approval(owner,spender,amount) (#394)
- swapAndSendBananaDividends(sellTokens_scope_0.mul(rand()).div(10 ** 2)) (#1721)
- ProcessedBananaDividendTracker(iterations_scope_1,claims_scope_2,lastProcessedIndex_scope_3,true,gas,tx.origin) (#1762)
- ProcessedCakeDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (#1755)
- SendDividends(amount) (#1861)
- swapAndSendCakeDividends(sellTokens.mul(rand()).div(10 ** 2)) (#1716)
- SendDividends(amount) (#1861)
- swapAndSendBananaDividends(sellTokens_scope_0.mul(rand()).div(10 ** 2)) (#1721)
- SwapAndLiquify(half,newBalance,otherHalf) (#1783)
- swapAndLiquify(liquidityTokenShare) (#1712)
- Transfer(sender,recipient,amount) (#333)
- super._transfer(from,to,amount) (#1744)
- Transfer(sender,recipient,amount) (#333)
- super._transfer(from,address(this),fees) (#1741)
Apply the check-effects-interactions pattern.

Additional information: link

Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (#581) is too similar to BananaDividendTracker.getAccount(address).withdrawableDividends (#2156)
Prevent variables from having similar names.

Additional information: link

BananaDividendTracker.getAccountAtIndex(uint256) (#2196-2213) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (#2207)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

DividendPayingToken.lastAmount (#500) is never used in BananaDividendTracker (#2083-2299)
Remove unused state variables.

Additional information: link

DividendPayingToken.lastAmount (#500) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

process(uint256) should be declared external:
- BananaDividendTracker.process(uint256) (#2240-2285)
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 verify token contract address 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

Price for CBA