🐇 COOKYCIM $COOKY 🐇 Cookychim; 💰 Insane Utility on $COOKY: DAPPS + Rewards 4% BUSD ❤️ DEX already LIVE! includes portfolio tracker, multi watch list, cross chain using Rubic, buy crypto with fiat using Ramp, Swap any BSC token, Play2earn available by end of July. $COOKY will continuous deliver for our investors. Team is KYC verified contract audit. Play2earn game is build by a dev that took another project to 60 M
Cookychim._swapBack() (contracts/tokens/Cookychim.sol#217-277) sends eth to arbitrary user
Dangerous calls:
- distributor.deposit{value: nativeForReflection}() (contracts/tokens/Cookychim.sol#272)
Cookychim._addLiquidity(uint256,uint256) (contracts/tokens/Cookychim.sol#282-293) sends eth to arbitrary user
Dangerous calls:
- (None,spentNative,None) = router.addLiquidityETH{value: nativeTokenAmount}(address(this),tokenAmount,0,0,liquidityReceiver,block.timestamp) (contracts/tokens/Cookychim.sol#285-292)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in Cookychim._swapBack() (contracts/tokens/Cookychim.sol#217-277):
External calls:
- _swapForNative(tokensToSwap) (contracts/tokens/Cookychim.sol#241)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amount,0,path,address(this),block.timestamp) (contracts/tokens/Cookychim.sol#305-315)
- spentNative = _addLiquidity(tokensForLiquidity,nativeForLiquidity) (contracts/tokens/Cookychim.sol#256)
- (None,spentNative,None) = router.addLiquidityETH{value: nativeTokenAmount}(address(this),tokenAmount,0,0,liquidityReceiver,block.timestamp) (contracts/tokens/Cookychim.sol#285-292)
- distributor.deposit{value: nativeForReflection}() (contracts/tokens/Cookychim.sol#272)
External calls sending eth:
- spentNative = _addLiquidity(tokensForLiquidity,nativeForLiquidity) (contracts/tokens/Cookychim.sol#256)
- (None,spentNative,None) = router.addLiquidityETH{value: nativeTokenAmount}(address(this),tokenAmount,0,0,liquidityReceiver,block.timestamp) (contracts/tokens/Cookychim.sol#285-292)
- address(marketingWallet).transfer(nativeForMarketing) (contracts/tokens/Cookychim.sol#264)
- address(developmentWallet).transfer(nativeForDevelopment) (contracts/tokens/Cookychim.sol#268)
- distributor.deposit{value: nativeForReflection}() (contracts/tokens/Cookychim.sol#272)
State variables written after the call(s):
- _buySellCounter = Packer.pack(0,0) (contracts/tokens/Cookychim.sol#276)
Reentrancy in Cookychim._transfer(address,address,uint256) (contracts/tokens/Cookychim.sol#119-150):
External calls:
- _swapBack() (contracts/tokens/Cookychim.sol#128)
- (None,spentNative,None) = router.addLiquidityETH{value: nativeTokenAmount}(address(this),tokenAmount,0,0,liquidityReceiver,block.timestamp) (contracts/tokens/Cookychim.sol#285-292)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amount,0,path,address(this),block.timestamp) (contracts/tokens/Cookychim.sol#305-315)
- distributor.deposit{value: nativeForReflection}() (contracts/tokens/Cookychim.sol#272)
External calls sending eth:
- _swapBack() (contracts/tokens/Cookychim.sol#128)
- (None,spentNative,None) = router.addLiquidityETH{value: nativeTokenAmount}(address(this),tokenAmount,0,0,liquidityReceiver,block.timestamp) (contracts/tokens/Cookychim.sol#285-292)
- address(marketingWallet).transfer(nativeForMarketing) (contracts/tokens/Cookychim.sol#264)
- address(developmentWallet).transfer(nativeForDevelopment) (contracts/tokens/Cookychim.sol#268)
- distributor.deposit{value: nativeForReflection}() (contracts/tokens/Cookychim.sol#272)
State variables written after the call(s):
- amountAfterFees = _takeFee(from,to,amount) (contracts/tokens/Cookychim.sol#140)
- _balances[from] = fromBalance - amount (contracts/abstracts/BEP20.sol#213)
- _balances[to] += amount (contracts/abstracts/BEP20.sol#215)
- super._transfer(from,to,amountAfterFees) (contracts/tokens/Cookychim.sol#143)
- _balances[from] = fromBalance - amount (contracts/abstracts/BEP20.sol#213)
- _balances[to] += amount (contracts/abstracts/BEP20.sol#215)
- amountAfterFees = _takeFee(from,to,amount) (contracts/tokens/Cookychim.sol#140)
- _buySellCounter = Packer.pack(buys,sells + 1) (contracts/tokens/Cookychim.sol#172)
- _buySellCounter = Packer.pack(buys + 1,sells) (contracts/tokens/Cookychim.sol#174)
- _swapping = false (contracts/tokens/Cookychim.sol#129)
Apply the check-effects-interactions pattern.
Additional information: link
Cookychim.rescueBalance(IBEP20,uint256) (contracts/tokens/Cookychim.sol#491-498) ignores return value by token.transfer(_msgSender(),balance.mul(percentage).div(100)) (contracts/tokens/Cookychim.sol#497)
DividendDistributor.distributeDividend(address) (contracts/tokens/DividendDistributor.sol#135-146) ignores return value by RWRD.transfer(shareholder,amount) (contracts/tokens/DividendDistributor.sol#141)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Cookychim.WBNB (contracts/tokens/Cookychim.sol#19) is never initialized. It is used in:
- Cookychim._swapForNative(uint256) (contracts/tokens/Cookychim.sol#298-316)
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
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Cookychim._swapBack() (contracts/tokens/Cookychim.sol#217-277) uses a dangerous strict equality:
- receivedNativeTokens == 0 (contracts/tokens/Cookychim.sol#246)
Don't use strict equality to determine if an account has enough Ether or tokens.
Additional information: link
Cookychim.rescueBalance(IBEP20,uint256) (contracts/tokens/Cookychim.sol#491-498) contains a tautology or contradiction:
- require(bool,string)(percentage >= 0 && percentage <= 100,COOKY: value-not-between-0-and-100) (contracts/tokens/Cookychim.sol#492)
Cookychim.rescueOwnBalance(uint256) (contracts/tokens/Cookychim.sol#503-509) contains a tautology or contradiction:
- require(bool,string)(percentage >= 0 && percentage <= 100,COOKY: value-not-between-0-and-100) (contracts/tokens/Cookychim.sol#504)
Cookychim.rescueNativeBalance(uint256) (contracts/tokens/Cookychim.sol#514-519) contains a tautology or contradiction:
- require(bool,string)(percentage >= 0 && percentage <= 100,COOKY: value-not-between-0-and-100) (contracts/tokens/Cookychim.sol#515)
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.
Contract ownership is not renounced (belongs to a wallet)
Cookychim._swapBack() (contracts/tokens/Cookychim.sol#217-277) performs a multiplication on the result of a division:
-liquidityShare = (buyLiquidityFee.mul(buys) + sellLiquidityFee.mul(sells)).div(totalBuysSells) (contracts/tokens/Cookychim.sol#229)
-tokensForLiquidity = swapThreshold.mul(liquidityShare).div(totalShares).div(2) (contracts/tokens/Cookychim.sol#236)
Cookychim._swapBack() (contracts/tokens/Cookychim.sol#217-277) performs a multiplication on the result of a division:
-liquidityShare = (buyLiquidityFee.mul(buys) + sellLiquidityFee.mul(sells)).div(totalBuysSells) (contracts/tokens/Cookychim.sol#229)
-nativeForLiquidity = receivedNativeTokens.mul(liquidityShare).div(totalNativeShares).div(2) (contracts/tokens/Cookychim.sol#252)
Cookychim._swapBack() (contracts/tokens/Cookychim.sol#217-277) performs a multiplication on the result of a division:
-marketingShare = (buyMarketingFee.mul(buys) + sellMarketingFee.mul(sells)).div(totalBuysSells) (contracts/tokens/Cookychim.sol#230)
-nativeForMarketing = receivedNativeTokens.mul(marketingShare).div(totalNativeShares) (contracts/tokens/Cookychim.sol#259)
Cookychim._swapBack() (contracts/tokens/Cookychim.sol#217-277) performs a multiplication on the result of a division:
-developmentShare = (buyDevelopmentFee.mul(buys) + sellDevelopmentFee.mul(sells)).div(totalBuysSells) (contracts/tokens/Cookychim.sol#231)
-nativeForDevelopment = receivedNativeTokens.mul(developmentShare).div(totalNativeShares) (contracts/tokens/Cookychim.sol#260)
Cookychim.slitherConstructorVariables() (contracts/tokens/Cookychim.sol#15-522) performs a multiplication on the result of a division:
-maxTxAmount = TOTAL_SUPPLY.div(100).mul(1) (contracts/tokens/Cookychim.sol#34)
Cookychim.slitherConstructorVariables() (contracts/tokens/Cookychim.sol#15-522) performs a multiplication on the result of a division:
-maxWalletSize = TOTAL_SUPPLY.div(100).mul(2) (contracts/tokens/Cookychim.sol#35)
Cookychim.slitherConstructorVariables() (contracts/tokens/Cookychim.sol#15-522) performs a multiplication on the result of a division:
-swapThreshold = TOTAL_SUPPLY.div(10000).mul(10) (contracts/tokens/Cookychim.sol#52)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in DividendDistributor.distributeDividend(address) (contracts/tokens/DividendDistributor.sol#135-146):
External calls:
- RWRD.transfer(shareholder,amount) (contracts/tokens/DividendDistributor.sol#141)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised.add(amount) (contracts/tokens/DividendDistributor.sol#143)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (contracts/tokens/DividendDistributor.sol#144)
Reentrancy in DividendDistributor.process(uint256) (contracts/tokens/DividendDistributor.sol#104-128):
External calls:
- distributeDividend(shareholders[currentIndex]) (contracts/tokens/DividendDistributor.sol#120)
- RWRD.transfer(shareholder,amount) (contracts/tokens/DividendDistributor.sol#141)
State variables written after the call(s):
- currentIndex ++ (contracts/tokens/DividendDistributor.sol#125)
Reentrancy in DividendDistributor.setShare(address,uint256) (contracts/tokens/DividendDistributor.sol#68-82):
External calls:
- distributeDividend(shareholder) (contracts/tokens/DividendDistributor.sol#70)
- RWRD.transfer(shareholder,amount) (contracts/tokens/DividendDistributor.sol#141)
State variables written after the call(s):
- shares[shareholder].amount = amount (contracts/tokens/DividendDistributor.sol#80)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (contracts/tokens/DividendDistributor.sol#81)
Apply the check-effects-interactions pattern.
Additional information: link
Cookychim._swapForNative(uint256).reason (contracts/tokens/Cookychim.sol#313) 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
Cookychim.setSwapThreshold(uint256) (contracts/tokens/Cookychim.sol#336-340) should emit an event for:
- swapThreshold = nextThreshold (contracts/tokens/Cookychim.sol#339)
DividendDistributor.setDistributionCriteria(uint256,uint256) (contracts/tokens/DividendDistributor.sol#63-66) should emit an event for:
- minPeriod = _minPeriod (contracts/tokens/DividendDistributor.sol#64)
- minDistribution = _minDistribution (contracts/tokens/DividendDistributor.sol#65)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).nextOwner (contracts/abstracts/Auth.sol#42) lacks a zero-check on :
- _owner = nextOwner (contracts/abstracts/Auth.sol#43)
DividendDistributor.constructor(address,address,address)._bnbToken (contracts/tokens/DividendDistributor.sol#52) lacks a zero-check on :
- WBNB = _bnbToken (contracts/tokens/DividendDistributor.sol#58)
Check that the address is not zero.
Additional information: link
DividendDistributor.distributeDividend(address) (contracts/tokens/DividendDistributor.sol#135-146) has external calls inside a loop: RWRD.transfer(shareholder,amount) (contracts/tokens/DividendDistributor.sol#141)
Favor pull over push strategy for external calls.
Additional information: link
Variable 'Cookychim._swapForNative(uint256).reason (contracts/tokens/Cookychim.sol#313)' in Cookychim._swapForNative(uint256) (contracts/tokens/Cookychim.sol#298-316) potentially used before declaration: UnhandledError(reason) (contracts/tokens/Cookychim.sol#314)
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 Cookychim._swapBack() (contracts/tokens/Cookychim.sol#217-277):
External calls:
- _swapForNative(tokensToSwap) (contracts/tokens/Cookychim.sol#241)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amount,0,path,address(this),block.timestamp) (contracts/tokens/Cookychim.sol#305-315)
- spentNative = _addLiquidity(tokensForLiquidity,nativeForLiquidity) (contracts/tokens/Cookychim.sol#256)
- (None,spentNative,None) = router.addLiquidityETH{value: nativeTokenAmount}(address(this),tokenAmount,0,0,liquidityReceiver,block.timestamp) (contracts/tokens/Cookychim.sol#285-292)
External calls sending eth:
- spentNative = _addLiquidity(tokensForLiquidity,nativeForLiquidity) (contracts/tokens/Cookychim.sol#256)
- (None,spentNative,None) = router.addLiquidityETH{value: nativeTokenAmount}(address(this),tokenAmount,0,0,liquidityReceiver,block.timestamp) (contracts/tokens/Cookychim.sol#285-292)
State variables written after the call(s):
- spentNative = _addLiquidity(tokensForLiquidity,nativeForLiquidity) (contracts/tokens/Cookychim.sol#256)
- _allowances[owner][spender] = amount (contracts/abstracts/BEP20.sol#292)
Reentrancy in Cookychim.constructor(address,address[5]) (contracts/tokens/Cookychim.sol#74-114):
External calls:
- pair = IDEXFactory(router.factory()).createPair(router.WETH(),address(this)) (contracts/tokens/Cookychim.sol#80)
State variables written after the call(s):
- RWRD = _addrs[4] (contracts/tokens/Cookychim.sol#82)
- RWRD = router.WETH() (contracts/tokens/Cookychim.sol#83)
- _approve(address(this),address(router),type()(uint256).max) (contracts/tokens/Cookychim.sol#85)
- _allowances[owner][spender] = amount (contracts/abstracts/BEP20.sol#292)
- _mint(initialOwner,TOTAL_SUPPLY) (contracts/tokens/Cookychim.sol#113)
- _balances[account] += amount (contracts/abstracts/BEP20.sol#237)
- _feeExempt[initialOwner] = true (contracts/tokens/Cookychim.sol#99)
- _feeExempt[address(this)] = true (contracts/tokens/Cookychim.sol#100)
- _feeExempt[ADDR_DEAD] = true (contracts/tokens/Cookychim.sol#101)
- _feeExempt[developmentWallet] = true (contracts/tokens/Cookychim.sol#102)
- _feeExempt[marketingWallet] = true (contracts/tokens/Cookychim.sol#103)
- _maxTxExempt[initialOwner] = true (contracts/tokens/Cookychim.sol#109)
- _maxTxExempt[address(this)] = true (contracts/tokens/Cookychim.sol#110)
- _maxTxExempt[ADDR_DEAD] = true (contracts/tokens/Cookychim.sol#111)
- _maxWalletExempt[initialOwner] = true (contracts/tokens/Cookychim.sol#105)
- _maxWalletExempt[address(this)] = true (contracts/tokens/Cookychim.sol#106)
- _maxWalletExempt[ADDR_DEAD] = true (contracts/tokens/Cookychim.sol#107)
- _mint(initialOwner,TOTAL_SUPPLY) (contracts/tokens/Cookychim.sol#113)
- _totalSupply += amount (contracts/abstracts/BEP20.sol#236)
- amms[pair] = true (contracts/tokens/Cookychim.sol#97)
- developmentWallet = _addrs[1] (contracts/tokens/Cookychim.sol#93)
- distributor = new DividendDistributor(_addrs[0],RWRD,router.WETH()) (contracts/tokens/Cookychim.sol#87-91)
- liquidityReceiver = _addrs[3] (contracts/tokens/Cookychim.sol#95)
- marketingWallet = _addrs[2] (contracts/tokens/Cookychim.sol#94)
Reentrancy in DividendDistributor.deposit() (contracts/tokens/DividendDistributor.sol#84-102):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp) (contracts/tokens/DividendDistributor.sol#91-96)
State variables written after the call(s):
- dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares)) (contracts/tokens/DividendDistributor.sol#101)
- totalDividends = totalDividends.add(amount) (contracts/tokens/DividendDistributor.sol#100)
Reentrancy in DividendDistributor.distributeDividend(address) (contracts/tokens/DividendDistributor.sol#135-146):
External calls:
- RWRD.transfer(shareholder,amount) (contracts/tokens/DividendDistributor.sol#141)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (contracts/tokens/DividendDistributor.sol#142)
Reentrancy in DividendDistributor.setShare(address,uint256) (contracts/tokens/DividendDistributor.sol#68-82):
External calls:
- distributeDividend(shareholder) (contracts/tokens/DividendDistributor.sol#70)
- RWRD.transfer(shareholder,amount) (contracts/tokens/DividendDistributor.sol#141)
State variables written after the call(s):
- addShareholder(shareholder) (contracts/tokens/DividendDistributor.sol#74)
- shareholderIndexes[shareholder] = shareholders.length (contracts/tokens/DividendDistributor.sol#168)
- removeShareholder(shareholder) (contracts/tokens/DividendDistributor.sol#76)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (contracts/tokens/DividendDistributor.sol#174)
- addShareholder(shareholder) (contracts/tokens/DividendDistributor.sol#74)
- shareholders.push(shareholder) (contracts/tokens/DividendDistributor.sol#169)
- removeShareholder(shareholder) (contracts/tokens/DividendDistributor.sol#76)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (contracts/tokens/DividendDistributor.sol#173)
- shareholders.pop() (contracts/tokens/DividendDistributor.sol#175)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (contracts/tokens/DividendDistributor.sol#79)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Cookychim._swapBack() (contracts/tokens/Cookychim.sol#217-277):
External calls:
- _swapForNative(tokensToSwap) (contracts/tokens/Cookychim.sol#241)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amount,0,path,address(this),block.timestamp) (contracts/tokens/Cookychim.sol#305-315)
- spentNative = _addLiquidity(tokensForLiquidity,nativeForLiquidity) (contracts/tokens/Cookychim.sol#256)
- (None,spentNative,None) = router.addLiquidityETH{value: nativeTokenAmount}(address(this),tokenAmount,0,0,liquidityReceiver,block.timestamp) (contracts/tokens/Cookychim.sol#285-292)
External calls sending eth:
- spentNative = _addLiquidity(tokensForLiquidity,nativeForLiquidity) (contracts/tokens/Cookychim.sol#256)
- (None,spentNative,None) = router.addLiquidityETH{value: nativeTokenAmount}(address(this),tokenAmount,0,0,liquidityReceiver,block.timestamp) (contracts/tokens/Cookychim.sol#285-292)
Event emitted after the call(s):
- Approval(owner,spender,amount) (contracts/abstracts/BEP20.sol#293)
- spentNative = _addLiquidity(tokensForLiquidity,nativeForLiquidity) (contracts/tokens/Cookychim.sol#256)
Reentrancy in Cookychim._swapForNative(uint256) (contracts/tokens/Cookychim.sol#298-316):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amount,0,path,address(this),block.timestamp) (contracts/tokens/Cookychim.sol#305-315)
Event emitted after the call(s):
- UnhandledError(reason) (contracts/tokens/Cookychim.sol#314)
Reentrancy in Cookychim._transfer(address,address,uint256) (contracts/tokens/Cookychim.sol#119-150):
External calls:
- _swapBack() (contracts/tokens/Cookychim.sol#128)
- (None,spentNative,None) = router.addLiquidityETH{value: nativeTokenAmount}(address(this),tokenAmount,0,0,liquidityReceiver,block.timestamp) (contracts/tokens/Cookychim.sol#285-292)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amount,0,path,address(this),block.timestamp) (contracts/tokens/Cookychim.sol#305-315)
- distributor.deposit{value: nativeForReflection}() (contracts/tokens/Cookychim.sol#272)
External calls sending eth:
- _swapBack() (contracts/tokens/Cookychim.sol#128)
- (None,spentNative,None) = router.addLiquidityETH{value: nativeTokenAmount}(address(this),tokenAmount,0,0,liquidityReceiver,block.timestamp) (contracts/tokens/Cookychim.sol#285-292)
- address(marketingWallet).transfer(nativeForMarketing) (contracts/tokens/Cookychim.sol#264)
- address(developmentWallet).transfer(nativeForDevelopment) (contracts/tokens/Cookychim.sol#268)
- distributor.deposit{value: nativeForReflection}() (contracts/tokens/Cookychim.sol#272)
Event emitted after the call(s):
- Transfer(from,to,amount) (contracts/abstracts/BEP20.sol#217)
- amountAfterFees = _takeFee(from,to,amount) (contracts/tokens/Cookychim.sol#140)
- Transfer(from,to,amount) (contracts/abstracts/BEP20.sol#217)
- super._transfer(from,to,amountAfterFees) (contracts/tokens/Cookychim.sol#143)
Reentrancy in Cookychim.constructor(address,address[5]) (contracts/tokens/Cookychim.sol#74-114):
External calls:
- pair = IDEXFactory(router.factory()).createPair(router.WETH(),address(this)) (contracts/tokens/Cookychim.sol#80)
Event emitted after the call(s):
- Approval(owner,spender,amount) (contracts/abstracts/BEP20.sol#293)
- _approve(address(this),address(router),type()(uint256).max) (contracts/tokens/Cookychim.sol#85)
- Transfer(address(0),account,amount) (contracts/abstracts/BEP20.sol#238)
- _mint(initialOwner,TOTAL_SUPPLY) (contracts/tokens/Cookychim.sol#113)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.shouldDistribute(address) (contracts/tokens/DividendDistributor.sol#130-133) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (contracts/tokens/DividendDistributor.sol#131-132)
Avoid relying on block.timestamp.
Additional information: link
Address.verifyCallResult(bool,bytes,string) (@openzeppelin/contracts/utils/Address.sol#201-221) uses assembly
- INLINE ASM (@openzeppelin/contracts/utils/Address.sol#213-216)
Do not use evm assembly.
Additional information: link
Different versions of Solidity is used:
- Version used: ['^0.8.0', '^0.8.1']
- ^0.8.1 (@openzeppelin/contracts/utils/Address.sol#4)
- ^0.8.0 (@openzeppelin/contracts/utils/Context.sol#4)
- ^0.8.0 (@openzeppelin/contracts/utils/math/SafeMath.sol#4)
- ^0.8.0 (contracts/abstracts/Auth.sol#3)
- ^0.8.0 (contracts/abstracts/BEP20.sol#4)
- ^0.8.0 (contracts/interfaces/IBEP20.sol#3)
- ^0.8.0 (contracts/interfaces/IBEP20Metadata.sol#4)
- ^0.8.0 (contracts/interfaces/IDEXFactory.sol#2)
- ^0.8.0 (contracts/interfaces/IDEXRouter.sol#2)
- ^0.8.0 (contracts/interfaces/IDividendDistributor.sol#2)
- ^0.8.0 (contracts/libs/Packer.sol#2)
- ^0.8.0 (contracts/libs/SafeBEP20.sol#4)
- ^0.8.0 (contracts/tokens/Cookychim.sol#2)
- ^0.8.0 (contracts/tokens/DividendDistributor.sol#2)
Use one Solidity version.
Additional information: link
DividendDistributor.process(uint256) (contracts/tokens/DividendDistributor.sol#104-128) has costly operations inside a loop:
- currentIndex = 0 (contracts/tokens/DividendDistributor.sol#116)
DividendDistributor.distributeDividend(address) (contracts/tokens/DividendDistributor.sol#135-146) has costly operations inside a loop:
- totalDistributed = totalDistributed.add(amount) (contracts/tokens/DividendDistributor.sol#140)
DividendDistributor.process(uint256) (contracts/tokens/DividendDistributor.sol#104-128) has costly operations inside a loop:
- currentIndex ++ (contracts/tokens/DividendDistributor.sol#125)
Use a local variable to hold the loop computation result.
Additional information: link
Address.functionCall(address,bytes) (@openzeppelin/contracts/utils/Address.sol#85-87) is never used and should be removed
Address.functionCall(address,bytes,string) (@openzeppelin/contracts/utils/Address.sol#95-101) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (@openzeppelin/contracts/utils/Address.sol#114-120) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (@openzeppelin/contracts/utils/Address.sol#128-139) is never used and should be removed
Address.functionDelegateCall(address,bytes) (@openzeppelin/contracts/utils/Address.sol#174-176) is never used and should be removed
Address.functionDelegateCall(address,bytes,string) (@openzeppelin/contracts/utils/Address.sol#184-193) is never used and should be removed
Address.functionStaticCall(address,bytes) (@openzeppelin/contracts/utils/Address.sol#147-149) is never used and should be removed
Address.functionStaticCall(address,bytes,string) (@openzeppelin/contracts/utils/Address.sol#157-166) is never used and should be removed
Address.isContract(address) (@openzeppelin/contracts/utils/Address.sol#36-42) is never used and should be removed
Address.sendValue(address,uint256) (@openzeppelin/contracts/utils/Address.sol#60-65) is never used and should be removed
Address.verifyCallResult(bool,bytes,string) (@openzeppelin/contracts/utils/Address.sol#201-221) is never used and should be removed
BEP20._burn(address,uint256) (contracts/abstracts/BEP20.sol#254-269) is never used and should be removed
Context._msgData() (@openzeppelin/contracts/utils/Context.sol#21-23) is never used and should be removed
SafeBEP20._callOptionalReturn(IBEP20,bytes) (contracts/libs/SafeBEP20.sol#79-89) is never used and should be removed
SafeBEP20.safeApprove(IBEP20,address,uint256) (contracts/libs/SafeBEP20.sol#36-49) is never used and should be removed
SafeBEP20.safeDecreaseAllowance(IBEP20,address,uint256) (contracts/libs/SafeBEP20.sol#60-71) is never used and should be removed
SafeBEP20.safeIncreaseAllowance(IBEP20,address,uint256) (contracts/libs/SafeBEP20.sol#51-58) is never used and should be removed
SafeBEP20.safeTransfer(IBEP20,address,uint256) (contracts/libs/SafeBEP20.sol#12-18) is never used and should be removed
SafeBEP20.safeTransferFrom(IBEP20,address,address,uint256) (contracts/libs/SafeBEP20.sol#20-27) is never used and should be removed
SafeMath.div(uint256,uint256,string) (@openzeppelin/contracts/utils/math/SafeMath.sol#191-200) is never used and should be removed
SafeMath.mod(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#151-153) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (@openzeppelin/contracts/utils/math/SafeMath.sol#217-226) is never used and should be removed
SafeMath.sub(uint256,uint256,string) (@openzeppelin/contracts/utils/math/SafeMath.sol#168-177) is never used and should be removed
SafeMath.tryAdd(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#22-28) is never used and should be removed
SafeMath.tryDiv(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#64-69) is never used and should be removed
SafeMath.tryMod(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#76-81) is never used and should be removed
SafeMath.tryMul(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#47-57) is never used and should be removed
SafeMath.trySub(uint256,uint256) (@openzeppelin/contracts/utils/math/SafeMath.sol#35-40) is never used and should be removed
Remove unused functions.
Additional information: link
Cookychim.buyTotalFee (contracts/tokens/Cookychim.sol#41) is set pre-construction with a non-constant function or state variable:
- buyMarketingFee + buyDevelopmentFee + buyLiquidityFee + buyReflectionFee
Cookychim.sellTotalFee (contracts/tokens/Cookychim.sol#47) is set pre-construction with a non-constant function or state variable:
- sellMarketingFee + sellDevelopmentFee + sellLiquidityFee + sellReflectionFee
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.8.1 (@openzeppelin/contracts/utils/Address.sol#4) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/utils/Context.sol#4) allows old versions
Pragma version^0.8.0 (@openzeppelin/contracts/utils/math/SafeMath.sol#4) allows old versions
Pragma version^0.8.0 (contracts/abstracts/Auth.sol#3) allows old versions
Pragma version^0.8.0 (contracts/abstracts/BEP20.sol#4) allows old versions
Pragma version^0.8.0 (contracts/interfaces/IBEP20.sol#3) allows old versions
Pragma version^0.8.0 (contracts/interfaces/IBEP20Metadata.sol#4) allows old versions
Pragma version^0.8.0 (contracts/interfaces/IDEXFactory.sol#2) allows old versions
Pragma version^0.8.0 (contracts/interfaces/IDEXRouter.sol#2) allows old versions
Pragma version^0.8.0 (contracts/interfaces/IDividendDistributor.sol#2) allows old versions
Pragma version^0.8.0 (contracts/libs/Packer.sol#2) allows old versions
Pragma version^0.8.0 (contracts/libs/SafeBEP20.sol#4) allows old versions
Pragma version^0.8.0 (contracts/tokens/Cookychim.sol#2) allows old versions
Pragma version^0.8.0 (contracts/tokens/DividendDistributor.sol#2) 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
Low level call in Address.sendValue(address,uint256) (@openzeppelin/contracts/utils/Address.sol#60-65):
- (success) = recipient.call{value: amount}() (@openzeppelin/contracts/utils/Address.sol#63)
Low level call in Address.functionCallWithValue(address,bytes,uint256,string) (@openzeppelin/contracts/utils/Address.sol#128-139):
- (success,returndata) = target.call{value: value}(data) (@openzeppelin/contracts/utils/Address.sol#137)
Low level call in Address.functionStaticCall(address,bytes,string) (@openzeppelin/contracts/utils/Address.sol#157-166):
- (success,returndata) = target.staticcall(data) (@openzeppelin/contracts/utils/Address.sol#164)
Low level call in Address.functionDelegateCall(address,bytes,string) (@openzeppelin/contracts/utils/Address.sol#184-193):
- (success,returndata) = target.delegatecall(data) (@openzeppelin/contracts/utils/Address.sol#191)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Variable Auth._owner (contracts/abstracts/Auth.sol#6) is not in mixedCase
Function IDEXRouter.WETH() (contracts/interfaces/IDEXRouter.sol#6) is not in mixedCase
Parameter Cookychim.setDistributionCriteria(uint256,uint256)._minPeriod (contracts/tokens/Cookychim.sol#480) is not in mixedCase
Parameter Cookychim.setDistributionCriteria(uint256,uint256)._minDistribution (contracts/tokens/Cookychim.sol#480) is not in mixedCase
Variable Cookychim.WBNB (contracts/tokens/Cookychim.sol#19) is not in mixedCase
Variable Cookychim.RWRD (contracts/tokens/Cookychim.sol#20) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minPeriod (contracts/tokens/DividendDistributor.sol#63) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minDistribution (contracts/tokens/DividendDistributor.sol#63) is not in mixedCase
Variable DividendDistributor._token (contracts/tokens/DividendDistributor.sol#12) is not in mixedCase
Variable DividendDistributor.RWRD (contracts/tokens/DividendDistributor.sol#20) is not in mixedCase
Variable DividendDistributor.WBNB (contracts/tokens/DividendDistributor.sol#21) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Reentrancy in Cookychim._swapBack() (contracts/tokens/Cookychim.sol#217-277):
External calls:
- address(marketingWallet).transfer(nativeForMarketing) (contracts/tokens/Cookychim.sol#264)
- address(developmentWallet).transfer(nativeForDevelopment) (contracts/tokens/Cookychim.sol#268)
External calls sending eth:
- spentNative = _addLiquidity(tokensForLiquidity,nativeForLiquidity) (contracts/tokens/Cookychim.sol#256)
- (None,spentNative,None) = router.addLiquidityETH{value: nativeTokenAmount}(address(this),tokenAmount,0,0,liquidityReceiver,block.timestamp) (contracts/tokens/Cookychim.sol#285-292)
- address(marketingWallet).transfer(nativeForMarketing) (contracts/tokens/Cookychim.sol#264)
- address(developmentWallet).transfer(nativeForDevelopment) (contracts/tokens/Cookychim.sol#268)
- distributor.deposit{value: nativeForReflection}() (contracts/tokens/Cookychim.sol#272)
State variables written after the call(s):
- _buySellCounter = Packer.pack(0,0) (contracts/tokens/Cookychim.sol#276)
Reentrancy in Cookychim._transfer(address,address,uint256) (contracts/tokens/Cookychim.sol#119-150):
External calls:
- _swapBack() (contracts/tokens/Cookychim.sol#128)
- address(marketingWallet).transfer(nativeForMarketing) (contracts/tokens/Cookychim.sol#264)
- address(developmentWallet).transfer(nativeForDevelopment) (contracts/tokens/Cookychim.sol#268)
External calls sending eth:
- _swapBack() (contracts/tokens/Cookychim.sol#128)
- (None,spentNative,None) = router.addLiquidityETH{value: nativeTokenAmount}(address(this),tokenAmount,0,0,liquidityReceiver,block.timestamp) (contracts/tokens/Cookychim.sol#285-292)
- address(marketingWallet).transfer(nativeForMarketing) (contracts/tokens/Cookychim.sol#264)
- address(developmentWallet).transfer(nativeForDevelopment) (contracts/tokens/Cookychim.sol#268)
- distributor.deposit{value: nativeForReflection}() (contracts/tokens/Cookychim.sol#272)
State variables written after the call(s):
- amountAfterFees = _takeFee(from,to,amount) (contracts/tokens/Cookychim.sol#140)
- _balances[from] = fromBalance - amount (contracts/abstracts/BEP20.sol#213)
- _balances[to] += amount (contracts/abstracts/BEP20.sol#215)
- super._transfer(from,to,amountAfterFees) (contracts/tokens/Cookychim.sol#143)
- _balances[from] = fromBalance - amount (contracts/abstracts/BEP20.sol#213)
- _balances[to] += amount (contracts/abstracts/BEP20.sol#215)
- amountAfterFees = _takeFee(from,to,amount) (contracts/tokens/Cookychim.sol#140)
- _buySellCounter = Packer.pack(buys,sells + 1) (contracts/tokens/Cookychim.sol#172)
- _buySellCounter = Packer.pack(buys + 1,sells) (contracts/tokens/Cookychim.sol#174)
- _swapping = false (contracts/tokens/Cookychim.sol#129)
Event emitted after the call(s):
- Transfer(from,to,amount) (contracts/abstracts/BEP20.sol#217)
- amountAfterFees = _takeFee(from,to,amount) (contracts/tokens/Cookychim.sol#140)
- Transfer(from,to,amount) (contracts/abstracts/BEP20.sol#217)
- super._transfer(from,to,amountAfterFees) (contracts/tokens/Cookychim.sol#143)
Apply the check-effects-interactions pattern.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (contracts/interfaces/IDEXRouter.sol#11) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (contracts/interfaces/IDEXRouter.sol#12)
Variable Cookychim.TOTAL_SUPPLY (contracts/tokens/Cookychim.sol#27) is too similar to BEP20._totalSupply (contracts/abstracts/BEP20.sol#14)
Prevent variables from having similar names.
Additional information: link
Cookychim.slitherConstructorVariables() (contracts/tokens/Cookychim.sol#15-522) uses literals with too many digits:
- _distributorGas = 500000 (contracts/tokens/Cookychim.sol#62)
Cookychim.slitherConstructorConstantVariables() (contracts/tokens/Cookychim.sol#15-522) uses literals with too many digits:
- ADDR_DEAD = 0x000000000000000000000000000000000000dEaD (contracts/tokens/Cookychim.sol#22)
Cookychim.slitherConstructorConstantVariables() (contracts/tokens/Cookychim.sol#15-522) uses literals with too many digits:
- ADDR_ZERO = 0x0000000000000000000000000000000000000000 (contracts/tokens/Cookychim.sol#23)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
Cookychim.WBNB (contracts/tokens/Cookychim.sol#19) should be constant
Cookychim._distributorGas (contracts/tokens/Cookychim.sol#62) should be constant
Cookychim.maxTxAmount (contracts/tokens/Cookychim.sol#34) should be constant
Cookychim.maxWalletSize (contracts/tokens/Cookychim.sol#35) should be constant
DividendDistributor.dividendsPerShareAccuracyFactor (contracts/tokens/DividendDistributor.sol#34) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
authorize(address) should be declared external:
- Auth.authorize(address) (contracts/abstracts/Auth.sol#22-24)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (contracts/abstracts/Auth.sol#26-28)
owner() should be declared external:
- Auth.owner() (contracts/abstracts/Auth.sol#34-36)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (contracts/abstracts/Auth.sol#42-46)
name() should be declared external:
- BEP20.name() (contracts/abstracts/BEP20.sol#36-38)
symbol() should be declared external:
- BEP20.symbol() (contracts/abstracts/BEP20.sol#44-46)
decimals() should be declared external:
- BEP20.decimals() (contracts/abstracts/BEP20.sol#61-63)
totalSupply() should be declared external:
- BEP20.totalSupply() (contracts/abstracts/BEP20.sol#68-70)
transfer(address,uint256) should be declared external:
- BEP20.transfer(address,uint256) (contracts/abstracts/BEP20.sol#87-91)
approve(address,uint256) should be declared external:
- BEP20.approve(address,uint256) (contracts/abstracts/BEP20.sol#110-114)
transferFrom(address,address,uint256) should be declared external:
- BEP20.transferFrom(address,address,uint256) (contracts/abstracts/BEP20.sol#132-141)
increaseAllowance(address,uint256) should be declared external:
- BEP20.increaseAllowance(address,uint256) (contracts/abstracts/BEP20.sol#155-159)
decreaseAllowance(address,uint256) should be declared external:
- BEP20.decreaseAllowance(address,uint256) (contracts/abstracts/BEP20.sol#175-184)
getCirculatingSupply() should be declared external:
- Cookychim.getCirculatingSupply() (contracts/tokens/Cookychim.sol#320-322)
Use the external attribute for functions never called from the contract.
Additional information: link
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Unable to find token contract audit
Unable to find audit 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
Token is not listed at Mobula.Finance
Additional information: link
Unable to find token on CoinHunt
Additional information: link
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
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Telegram account has relatively few subscribers
Twitter account has relatively few followers
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account