Hold JollyCake and get paid.
Passive income in CAKE every 60 minutes.
To begin that are several reasons that let me think Jollycake will be taking off soon 🚀 First of all because of its unique tokenomics. Holders are rewarded interest in cake directly to their wallets. There is a small tax of 16% per transaction but most of that tax will be distributed to the holders.
JollyCake - The World’s Best Cake Reflection Token That Offers Rewards To Contributors.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
JCAKE.addLiquidity(uint256,uint256) (JollyCake.sol#452-467) sends eth to arbitrary user
Dangerous calls:
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (JollyCake.sol#458-465)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in JCAKE._transfer(address,address,uint256) (JollyCake.sol#303-377):
External calls:
- swapAndSendToFee(marketingTokens) (JollyCake.sol#330)
- IERC20(CAKE).transfer(_marketingWalletAddress,newBalance) (JollyCake.sol#385)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (JollyCake.sol#443-449)
- swapAndLiquify(swapTokens) (JollyCake.sol#336)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (JollyCake.sol#458-465)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (JollyCake.sol#423-429)
- swapAndSendDividends(sellTokens) (JollyCake.sol#339)
- success = IERC20(CAKE).transfer(address(dividendTracker),dividends) (JollyCake.sol#472)
- dividendTracker.distributeCAKEDividends(dividends) (JollyCake.sol#475)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (JollyCake.sol#443-449)
External calls sending eth:
- swapAndLiquify(swapTokens) (JollyCake.sol#336)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (JollyCake.sol#458-465)
State variables written after the call(s):
- super._transfer(from,address(this),fees) (JollyCake.sol#359)
- _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) (JollyCake.sol#362)
- _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 (JollyCake.sol#341)
Apply the check-effects-interactions pattern.
Additional information: link
JCAKE.swapAndSendToFee(uint256) (JollyCake.sol#379-386) ignores return value by IERC20(CAKE).transfer(_marketingWalletAddress,newBalance) (JollyCake.sol#385)
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 JCAKE._transfer(address,address,uint256) (JollyCake.sol#303-377):
External calls:
- swapAndSendToFee(marketingTokens) (JollyCake.sol#330)
- IERC20(CAKE).transfer(_marketingWalletAddress,newBalance) (JollyCake.sol#385)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (JollyCake.sol#443-449)
State variables written after the call(s):
- _burn(deadWallet,burnTokens) (JollyCake.sol#333)
- _balances[account] = _balances[account].sub(amount,ERC20: burn amount exceeds balance) (ERC20.sol#261)
Reentrancy in DividendPayingToken._withdrawDividendOfUser(address) (DividendPayingToken.sol#76-92):
External calls:
- success = IERC20(CAKE).transfer(user,_withdrawableDividend) (DividendPayingToken.sol#81)
State variables written after the call(s):
- withdrawnDividends[user] = withdrawnDividends[user].sub(_withdrawableDividend) (DividendPayingToken.sol#84)
Reentrancy in JCAKE.updateDividendTracker(address) (JollyCake.sol#133-148):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (JollyCake.sol#140)
- newDividendTracker.excludeFromDividends(address(this)) (JollyCake.sol#141)
- newDividendTracker.excludeFromDividends(owner()) (JollyCake.sol#142)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (JollyCake.sol#143)
State variables written after the call(s):
- dividendTracker = newDividendTracker (JollyCake.sol#147)
Apply the check-effects-interactions pattern.
Additional information: link
JCAKE._transfer(address,address,uint256).claims (JollyCake.sol#370) is a local variable never initialized
JCAKE._transfer(address,address,uint256).lastProcessedIndex (JollyCake.sol#370) is a local variable never initialized
JCAKE._transfer(address,address,uint256).iterations (JollyCake.sol#370) 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
JCAKE.claim() (JollyCake.sol#290-292) ignores return value by dividendTracker.processAccount(msg.sender,false) (JollyCake.sol#291)
JCAKE._transfer(address,address,uint256) (JollyCake.sol#303-377) ignores return value by dividendTracker.process(gas) (JollyCake.sol#370-375)
JCAKE.addLiquidity(uint256,uint256) (JollyCake.sol#452-467) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (JollyCake.sol#458-465)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendPayingToken.constructor(string,string)._name (DividendPayingToken.sol#50) shadows:
- ERC20._name (ERC20.sol#43) (state variable)
DividendPayingToken.constructor(string,string)._symbol (DividendPayingToken.sol#50) shadows:
- ERC20._symbol (ERC20.sol#44) (state variable)
DividendPayingToken.dividendOf(address)._owner (DividendPayingToken.sol#98) shadows:
- Ownable._owner (Ownable.sol#8) (state variable)
DividendPayingToken.withdrawableDividendOf(address)._owner (DividendPayingToken.sol#105) shadows:
- Ownable._owner (Ownable.sol#8) (state variable)
DividendPayingToken.withdrawnDividendOf(address)._owner (DividendPayingToken.sol#112) shadows:
- Ownable._owner (Ownable.sol#8) (state variable)
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
JCAKE.setCAKERewardsFee(uint256) (JollyCake.sol#178-181) should emit an event for:
- CAKERewardsFee = value (JollyCake.sol#179)
- totalFees = CAKERewardsFee.add(liquidityFee).add(marketingFee).add(burnFee) (JollyCake.sol#180)
JCAKE.setLiquiditFee(uint256) (JollyCake.sol#183-186) should emit an event for:
- liquidityFee = value (JollyCake.sol#184)
- totalFees = CAKERewardsFee.add(liquidityFee).add(marketingFee).add(burnFee) (JollyCake.sol#185)
JCAKE.setMarketingFee(uint256) (JollyCake.sol#188-192) should emit an event for:
- marketingFee = value (JollyCake.sol#189)
- totalFees = CAKERewardsFee.add(liquidityFee).add(marketingFee).add(burnFee) (JollyCake.sol#190)
JCAKE.setBurnFee(uint256) (JollyCake.sol#194-198) should emit an event for:
- burnFee = value (JollyCake.sol#195)
- totalFees = CAKERewardsFee.add(liquidityFee).add(marketingFee).add(burnFee) (JollyCake.sol#196)
Emit an event for critical parameter changes.
Additional information: link
JCAKE.updateUniswapV2Router(address)._uniswapV2Pair (JollyCake.sol#154-155) lacks a zero-check on :
- uniswapV2Pair = _uniswapV2Pair (JollyCake.sol#156)
JCAKE.setMarketingWallet(address).wallet (JollyCake.sol#174) lacks a zero-check on :
- _marketingWalletAddress = wallet (JollyCake.sol#175)
Check that the address is not zero.
Additional information: link
DividendPayingToken._withdrawDividendOfUser(address) (DividendPayingToken.sol#76-92) has external calls inside a loop: success = IERC20(CAKE).transfer(user,_withdrawableDividend) (DividendPayingToken.sol#81)
Favor pull over push strategy for external calls.
Additional information: link
Variable 'JCAKE._transfer(address,address,uint256).claims (JollyCake.sol#370)' in JCAKE._transfer(address,address,uint256) (JollyCake.sol#303-377) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (JollyCake.sol#371)
Variable 'JCAKE._transfer(address,address,uint256).iterations (JollyCake.sol#370)' in JCAKE._transfer(address,address,uint256) (JollyCake.sol#303-377) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (JollyCake.sol#371)
Variable 'JCAKE._transfer(address,address,uint256).lastProcessedIndex (JollyCake.sol#370)' in JCAKE._transfer(address,address,uint256) (JollyCake.sol#303-377) potentially used before declaration: ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (JollyCake.sol#371)
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 JCAKE._transfer(address,address,uint256) (JollyCake.sol#303-377):
External calls:
- swapAndSendToFee(marketingTokens) (JollyCake.sol#330)
- IERC20(CAKE).transfer(_marketingWalletAddress,newBalance) (JollyCake.sol#385)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (JollyCake.sol#443-449)
State variables written after the call(s):
- _burn(deadWallet,burnTokens) (JollyCake.sol#333)
- _totalSupply = _totalSupply.sub(amount) (ERC20.sol#262)
Reentrancy in JCAKE._transfer(address,address,uint256) (JollyCake.sol#303-377):
External calls:
- swapAndSendToFee(marketingTokens) (JollyCake.sol#330)
- IERC20(CAKE).transfer(_marketingWalletAddress,newBalance) (JollyCake.sol#385)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (JollyCake.sol#443-449)
- swapAndLiquify(swapTokens) (JollyCake.sol#336)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (JollyCake.sol#458-465)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (JollyCake.sol#423-429)
External calls sending eth:
- swapAndLiquify(swapTokens) (JollyCake.sol#336)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (JollyCake.sol#458-465)
State variables written after the call(s):
- swapAndLiquify(swapTokens) (JollyCake.sol#336)
- _allowances[owner][spender] = amount (ERC20.sol#287)
Reentrancy in JCAKE._transfer(address,address,uint256) (JollyCake.sol#303-377):
External calls:
- swapAndSendToFee(marketingTokens) (JollyCake.sol#330)
- IERC20(CAKE).transfer(_marketingWalletAddress,newBalance) (JollyCake.sol#385)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (JollyCake.sol#443-449)
- swapAndLiquify(swapTokens) (JollyCake.sol#336)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (JollyCake.sol#458-465)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (JollyCake.sol#423-429)
- swapAndSendDividends(sellTokens) (JollyCake.sol#339)
- success = IERC20(CAKE).transfer(address(dividendTracker),dividends) (JollyCake.sol#472)
- dividendTracker.distributeCAKEDividends(dividends) (JollyCake.sol#475)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (JollyCake.sol#443-449)
External calls sending eth:
- swapAndLiquify(swapTokens) (JollyCake.sol#336)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (JollyCake.sol#458-465)
State variables written after the call(s):
- swapAndSendDividends(sellTokens) (JollyCake.sol#339)
- _allowances[owner][spender] = amount (ERC20.sol#287)
Reentrancy in JCAKE.constructor() (JollyCake.sol#95-127):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (JollyCake.sol#102-103)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (JollyCake.sol#106)
- uniswapV2Router = _uniswapV2Router (JollyCake.sol#105)
Reentrancy in JCAKE.constructor() (JollyCake.sol#95-127):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (JollyCake.sol#102-103)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (JollyCake.sol#108)
- dividendTracker.excludeFromDividends(pair) (JollyCake.sol#217)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (JollyCake.sol#111)
- dividendTracker.excludeFromDividends(address(this)) (JollyCake.sol#112)
- dividendTracker.excludeFromDividends(owner()) (JollyCake.sol#113)
- dividendTracker.excludeFromDividends(deadWallet) (JollyCake.sol#114)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (JollyCake.sol#115)
State variables written after the call(s):
- _mint(owner(),1000000000 * (10 ** 9)) (JollyCake.sol#126)
- _balances[account] = _balances[account].add(amount) (ERC20.sol#241)
- excludeFromFees(owner(),true) (JollyCake.sol#118)
- _isExcludedFromFees[account] = excluded (JollyCake.sol#161)
- excludeFromFees(_marketingWalletAddress,true) (JollyCake.sol#119)
- _isExcludedFromFees[account] = excluded (JollyCake.sol#161)
- excludeFromFees(address(this),true) (JollyCake.sol#120)
- _isExcludedFromFees[account] = excluded (JollyCake.sol#161)
- _mint(owner(),1000000000 * (10 ** 9)) (JollyCake.sol#126)
- _totalSupply = _totalSupply.add(amount) (ERC20.sol#240)
Reentrancy in JCAKEDividendTracker.processAccount(address,bool) (JollyCake.sol#677-687):
External calls:
- amount = _withdrawDividendOfUser(account) (JollyCake.sol#678)
- success = IERC20(CAKE).transfer(user,_withdrawableDividend) (DividendPayingToken.sol#81)
State variables written after the call(s):
- lastClaimTimes[account] = block.timestamp (JollyCake.sol#681)
Reentrancy in JCAKE.swapAndLiquify(uint256) (JollyCake.sol#388-409):
External calls:
- swapTokensForEth(half) (JollyCake.sol#400)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (JollyCake.sol#423-429)
- addLiquidity(otherHalf,newBalance) (JollyCake.sol#406)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (JollyCake.sol#458-465)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (JollyCake.sol#406)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (JollyCake.sol#458-465)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (JollyCake.sol#406)
- _allowances[owner][spender] = amount (ERC20.sol#287)
Reentrancy in JCAKE.updateUniswapV2Router(address) (JollyCake.sol#150-157):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this),uniswapV2Router.WETH()) (JollyCake.sol#154-155)
State variables written after the call(s):
- uniswapV2Pair = _uniswapV2Pair (JollyCake.sol#156)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in JCAKE._setAutomatedMarketMakerPair(address,bool) (JollyCake.sol#212-221):
External calls:
- dividendTracker.excludeFromDividends(pair) (JollyCake.sol#217)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (JollyCake.sol#220)
Reentrancy in JCAKE._transfer(address,address,uint256) (JollyCake.sol#303-377):
External calls:
- swapAndSendToFee(marketingTokens) (JollyCake.sol#330)
- IERC20(CAKE).transfer(_marketingWalletAddress,newBalance) (JollyCake.sol#385)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (JollyCake.sol#443-449)
Event emitted after the call(s):
- Transfer(account,address(0),amount) (ERC20.sol#263)
- _burn(deadWallet,burnTokens) (JollyCake.sol#333)
Reentrancy in JCAKE._transfer(address,address,uint256) (JollyCake.sol#303-377):
External calls:
- swapAndSendToFee(marketingTokens) (JollyCake.sol#330)
- IERC20(CAKE).transfer(_marketingWalletAddress,newBalance) (JollyCake.sol#385)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (JollyCake.sol#443-449)
- swapAndLiquify(swapTokens) (JollyCake.sol#336)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (JollyCake.sol#458-465)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (JollyCake.sol#423-429)
External calls sending eth:
- swapAndLiquify(swapTokens) (JollyCake.sol#336)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (JollyCake.sol#458-465)
Event emitted after the call(s):
- Approval(owner,spender,amount) (ERC20.sol#288)
- swapAndLiquify(swapTokens) (JollyCake.sol#336)
- SwapAndLiquify(half,newBalance,otherHalf) (JollyCake.sol#408)
- swapAndLiquify(swapTokens) (JollyCake.sol#336)
Reentrancy in JCAKE._transfer(address,address,uint256) (JollyCake.sol#303-377):
External calls:
- swapAndSendToFee(marketingTokens) (JollyCake.sol#330)
- IERC20(CAKE).transfer(_marketingWalletAddress,newBalance) (JollyCake.sol#385)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (JollyCake.sol#443-449)
- swapAndLiquify(swapTokens) (JollyCake.sol#336)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (JollyCake.sol#458-465)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (JollyCake.sol#423-429)
- swapAndSendDividends(sellTokens) (JollyCake.sol#339)
- success = IERC20(CAKE).transfer(address(dividendTracker),dividends) (JollyCake.sol#472)
- dividendTracker.distributeCAKEDividends(dividends) (JollyCake.sol#475)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (JollyCake.sol#443-449)
External calls sending eth:
- swapAndLiquify(swapTokens) (JollyCake.sol#336)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (JollyCake.sol#458-465)
Event emitted after the call(s):
- Approval(owner,spender,amount) (ERC20.sol#288)
- swapAndSendDividends(sellTokens) (JollyCake.sol#339)
- SendDividends(tokens,dividends) (JollyCake.sol#476)
- swapAndSendDividends(sellTokens) (JollyCake.sol#339)
- Transfer(sender,recipient,amount) (ERC20.sol#223)
- super._transfer(from,address(this),fees) (JollyCake.sol#359)
- Transfer(sender,recipient,amount) (ERC20.sol#223)
- super._transfer(from,to,amount) (JollyCake.sol#362)
Reentrancy in JCAKE._transfer(address,address,uint256) (JollyCake.sol#303-377):
External calls:
- swapAndSendToFee(marketingTokens) (JollyCake.sol#330)
- IERC20(CAKE).transfer(_marketingWalletAddress,newBalance) (JollyCake.sol#385)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (JollyCake.sol#443-449)
- swapAndLiquify(swapTokens) (JollyCake.sol#336)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (JollyCake.sol#458-465)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (JollyCake.sol#423-429)
- swapAndSendDividends(sellTokens) (JollyCake.sol#339)
- success = IERC20(CAKE).transfer(address(dividendTracker),dividends) (JollyCake.sol#472)
- dividendTracker.distributeCAKEDividends(dividends) (JollyCake.sol#475)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (JollyCake.sol#443-449)
- dividendTracker.setBalance(address(from),balanceOf(from)) (JollyCake.sol#364)
- dividendTracker.setBalance(address(to),balanceOf(to)) (JollyCake.sol#365)
- dividendTracker.process(gas) (JollyCake.sol#370-375)
External calls sending eth:
- swapAndLiquify(swapTokens) (JollyCake.sol#336)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (JollyCake.sol#458-465)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,true,gas,tx.origin) (JollyCake.sol#371)
Reentrancy in JCAKE.constructor() (JollyCake.sol#95-127):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (JollyCake.sol#102-103)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (JollyCake.sol#108)
- dividendTracker.excludeFromDividends(pair) (JollyCake.sol#217)
Event emitted after the call(s):
- SetAutomatedMarketMakerPair(pair,value) (JollyCake.sol#220)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (JollyCake.sol#108)
Reentrancy in JCAKE.constructor() (JollyCake.sol#95-127):
External calls:
- _uniswapV2Pair = IUniswapV2Factory(_uniswapV2Router.factory()).createPair(address(this),_uniswapV2Router.WETH()) (JollyCake.sol#102-103)
- _setAutomatedMarketMakerPair(_uniswapV2Pair,true) (JollyCake.sol#108)
- dividendTracker.excludeFromDividends(pair) (JollyCake.sol#217)
- dividendTracker.excludeFromDividends(address(dividendTracker)) (JollyCake.sol#111)
- dividendTracker.excludeFromDividends(address(this)) (JollyCake.sol#112)
- dividendTracker.excludeFromDividends(owner()) (JollyCake.sol#113)
- dividendTracker.excludeFromDividends(deadWallet) (JollyCake.sol#114)
- dividendTracker.excludeFromDividends(address(_uniswapV2Router)) (JollyCake.sol#115)
Event emitted after the call(s):
- ExcludeFromFees(account,excluded) (JollyCake.sol#163)
- excludeFromFees(address(this),true) (JollyCake.sol#120)
- ExcludeFromFees(account,excluded) (JollyCake.sol#163)
- excludeFromFees(_marketingWalletAddress,true) (JollyCake.sol#119)
- ExcludeFromFees(account,excluded) (JollyCake.sol#163)
- excludeFromFees(owner(),true) (JollyCake.sol#118)
- Transfer(address(0),account,amount) (ERC20.sol#242)
- _mint(owner(),1000000000 * (10 ** 9)) (JollyCake.sol#126)
Reentrancy in JCAKEDividendTracker.processAccount(address,bool) (JollyCake.sol#677-687):
External calls:
- amount = _withdrawDividendOfUser(account) (JollyCake.sol#678)
- success = IERC20(CAKE).transfer(user,_withdrawableDividend) (DividendPayingToken.sol#81)
Event emitted after the call(s):
- Claim(account,amount,automatic) (JollyCake.sol#682)
Reentrancy in JCAKE.processDividendTracker(uint256) (JollyCake.sol#285-288):
External calls:
- (iterations,claims,lastProcessedIndex) = dividendTracker.process(gas) (JollyCake.sol#286)
Event emitted after the call(s):
- ProcessedDividendTracker(iterations,claims,lastProcessedIndex,false,gas,tx.origin) (JollyCake.sol#287)
Reentrancy in JCAKE.swapAndLiquify(uint256) (JollyCake.sol#388-409):
External calls:
- swapTokensForEth(half) (JollyCake.sol#400)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (JollyCake.sol#423-429)
- addLiquidity(otherHalf,newBalance) (JollyCake.sol#406)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (JollyCake.sol#458-465)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (JollyCake.sol#406)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,address(0),block.timestamp) (JollyCake.sol#458-465)
Event emitted after the call(s):
- Approval(owner,spender,amount) (ERC20.sol#288)
- addLiquidity(otherHalf,newBalance) (JollyCake.sol#406)
- SwapAndLiquify(half,newBalance,otherHalf) (JollyCake.sol#408)
Reentrancy in JCAKE.swapAndSendDividends(uint256) (JollyCake.sol#469-478):
External calls:
- swapTokensForCake(tokens) (JollyCake.sol#470)
- uniswapV2Router.swapExactTokensForTokensSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (JollyCake.sol#443-449)
- success = IERC20(CAKE).transfer(address(dividendTracker),dividends) (JollyCake.sol#472)
- dividendTracker.distributeCAKEDividends(dividends) (JollyCake.sol#475)
Event emitted after the call(s):
- SendDividends(tokens,dividends) (JollyCake.sol#476)
Reentrancy in JCAKE.updateDividendTracker(address) (JollyCake.sol#133-148):
External calls:
- newDividendTracker.excludeFromDividends(address(newDividendTracker)) (JollyCake.sol#140)
- newDividendTracker.excludeFromDividends(address(this)) (JollyCake.sol#141)
- newDividendTracker.excludeFromDividends(owner()) (JollyCake.sol#142)
- newDividendTracker.excludeFromDividends(address(uniswapV2Router)) (JollyCake.sol#143)
Event emitted after the call(s):
- UpdateDividendTracker(newAddress,address(dividendTracker)) (JollyCake.sol#145)
Apply the check-effects-interactions pattern.
Additional information: link
JCAKEDividendTracker.getAccount(address) (JollyCake.sol#541-584) uses timestamp for comparisons
Dangerous comparisons:
- nextClaimTime > block.timestamp (JollyCake.sol#581-583)
JCAKEDividendTracker.canAutoClaim(uint256) (JollyCake.sol#605-611) uses timestamp for comparisons
Dangerous comparisons:
- lastClaimTime > block.timestamp (JollyCake.sol#606)
- block.timestamp.sub(lastClaimTime) >= claimWait (JollyCake.sol#610)
Avoid relying on block.timestamp.
Additional information: link
JCAKE.totalFees (JollyCake.sol#46) is set pre-construction with a non-constant function or state variable:
- CAKERewardsFee.add(liquidityFee).add(marketingFee).add(burnFee)
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
Parameter DividendPayingToken.dividendOf(address)._owner (DividendPayingToken.sol#98) is not in mixedCase
Parameter DividendPayingToken.withdrawableDividendOf(address)._owner (DividendPayingToken.sol#105) is not in mixedCase
Parameter DividendPayingToken.withdrawnDividendOf(address)._owner (DividendPayingToken.sol#112) is not in mixedCase
Parameter DividendPayingToken.accumulativeDividendOf(address)._owner (DividendPayingToken.sol#122) is not in mixedCase
Variable DividendPayingToken.CAKE (DividendPayingToken.sol#24) is not in mixedCase
Constant DividendPayingToken.magnitude (DividendPayingToken.sol#30) is not in UPPER_CASE_WITH_UNDERSCORES
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (IUniswapV2Pair.sol#20) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (IUniswapV2Pair.sol#21) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (IUniswapV2Pair.sol#38) is not in mixedCase
Function IUniswapV2Router01.WETH() (IUniswapV2Router.sol#7) is not in mixedCase
Variable JCAKE.CAKE (JollyCake.sol#36) is not in mixedCase
Variable JCAKE._isBlacklisted (JollyCake.sol#40) is not in mixedCase
Variable JCAKE.CAKERewardsFee (JollyCake.sol#43) is not in mixedCase
Variable JCAKE._marketingWalletAddress (JollyCake.sol#48) is not in mixedCase
Parameter JCAKEDividendTracker.getAccount(address)._account (JollyCake.sol#541) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (IUniswapV2Router.sol#12) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (IUniswapV2Router.sol#13)
Variable DividendPayingToken._withdrawDividendOfUser(address)._withdrawableDividend (DividendPayingToken.sol#77) is too similar to JCAKEDividendTracker.getAccount(address).withdrawableDividends (JollyCake.sol#546)
Prevent variables from having similar names.
Additional information: link
JCAKE.constructor() (JollyCake.sol#95-127) uses literals with too many digits:
- _mint(owner(),1000000000 * (10 ** 9)) (JollyCake.sol#126)
JCAKE.updateGasForProcessing(uint256) (JollyCake.sol#224-229) uses literals with too many digits:
- require(bool,string)(newValue >= 200000 && newValue <= 500000,JCAKE: gasForProcessing must be between 200,000 and 500,000) (JollyCake.sol#225)
JCAKE.slitherConstructorVariables() (JollyCake.sol#24-479) uses literals with too many digits:
- deadWallet = 0x000000000000000000000000000000000000dEaD (JollyCake.sol#34)
JCAKE.slitherConstructorVariables() (JollyCake.sol#24-479) uses literals with too many digits:
- swapTokensAtAmount = 2000000 * (10 ** 9) (JollyCake.sol#38)
JCAKE.slitherConstructorVariables() (JollyCake.sol#24-479) uses literals with too many digits:
- gasForProcessing = 300000 (JollyCake.sol#52)
JCAKEDividendTracker.constructor() (JollyCake.sol#501-504) uses literals with too many digits:
- minimumTokenBalanceForDividends = 200000 * (10 ** 9) (JollyCake.sol#503)
JCAKEDividendTracker.getAccountAtIndex(uint256) (JollyCake.sol#586-603) uses literals with too many digits:
- (0x0000000000000000000000000000000000000000,- 1,- 1,0,0,0,0,0) (JollyCake.sol#597)
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
JCAKE.deadWallet (JollyCake.sol#34) should be constant
JCAKE.swapTokensAtAmount (JollyCake.sol#38) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
distributeCAKEDividends(uint256) should be declared external:
- DividendPayingToken.distributeCAKEDividends(uint256) (DividendPayingToken.sol#55-66)
withdrawDividend() should be declared external:
- DividendPayingToken.withdrawDividend() (DividendPayingToken.sol#70-72)
- JCAKEDividendTracker.withdrawDividend() (JollyCake.sol#510-512)
dividendOf(address) should be declared external:
- DividendPayingToken.dividendOf(address) (DividendPayingToken.sol#98-100)
withdrawnDividendOf(address) should be declared external:
- DividendPayingToken.withdrawnDividendOf(address) (DividendPayingToken.sol#112-114)
name() should be declared external:
- ERC20.name() (ERC20.sol#63-65)
symbol() should be declared external:
- ERC20.symbol() (ERC20.sol#71-73)
decimals() should be declared external:
- ERC20.decimals() (ERC20.sol#88-90)
transfer(address,uint256) should be declared external:
- ERC20.transfer(address,uint256) (ERC20.sol#114-117)
allowance(address,address) should be declared external:
- ERC20.allowance(address,address) (ERC20.sol#122-124)
approve(address,uint256) should be declared external:
- ERC20.approve(address,uint256) (ERC20.sol#133-136)
transferFrom(address,address,uint256) should be declared external:
- ERC20.transferFrom(address,address,uint256) (ERC20.sol#151-159)
increaseAllowance(address,uint256) should be declared external:
- ERC20.increaseAllowance(address,uint256) (ERC20.sol#173-176)
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (ERC20.sol#192-195)
get(IterableMapping.Map,address) should be declared external:
- IterableMapping.get(IterableMapping.Map,address) (IterableMapping.sol#13-15)
getIndexOfKey(IterableMapping.Map,address) should be declared external:
- IterableMapping.getIndexOfKey(IterableMapping.Map,address) (IterableMapping.sol#17-22)
getKeyAtIndex(IterableMapping.Map,uint256) should be declared external:
- IterableMapping.getKeyAtIndex(IterableMapping.Map,uint256) (IterableMapping.sol#24-26)
size(IterableMapping.Map) should be declared external:
- IterableMapping.size(IterableMapping.Map) (IterableMapping.sol#30-32)
updateDividendTracker(address) should be declared external:
- JCAKE.updateDividendTracker(address) (JollyCake.sol#133-148)
updateUniswapV2Router(address) should be declared external:
- JCAKE.updateUniswapV2Router(address) (JollyCake.sol#150-157)
excludeMultipleAccountsFromFees(address[],bool) should be declared external:
- JCAKE.excludeMultipleAccountsFromFees(address[],bool) (JollyCake.sol#166-172)
setAutomatedMarketMakerPair(address,bool) should be declared external:
- JCAKE.setAutomatedMarketMakerPair(address,bool) (JollyCake.sol#201-205)
updateGasForProcessing(uint256) should be declared external:
- JCAKE.updateGasForProcessing(uint256) (JollyCake.sol#224-229)
isExcludedFromFees(address) should be declared external:
- JCAKE.isExcludedFromFees(address) (JollyCake.sol#243-245)
withdrawableDividendOf(address) should be declared external:
- JCAKE.withdrawableDividendOf(address) (JollyCake.sol#247-249)
dividendTokenBalanceOf(address) should be declared external:
- JCAKE.dividendTokenBalanceOf(address) (JollyCake.sol#251-253)
getAccountAtIndex(uint256) should be declared external:
- JCAKEDividendTracker.getAccountAtIndex(uint256) (JollyCake.sol#586-603)
process(uint256) should be declared external:
- JCAKEDividendTracker.process(uint256) (JollyCake.sol#630-675)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (Ownable.sol#43-46)
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (Ownable.sol#52-56)
Use the external attribute for functions never called from the contract.
Additional information: link
Context._msgData() (Context.sol#20-23) is never used and should be removed
DividendPayingToken._transfer(address,address,uint256) (DividendPayingToken.sol#132-138) is never used and should be removed
SafeMath.mod(uint256,uint256) (SafeMath.sol#126-128) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (SafeMath.sol#142-145) is never used and should be removed
SafeMathInt.abs(int256) (SafeMathInt.sol#82-85) is never used and should be removed
SafeMathInt.div(int256,int256) (SafeMathInt.sol#53-59) is never used and should be removed
SafeMathInt.mul(int256,int256) (SafeMathInt.sol#41-48) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version^0.6.2 (Context.sol#3) allows old versions
Pragma version^0.6.2 (DividendPayingToken.sol#3) allows old versions
Pragma version^0.6.2 (DividendPayingTokenInterface.sol#3) allows old versions
Pragma version^0.6.2 (DividendPayingTokenOptionalInterface.sol#3) allows old versions
Pragma version^0.6.2 (ERC20.sol#3) allows old versions
Pragma version^0.6.2 (IERC20.sol#3) allows old versions
Pragma version^0.6.2 (IERC20Metadata.sol#3) allows old versions
Pragma version^0.6.2 (IUniswapV2Factory.sol#3) allows old versions
Pragma version^0.6.2 (IUniswapV2Pair.sol#3) allows old versions
Pragma version^0.6.2 (IUniswapV2Router.sol#3) allows old versions
Pragma version^0.6.2 (IterableMapping.sol#2) allows old versions
Pragma version^0.6.2 (JollyCake.sol#13) allows old versions
Pragma version^0.6.2 (Ownable.sol#1) allows old versions
Pragma version^0.6.2 (SafeMath.sol#3) allows old versions
Pragma version^0.6.2 (SafeMathInt.sol#28) allows old versions
Pragma version^0.6.2 (SafeMathUint.sol#3) 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
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
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.
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Unable to find token on CoinGecko
Additional information: link
Unable to find token on 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 code repository for the project
Young tokens have high risks of price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Twitter account has less than 100 followers
Telegram account has relatively few subscribers
Last post in Twitter was more than 30 days ago
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account
Twitter account has few posts