Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
crazycat.swapBack() (#661-710) sends eth to arbitrary user
Dangerous calls:
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#692)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#693)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in crazycat._transferFrom(address,address,uint256) (#596-637):
External calls:
- swapBack() (#606)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#671-677)
- dividendDistributor.deposit{value: amountBNBReflection}() (#687)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#692)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#693)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#700-707)
External calls sending eth:
- swapBack() (#606)
- dividendDistributor.deposit{value: amountBNBReflection}() (#687)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#692)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#693)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#700-707)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#614)
- _balances[recipient] = _balances[recipient].add(finalAmount) (#622)
- finalAmount = takeFee(sender,recipient,amount) (#621)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#651)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.distributeDividend(address) (#282-294) ignores return value by RewardToken.transfer(shareholder,amount) (#288)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Too many vulnerabilities (Unchecked transfer, Reentrancy vulnerability, etc.). High risk of a scam. DYOR & manual audit are advised.
crazycat.swapBack().tmpSuccess (#692) is written in both
(tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#692)
tmpSuccess = false (#696)
crazycat.swapBack().tmpSuccess1 (#693) is written in both
(tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#693)
tmpSuccess1 = false (#697)
Fix or remove the writes.
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.
DividendDistributor.process(uint256) (#253-275) has costly operations inside a loop:
- currentIndex = 0 (#264)
DividendDistributor.distributeDividend(address) (#282-294) has costly operations inside a loop:
- totalDistributed = totalDistributed.add(amount) (#287)
DividendDistributor.process(uint256) (#253-275) has costly operations inside a loop:
- currentIndex ++ (#272)
Use a local variable to hold the loop computation result.
Additional information: link
crazycat._maxTxAmount (#404) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 1 / 100
crazycat._walletMax (#405) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 3 / 100
crazycat.swapThreshold (#441) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 5 / 2000
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.7.4 (#51) 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 crazycat.swapBack() (#661-710):
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#692)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#693)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Reentrancy in DividendDistributor.distributeDividend(address) (#282-294):
External calls:
- RewardToken.transfer(shareholder,amount) (#288)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised.add(amount) (#290)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#291)
Reentrancy in DividendDistributor.process(uint256) (#253-275):
External calls:
- distributeDividend(shareholders[currentIndex]) (#267)
- RewardToken.transfer(shareholder,amount) (#288)
State variables written after the call(s):
- currentIndex ++ (#272)
Reentrancy in DividendDistributor.setShare(address,uint256) (#216-231):
External calls:
- distributeDividend(shareholder) (#219)
- RewardToken.transfer(shareholder,amount) (#288)
State variables written after the call(s):
- shares[shareholder].amount = amount (#229)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#230)
Apply the check-effects-interactions pattern.
Additional information: link
crazycat.swapBack() (#661-710) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#700-707)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendDistributor.setDistributionCriteria(uint256,uint256) (#211-214) should emit an event for:
- minPeriod = newMinPeriod (#212)
- minDistribution = newMinDistribution (#213)
crazycat.changeFees(uint256,uint256,uint256,uint256) (#553-561) should emit an event for:
- liquidityFee = newLiqFee (#554)
- rewardsFee = newRewardFee (#555)
- totalFee = liquidityFee.add(marketingFee).add(rewardsFee) (#559)
- totalFeeIfSelling = totalFee.add(extraFeeOnSell) (#560)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#381) lacks a zero-check on :
- owner = adr (#382)
crazycat.changeFeeReceivers(address,address,address).newLiquidityReceiver (#563) lacks a zero-check on :
- autoLiquidityReceiver = newLiquidityReceiver (#564)
crazycat.changeFeeReceivers(address,address,address).newMarketingWallet (#563) lacks a zero-check on :
- marketingWallet = newMarketingWallet (#565)
crazycat.changeFeeReceivers(address,address,address).newanothermarketingWallet (#563) lacks a zero-check on :
- anothermarketingWallet = newanothermarketingWallet (#566)
Check that the address is not zero.
Additional information: link
DividendDistributor.distributeDividend(address) (#282-294) has external calls inside a loop: RewardToken.transfer(shareholder,amount) (#288)
Favor pull over push strategy for external calls.
Additional information: link
Reentrancy in crazycat._transferFrom(address,address,uint256) (#596-637):
External calls:
- swapBack() (#606)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#671-677)
- dividendDistributor.deposit{value: amountBNBReflection}() (#687)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#692)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#693)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#700-707)
External calls sending eth:
- swapBack() (#606)
- dividendDistributor.deposit{value: amountBNBReflection}() (#687)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#692)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#693)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#700-707)
State variables written after the call(s):
- launch() (#610)
- launchedAt = block.number (#519)
Reentrancy in crazycat.constructor() (#449-481):
External calls:
- pair = IDEXFactory(router.factory()).createPair(router.WETH(),address(this)) (#452)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = uint256(- 1) (#453)
- _balances[msg.sender] = _totalSupply (#479)
- anothermarketingWallet = 0xEAb2EB629171bf73650aCc4ab33D70A5cA4cE1FB (#474)
- autoLiquidityReceiver = msg.sender (#472)
- dividendDistributor = new DividendDistributor(address(router)) (#455)
- isDividendExempt[pair] = true (#465)
- isDividendExempt[address(this)] = true (#467)
- isDividendExempt[DEAD] = true (#468)
- isDividendExempt[ZERO] = true (#469)
- isFeeExempt[msg.sender] = true (#457)
- isFeeExempt[address(this)] = true (#458)
- isFeeExempt[anothermarketingWallet] = true (#459)
- isTxLimitExempt[msg.sender] = true (#461)
- isTxLimitExempt[pair] = true (#462)
- isTxLimitExempt[DEAD] = true (#463)
- marketingWallet = msg.sender (#473)
- totalFee = liquidityFee.add(marketingFee).add(rewardsFee) (#476)
- totalFeeIfSelling = totalFee.add(extraFeeOnSell) (#477)
Reentrancy in DividendDistributor.deposit() (#233-251):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp) (#241-246)
State variables written after the call(s):
- dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares)) (#250)
- totalDividends = totalDividends.add(amount) (#249)
Reentrancy in DividendDistributor.distributeDividend(address) (#282-294):
External calls:
- RewardToken.transfer(shareholder,amount) (#288)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (#289)
Reentrancy in DividendDistributor.setShare(address,uint256) (#216-231):
External calls:
- distributeDividend(shareholder) (#219)
- RewardToken.transfer(shareholder,amount) (#288)
State variables written after the call(s):
- addShareholder(shareholder) (#223)
- shareholderIndexes[shareholder] = shareholders.length (#312)
- removeShareholder(shareholder) (#225)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#318)
- addShareholder(shareholder) (#223)
- shareholders.push(shareholder) (#313)
- removeShareholder(shareholder) (#225)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#317)
- shareholders.pop() (#319)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (#228)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in crazycat._transferFrom(address,address,uint256) (#596-637):
External calls:
- swapBack() (#606)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#671-677)
- dividendDistributor.deposit{value: amountBNBReflection}() (#687)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#692)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#693)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#700-707)
- dividendDistributor.setShare(sender,_balances[sender]) (#626)
- dividendDistributor.setShare(recipient,_balances[recipient]) (#630)
- dividendDistributor.process(distributorGas) (#633)
External calls sending eth:
- swapBack() (#606)
- dividendDistributor.deposit{value: amountBNBReflection}() (#687)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#692)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#693)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#700-707)
Event emitted after the call(s):
- Transfer(sender,recipient,finalAmount) (#635)
Reentrancy in crazycat._transferFrom(address,address,uint256) (#596-637):
External calls:
- swapBack() (#606)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#671-677)
- dividendDistributor.deposit{value: amountBNBReflection}() (#687)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#692)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#693)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#700-707)
External calls sending eth:
- swapBack() (#606)
- dividendDistributor.deposit{value: amountBNBReflection}() (#687)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#692)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#693)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#700-707)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#652)
- finalAmount = takeFee(sender,recipient,amount) (#621)
Reentrancy in crazycat.constructor() (#449-481):
External calls:
- pair = IDEXFactory(router.factory()).createPair(router.WETH(),address(this)) (#452)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#480)
Reentrancy in crazycat.swapBack() (#661-710):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#671-677)
- dividendDistributor.deposit{value: amountBNBReflection}() (#687)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#692)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#693)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#700-707)
External calls sending eth:
- dividendDistributor.deposit{value: amountBNBReflection}() (#687)
- (tmpSuccess) = address(marketingWallet).call{gas: 30000,value: marketingShare}() (#692)
- (tmpSuccess1) = address(anothermarketingWallet).call{gas: 30000,value: anothermarketingShare}() (#693)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#700-707)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#708)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.shouldDistribute(address) (#277-280) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#278-279)
Avoid relying on block.timestamp.
Additional information: link
Function IDEXRouter.WETH() (#110) is not in mixedCase
Variable DividendDistributor._token (#167) is not in mixedCase
Variable DividendDistributor.RewardToken (#177) is not in mixedCase
Contract crazycat (#390-715) is not in CapWords
Constant crazycat._name (#394) is not in UPPER_CASE_WITH_UNDERSCORES
Constant crazycat._symbol (#395) is not in UPPER_CASE_WITH_UNDERSCORES
Constant crazycat._decimals (#396) is not in UPPER_CASE_WITH_UNDERSCORES
Variable crazycat.DEAD (#398) is not in mixedCase
Variable crazycat.ZERO (#399) is not in mixedCase
Variable crazycat.RewardToken (#401) is not in mixedCase
Variable crazycat._totalSupply (#403) is not in mixedCase
Variable crazycat._maxTxAmount (#404) is not in mixedCase
Variable crazycat._walletMax (#405) is not in mixedCase
Variable crazycat._balances (#409) is not in mixedCase
Variable crazycat._allowances (#410) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#115) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#116)
Prevent variables from having similar names.
Additional information: link
crazycat.slitherConstructorVariables() (#390-715) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#398)
crazycat.slitherConstructorVariables() (#390-715) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#399)
crazycat.slitherConstructorVariables() (#390-715) uses literals with too many digits:
- _totalSupply = 10000000 * (10 ** _decimals) (#403)
crazycat.slitherConstructorVariables() (#390-715) uses literals with too many digits:
- distributorGas = 300000 (#435)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
crazycat.RewardToken (#401) is never used in crazycat (#390-715)
Remove unused state variables.
Additional information: link
DividendDistributor.dividendsPerShareAccuracyFactor (#188) should be constant
DividendDistributor.routerAddress (#176) should be constant
crazycat.DEAD (#398) should be constant
crazycat.RewardToken (#401) should be constant
crazycat.ZERO (#399) should be constant
crazycat._totalSupply (#403) should be constant
crazycat.routerAddress (#400) 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) (#353-355)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#360-362)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#381-385)
getCirculatingSupply() should be declared external:
- crazycat.getCirculatingSupply() (#491-493)
claim() should be declared external:
- crazycat.claim() (#509-512)
tradingStatus(bool) should be declared external:
- crazycat.tradingStatus(bool) (#657-659)
Use the external attribute for functions never called from the contract.
Additional information: link
Unable to find website, listings and other project-related information
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Unable to find Telegram and Twitter accounts