CAKEDAO Token Logo

cDAO [CAKEDAO] Token

About cDAO

Listings

Token 2 years

Website

CakeDAO (cDAO) is a community driven DAO protocol based on the PancakeSwap token CAKE.💎💎. ❇️ 0% Team tokens 🔒🔒 Liquidity locked for 365 days. 🔥🔥 Become the earliest cDAO holder now. 🔥🔥

Social

Laser Scorebeta Last Audit: 27 April 2022

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

Anti-Scam

Links

Reentrancy in CakeDaoToken._swapToWETHCake() (#861-881):
External calls:
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(waitToAmount,0,path,address(this),block.timestamp) (#868-874)
- uniswapV2Router.swapExactETHForTokens{value: address(this).balance}(0,path,address(this),block.timestamp) (#877)
External calls sending eth:
- uniswapV2Router.swapExactETHForTokens{value: address(this).balance}(0,path,address(this),block.timestamp) (#877)
State variables written after the call(s):
- waitToAmount = 0 (#878)
Reentrancy in CakeDaoToken._tokenTransferSell(address,address,uint256) (#689-699):
External calls:
- _swapToWETHCake() (#696)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(waitToAmount,0,path,address(this),block.timestamp) (#868-874)
- uniswapV2Router.swapExactETHForTokens{value: address(this).balance}(0,path,address(this),block.timestamp) (#877)
External calls sending eth:
- _swapToWETHCake() (#696)
- uniswapV2Router.swapExactETHForTokens{value: address(this).balance}(0,path,address(this),block.timestamp) (#877)
State variables written after the call(s):
- _tOwned[recipient] = _tOwned[recipient].add(tAmount.mul(leftR).div(10000)) (#697)
Reentrancy in CakeDaoToken._transfer(address,address,uint256) (#637-654):
External calls:
- transferAction(from,to,amount) (#646)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(waitToAmount,0,path,address(this),block.timestamp) (#868-874)
- uniswapV2Router.swapExactETHForTokens{value: address(this).balance}(0,path,address(this),block.timestamp) (#877)
- IERC20(cake).transfer(shareholders[currentIndex],amountCake) (#908)
External calls sending eth:
- transferAction(from,to,amount) (#646)
- uniswapV2Router.swapExactETHForTokens{value: address(this).balance}(0,path,address(this),block.timestamp) (#877)
State variables written after the call(s):
- setShare(fromAddress) (#650)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#759)
- shareholders.push(shareholder) (#750)
- shareholders.pop() (#761)
- setShare(toAddress) (#651)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#759)
- shareholders.push(shareholder) (#750)
- shareholders.pop() (#761)
Apply the check-effects-interactions pattern.

Additional information: link


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

CakeDaoToken._swapToWETHCake() (#861-881) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.swapExactETHForTokens{value: address(this).balance}(0,path,address(this),block.timestamp) (#877)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

CakeDaoToken.setShare(address) (#736-746) uses a dangerous strict equality:
- IERC20(uniswapV2Pair).balanceOf(shareholder) == 0 (#738)
CakeDaoToken.setShare(address) (#736-746) uses a dangerous strict equality:
- IERC20(uniswapV2Pair).balanceOf(shareholder) == 0 (#743)
Don't use strict equality to determine if an account has enough Ether or tokens.

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.


Contract ownership is not renounced (belongs to a wallet)

CakeDaoToken (#573-930) has incorrect ERC20 function interface:IERC20.transfer(address,uint256) (#33)
CakeDaoToken (#573-930) has incorrect ERC20 function interface:IERC20.transferFrom(address,address,uint256) (#69-73)
CakeDaoToken (#573-930) has incorrect ERC20 function interface:CakeDaoToken.transfer(address,uint256) (#808-810)
CakeDaoToken (#573-930) has incorrect ERC20 function interface:CakeDaoToken.transferFrom(address,address,uint256) (#812-823)
Set the appropriate return values and types for the defined ERC20 functions.

Additional information: link

Reentrancy in CakeDaoToken.process(uint256) (#887-917):
External calls:
- IERC20(cake).transfer(shareholders[currentIndex],amountCake) (#908)
State variables written after the call(s):
- distributeDividend(shareholders[currentIndex],amount) (#911)
- _tOwned[address(this)] = _tOwned[address(this)].sub(tAmount) (#730)
- _tOwned[shareholder] = _tOwned[shareholder].add(tAmount) (#731)
- currentIndex ++ (#914)
- distributeDividend(shareholders[currentIndex],amount) (#911)
- distributeAmount = distributeAmount.sub(tAmount) (#729)
Apply the check-effects-interactions pattern.

Additional information: link

CakeDaoToken._swapToWETHCake() (#861-881) ignores return value by uniswapV2Router.swapExactETHForTokens{value: address(this).balance}(0,path,address(this),block.timestamp) (#877)
Ensure that all the return values of the function calls are used.

Additional information: link

CakeDaoToken.allowance(address,address).owner (#825) shadows:
- Ownable.owner() (#103-105) (function)
CakeDaoToken._approve(address,address,uint256).owner (#851) shadows:
- Ownable.owner() (#103-105) (function)
Rename the local variables that shadow another component.

Additional information: link

CakeDaoToken.constructor(address,address)._cake (#606) lacks a zero-check on :
- cake = _cake (#618)
Check that the address is not zero.

Additional information: link

Reentrancy in CakeDaoToken._transfer(address,address,uint256) (#637-654):
External calls:
- transferAction(from,to,amount) (#646)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(waitToAmount,0,path,address(this),block.timestamp) (#868-874)
- uniswapV2Router.swapExactETHForTokens{value: address(this).balance}(0,path,address(this),block.timestamp) (#877)
- IERC20(cake).transfer(shareholders[currentIndex],amountCake) (#908)
External calls sending eth:
- transferAction(from,to,amount) (#646)
- uniswapV2Router.swapExactETHForTokens{value: address(this).balance}(0,path,address(this),block.timestamp) (#877)
State variables written after the call(s):
- setShare(fromAddress) (#650)
- _updated[shareholder] = false (#755)
- _updated[shareholder] = true (#745)
- setShare(toAddress) (#651)
- _updated[shareholder] = false (#755)
- _updated[shareholder] = true (#745)
- fromAddress = from (#648)
- fromAddress = from (#652)
- setShare(fromAddress) (#650)
- shareholderIndexes[shareholder] = shareholders.length (#749)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#760)
- setShare(toAddress) (#651)
- shareholderIndexes[shareholder] = shareholders.length (#749)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#760)
- toAddress = to (#649)
- toAddress = to (#653)
Reentrancy in CakeDaoToken.constructor(address,address) (#606-625):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#613-616)
State variables written after the call(s):
- cake = _cake (#618)
- isDividendExempt[address(this)] = true (#621)
- isDividendExempt[address(0)] = true (#622)
- isExcludedFromFee[address(this)] = true (#619)
- isExcludedFromFee[msg.sender] = true (#620)
- isOperator[msg.sender] = true (#623)
- uniswapV2Router = _uniswapV2Router (#617)
Reentrancy in CakeDaoToken.transferAction(address,address,uint256) (#656-676):
External calls:
- _swapToWETHCake() (#669)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(waitToAmount,0,path,address(this),block.timestamp) (#868-874)
- uniswapV2Router.swapExactETHForTokens{value: address(this).balance}(0,path,address(this),block.timestamp) (#877)
External calls sending eth:
- _swapToWETHCake() (#669)
- uniswapV2Router.swapExactETHForTokens{value: address(this).balance}(0,path,address(this),block.timestamp) (#877)
State variables written after the call(s):
- _tokenTransfer(from,to,amount) (#670)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#721)
- _tOwned[recipient] = _tOwned[recipient].add(tAmount) (#722)
Reentrancy in CakeDaoToken.transferFrom(address,address,uint256) (#812-823):
External calls:
- _transfer(sender,recipient,amount) (#817)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(waitToAmount,0,path,address(this),block.timestamp) (#868-874)
- uniswapV2Router.swapExactETHForTokens{value: address(this).balance}(0,path,address(this),block.timestamp) (#877)
- IERC20(cake).transfer(shareholders[currentIndex],amountCake) (#908)
External calls sending eth:
- _transfer(sender,recipient,amount) (#817)
- uniswapV2Router.swapExactETHForTokens{value: address(this).balance}(0,path,address(this),block.timestamp) (#877)
State variables written after the call(s):
- _approve(sender,msg.sender,_allowances[sender][msg.sender].sub(amount,ERC20: transfer amount exceeds allowance)) (#818-822)
- _allowances[owner][spender] = amount (#857)
Apply the check-effects-interactions pattern.

Additional information: link

owner() should be declared external:
- Ownable.owner() (#103-105)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#112-115)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#117-121)
setOperator(address,bool) should be declared external:
- CakeDaoToken.setOperator(address,bool) (#632-635)
setExcluded(address,bool) should be declared external:
- CakeDaoToken.setExcluded(address,bool) (#780-782)
name() should be declared external:
- CakeDaoToken.name() (#784-786)
symbol() should be declared external:
- CakeDaoToken.symbol() (#788-790)
decimals() should be declared external:
- CakeDaoToken.decimals() (#792-794)
totalSupply() should be declared external:
- CakeDaoToken.totalSupply() (#796-798)
totalFees() should be declared external:
- CakeDaoToken.totalFees() (#800-802)
transfer(address,uint256) should be declared external:
- CakeDaoToken.transfer(address,uint256) (#808-810)
transferFrom(address,address,uint256) should be declared external:
- CakeDaoToken.transferFrom(address,address,uint256) (#812-823)
allowance(address,address) should be declared external:
- CakeDaoToken.allowance(address,address) (#825-827)
approve(address,uint256) should be declared external:
- CakeDaoToken.approve(address,uint256) (#829-832)
increaseAllowance(address,uint256) should be declared external:
- CakeDaoToken.increaseAllowance(address,uint256) (#834-837)
decreaseAllowance(address,uint256) should be declared external:
- CakeDaoToken.decreaseAllowance(address,uint256) (#839-846)
setDistributorGas(uint256) should be declared external:
- CakeDaoToken.setDistributorGas(uint256) (#883-885)
viewTokenOutAmount(uint256,address,address) should be declared external:
- CakeDaoToken.viewTokenOutAmount(uint256,address,address) (#919-928)
Use the external attribute for functions never called from the contract.

Additional information: link

Reentrancy in CakeDaoToken._tokenTransferSell(address,address,uint256) (#689-699):
External calls:
- _swapToWETHCake() (#696)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(waitToAmount,0,path,address(this),block.timestamp) (#868-874)
- uniswapV2Router.swapExactETHForTokens{value: address(this).balance}(0,path,address(this),block.timestamp) (#877)
External calls sending eth:
- _swapToWETHCake() (#696)
- uniswapV2Router.swapExactETHForTokens{value: address(this).balance}(0,path,address(this),block.timestamp) (#877)
Event emitted after the call(s):
- Transfer(sender,recipient,tAmount.mul(leftR).div(10000)) (#698)
Reentrancy in CakeDaoToken.constructor(address,address) (#606-625):
External calls:
- uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (#613-616)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_tTotal) (#624)
Reentrancy in CakeDaoToken.process(uint256) (#887-917):
External calls:
- IERC20(cake).transfer(shareholders[currentIndex],amountCake) (#908)
Event emitted after the call(s):
- CDAODistributeLog(shareholder,tAmount) (#733)
- distributeDividend(shareholders[currentIndex],amount) (#911)
- CakeDistributeLog(shareholders[currentIndex],amountCake) (#909)
- Transfer(address(this),shareholder,tAmount) (#732)
- distributeDividend(shareholders[currentIndex],amount) (#911)
Reentrancy in CakeDaoToken.transferAction(address,address,uint256) (#656-676):
External calls:
- _swapToWETHCake() (#669)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(waitToAmount,0,path,address(this),block.timestamp) (#868-874)
- uniswapV2Router.swapExactETHForTokens{value: address(this).balance}(0,path,address(this),block.timestamp) (#877)
External calls sending eth:
- _swapToWETHCake() (#669)
- uniswapV2Router.swapExactETHForTokens{value: address(this).balance}(0,path,address(this),block.timestamp) (#877)
Event emitted after the call(s):
- Transfer(sender,recipient,tAmount) (#723)
- _tokenTransfer(from,to,amount) (#670)
Reentrancy in CakeDaoToken.transferAction(address,address,uint256) (#656-676):
External calls:
- _swapToWETHCake() (#669)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(waitToAmount,0,path,address(this),block.timestamp) (#868-874)
- uniswapV2Router.swapExactETHForTokens{value: address(this).balance}(0,path,address(this),block.timestamp) (#877)
- process(distributorGas) (#672)
- IERC20(cake).transfer(shareholders[currentIndex],amountCake) (#908)
External calls sending eth:
- _swapToWETHCake() (#669)
- uniswapV2Router.swapExactETHForTokens{value: address(this).balance}(0,path,address(this),block.timestamp) (#877)
Event emitted after the call(s):
- CDAODistributeLog(shareholder,tAmount) (#733)
- process(distributorGas) (#672)
- CakeDistributeLog(shareholders[currentIndex],amountCake) (#909)
- process(distributorGas) (#672)
- Transfer(address(this),shareholder,tAmount) (#732)
- process(distributorGas) (#672)
Reentrancy in CakeDaoToken.transferFrom(address,address,uint256) (#812-823):
External calls:
- _transfer(sender,recipient,amount) (#817)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(waitToAmount,0,path,address(this),block.timestamp) (#868-874)
- uniswapV2Router.swapExactETHForTokens{value: address(this).balance}(0,path,address(this),block.timestamp) (#877)
- IERC20(cake).transfer(shareholders[currentIndex],amountCake) (#908)
External calls sending eth:
- _transfer(sender,recipient,amount) (#817)
- uniswapV2Router.swapExactETHForTokens{value: address(this).balance}(0,path,address(this),block.timestamp) (#877)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#858)
- _approve(sender,msg.sender,_allowances[sender][msg.sender].sub(amount,ERC20: transfer amount exceeds allowance)) (#818-822)
Apply the check-effects-interactions pattern.

Additional information: link

Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#288) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#290) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#316) is not in mixedCase
Function IUniswapV2Router01.WETH() (#360) is not in mixedCase
Parameter CakeDaoToken.setOperator(address,bool)._operator (#632) is not in mixedCase
Parameter CakeDaoToken.setOperator(address,bool)._flag (#632) is not in mixedCase
Parameter CakeDaoToken.setExcluded(address,bool)._flag (#780) is not in mixedCase
Parameter CakeDaoToken.setDistributorGas(uint256)._distributorGas (#883) is not in mixedCase
Parameter CakeDaoToken.viewTokenOutAmount(uint256,address,address)._amountIn (#920) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#365) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#366)
Prevent variables from having similar names.

Additional information: link

CakeDaoToken.slitherConstructorVariables() (#573-930) uses literals with too many digits:
- distributorGas = 500000 (#599)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

Ownable._previousOwner (#92) is never used in CakeDaoToken (#573-930)
Ownable._lockTime (#93) is never used in CakeDaoToken (#573-930)
Remove unused state variables.

Additional information: link

Ownable._lockTime (#93) should be constant
Ownable._previousOwner (#92) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

CakeDaoToken._feeTax(address,uint256) (#701-714) performs a multiplication on the result of a division:
-_takeLPFee(sender,tAmount.div(10000).mul(400)) (#704)
CakeDaoToken._feeTax(address,uint256) (#701-714) performs a multiplication on the result of a division:
-cakeWait = tAmount.div(10000).mul(500) (#709)
CakeDaoToken._feeTax(address,uint256) (#701-714) performs a multiplication on the result of a division:
-_takeburnFee(sender,tAmount.div(10000).mul(300)) (#707)
Consider ordering multiplication before division.

Additional information: link

Holders:


Token seems to be untradeable: there is no PancakeSwap trading pair and no trading volumes. Ignore for presale.


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


Unable to find Blog account (Reddit or Medium)


Unable to find Youtube account


Unable to find Discord account


Twitter account has few posts


BscScan page for the token does not contain additional info: website, socials, description, etc.

Additional information: link


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


Unable to find token contract audit


Unable to verify that token and website are owned by the same team (no listings + unable to find contract on website)


Unable to verify token contract address on the website


Unable to find audit link on the website


Unable to find whitepaper link on the website


Unable to find Telegram link on the website


Unable to find Twitter link on the website


Unable to find token on CoinGecko

Additional information: link


Unable to find token on 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


Young tokens have high risks of scam / price dump / death


Token has no active CoinGecko listing / rank


Token has no active CoinMarketCap listing / rank

Price for cDAO

News for cDAO