Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Kusozu.swapBack() (#567-613) sends eth to arbitrary user
Dangerous calls:
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#596)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#597)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in Kusozu._transferFrom(address,address,uint256) (#458-506):
External calls:
- swapBack() (#485)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#578-584)
- distributor.deposit{value: amountBNBReflection}() (#595)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#596)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#597)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#603-610)
External calls sending eth:
- swapBack() (#485)
- distributor.deposit{value: amountBNBReflection}() (#595)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#596)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#597)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#603-610)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#488)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#491)
- amountReceived = takeFee(sender,amount,(recipient == pair)) (#490)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#529)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.distributeDividend(address) (#283-294) ignores return value by RWRD.transfer(shareholder,amount) (#289)
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.
Kusozu.swapBack().tmpSuccess (#596) is written in both
(tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#596)
(tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#597)
Kusozu.swapBack().tmpSuccess (#596) is written in both
(tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#597)
tmpSuccess = false (#600)
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.
Reentrancy in DividendDistributor.distributeDividend(address) (#283-294):
External calls:
- RWRD.transfer(shareholder,amount) (#289)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised.add(amount) (#291)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#292)
Reentrancy in DividendDistributor.process(uint256) (#252-276):
External calls:
- distributeDividend(shareholders[currentIndex]) (#268)
- RWRD.transfer(shareholder,amount) (#289)
State variables written after the call(s):
- currentIndex ++ (#273)
Reentrancy in DividendDistributor.setShare(address,uint256) (#216-230):
External calls:
- distributeDividend(shareholder) (#218)
- RWRD.transfer(shareholder,amount) (#289)
State variables written after the call(s):
- shares[shareholder].amount = amount (#228)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#229)
Apply the check-effects-interactions pattern.
Additional information: link
Kusozu.manage_blacklist(address[],bool).i (#631) 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
Kusozu.swapBack() (#567-613) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#603-610)
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 = _minPeriod (#212)
- minDistribution = _minDistribution (#213)
Kusozu.setMaxTxPercent_base1000(uint256) (#449-451) should emit an event for:
- _maxTxAmount = (_totalSupply * maxTXPercentage_base1000) / 2000 (#450)
Kusozu.setTxLimit(uint256) (#453-455) should emit an event for:
- _maxTxAmount = amount (#454)
Kusozu.set_sell_multiplier(uint256) (#552-554) should emit an event for:
- sellMultiplier = Multiplier (#553)
Kusozu.setFees(uint256,uint256,uint256,uint256,uint256) (#649-657) should emit an event for:
- liquidityFee = _liquidityFee (#650)
- reflectionFee = _reflectionFee (#651)
- marketingFee = _marketingFee (#652)
- devFee = _devFee (#653)
- totalFee = _liquidityFee.add(_reflectionFee).add(_marketingFee).add(_devFee) (#654)
- feeDenominator = _feeDenominator (#655)
Kusozu.setSwapBackSettings(bool,uint256) (#665-668) should emit an event for:
- swapThreshold = _amount (#667)
Kusozu.setTargetLiquidity(uint256,uint256) (#670-673) should emit an event for:
- targetLiquidity = _target (#671)
- targetLiquidityDenominator = _denominator (#672)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#93) lacks a zero-check on :
- owner = adr (#94)
Kusozu.setFeeReceivers(address,address,address)._autoLiquidityReceiver (#659) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (#660)
Kusozu.setFeeReceivers(address,address,address)._marketingFeeReceiver (#659) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#661)
Kusozu.setFeeReceivers(address,address,address)._devFeeReceiver (#659) lacks a zero-check on :
- devFeeReceiver = _devFeeReceiver (#662)
Check that the address is not zero.
Additional information: link
DividendDistributor.distributeDividend(address) (#283-294) has external calls inside a loop: RWRD.transfer(shareholder,amount) (#289)
Kusozu.multiTransfer(address,address[],uint256[]) (#699-723) has external calls inside a loop: distributor.setShare(addresses[i_scope_0],_balances[addresses[i_scope_0]]) (#715)
Kusozu.multiTransfer_fixed(address,address[],uint256) (#725-744) has external calls inside a loop: distributor.setShare(addresses[i],_balances[addresses[i]]) (#736)
Favor pull over push strategy for external calls.
Additional information: link
Reentrancy in Kusozu.constructor() (#388-412):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#390)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = uint256(- 1) (#391)
- _balances[msg.sender] = _totalSupply (#410)
- autoLiquidityReceiver = msg.sender (#406)
- devFeeReceiver = msg.sender (#408)
- distributor = new DividendDistributor(address(router)) (#393)
- isDividendExempt[pair] = true (#402)
- isDividendExempt[address(this)] = true (#403)
- isDividendExempt[DEAD] = true (#404)
- isFeeExempt[msg.sender] = true (#395)
- isTimelockExempt[msg.sender] = true (#398)
- isTimelockExempt[DEAD] = true (#399)
- isTimelockExempt[address(this)] = true (#400)
- isTxLimitExempt[msg.sender] = true (#396)
- marketingFeeReceiver = msg.sender (#407)
Reentrancy in DividendDistributor.deposit() (#232-250):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp) (#239-244)
State variables written after the call(s):
- dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares)) (#249)
- totalDividends = totalDividends.add(amount) (#248)
Reentrancy in DividendDistributor.distributeDividend(address) (#283-294):
External calls:
- RWRD.transfer(shareholder,amount) (#289)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (#290)
Reentrancy in DividendDistributor.setShare(address,uint256) (#216-230):
External calls:
- distributeDividend(shareholder) (#218)
- RWRD.transfer(shareholder,amount) (#289)
State variables written after the call(s):
- addShareholder(shareholder) (#222)
- shareholderIndexes[shareholder] = shareholders.length (#316)
- removeShareholder(shareholder) (#224)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#322)
- addShareholder(shareholder) (#222)
- shareholders.push(shareholder) (#317)
- removeShareholder(shareholder) (#224)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#321)
- shareholders.pop() (#323)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (#227)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Kusozu._transferFrom(address,address,uint256) (#458-506):
External calls:
- swapBack() (#485)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#578-584)
- distributor.deposit{value: amountBNBReflection}() (#595)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#596)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#597)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#603-610)
- distributor.setShare(sender,_balances[sender]) (#495)
- distributor.setShare(recipient,_balances[recipient]) (#499)
- distributor.process(distributorGas) (#502)
External calls sending eth:
- swapBack() (#485)
- distributor.deposit{value: amountBNBReflection}() (#595)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#596)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#597)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#603-610)
Event emitted after the call(s):
- Transfer(sender,recipient,amountReceived) (#504)
Reentrancy in Kusozu._transferFrom(address,address,uint256) (#458-506):
External calls:
- swapBack() (#485)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#578-584)
- distributor.deposit{value: amountBNBReflection}() (#595)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#596)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#597)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#603-610)
External calls sending eth:
- swapBack() (#485)
- distributor.deposit{value: amountBNBReflection}() (#595)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#596)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#597)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#603-610)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#530)
- amountReceived = takeFee(sender,amount,(recipient == pair)) (#490)
Reentrancy in Kusozu.constructor() (#388-412):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#390)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,_totalSupply) (#411)
Reentrancy in Kusozu.swapBack() (#567-613):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#578-584)
- distributor.deposit{value: amountBNBReflection}() (#595)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#596)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#597)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#603-610)
External calls sending eth:
- distributor.deposit{value: amountBNBReflection}() (#595)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#596)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#597)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#603-610)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#611)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.shouldDistribute(address) (#278-281) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#279-280)
Kusozu._transferFrom(address,address,uint256) (#458-506) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(cooldownTimer[recipient] < block.timestamp,Please wait for 1min between two buys) (#478)
Avoid relying on block.timestamp.
Additional information: link
DividendDistributor.process(uint256) (#252-276) has costly operations inside a loop:
- currentIndex = 0 (#264)
DividendDistributor.distributeDividend(address) (#283-294) has costly operations inside a loop:
- totalDistributed = totalDistributed.add(amount) (#288)
DividendDistributor.process(uint256) (#252-276) has costly operations inside a loop:
- currentIndex ++ (#273)
Use a local variable to hold the loop computation result.
Additional information: link
Kusozu._maxTxAmount (#340) is set pre-construction with a non-constant function or state variable:
- _totalSupply
Kusozu._maxWalletToken (#341) is set pre-construction with a non-constant function or state variable:
- _totalSupply
Kusozu.totalFee (#359) is set pre-construction with a non-constant function or state variable:
- marketingFee + reflectionFee + liquidityFee + devFee
Kusozu.swapThreshold (#384) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 20 / 10000
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
Low level call in Kusozu.swapBack() (#567-613):
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#596)
- (tmpSuccess,None) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#597)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Function IDEXRouter.WETH() (#108) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minPeriod (#211) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minDistribution (#211) is not in mixedCase
Variable DividendDistributor._token (#164) is not in mixedCase
Variable DividendDistributor.RWRD (#172) is not in mixedCase
Variable DividendDistributor.WBNB (#173) is not in mixedCase
Function Kusozu.setMaxWalletPercent_base1000(uint256) (#446-448) is not in mixedCase
Parameter Kusozu.setMaxWalletPercent_base1000(uint256).maxWallPercent_base1000 (#446) is not in mixedCase
Function Kusozu.setMaxTxPercent_base1000(uint256) (#449-451) is not in mixedCase
Parameter Kusozu.setMaxTxPercent_base1000(uint256).maxTXPercentage_base1000 (#449) is not in mixedCase
Function Kusozu.clearStuckBalance_sender(uint256) (#547-550) is not in mixedCase
Function Kusozu.set_sell_multiplier(uint256) (#552-554) is not in mixedCase
Parameter Kusozu.set_sell_multiplier(uint256).Multiplier (#552) is not in mixedCase
Parameter Kusozu.tradingStatus(bool)._status (#557) is not in mixedCase
Parameter Kusozu.cooldownEnabled(bool,uint8)._status (#562) is not in mixedCase
Parameter Kusozu.cooldownEnabled(bool,uint8)._interval (#562) is not in mixedCase
Function Kusozu.enable_blacklist(bool) (#626-628) is not in mixedCase
Parameter Kusozu.enable_blacklist(bool)._status (#626) is not in mixedCase
Function Kusozu.manage_blacklist(address[],bool) (#630-634) is not in mixedCase
Parameter Kusozu.setFees(uint256,uint256,uint256,uint256,uint256)._liquidityFee (#649) is not in mixedCase
Parameter Kusozu.setFees(uint256,uint256,uint256,uint256,uint256)._reflectionFee (#649) is not in mixedCase
Parameter Kusozu.setFees(uint256,uint256,uint256,uint256,uint256)._marketingFee (#649) is not in mixedCase
Parameter Kusozu.setFees(uint256,uint256,uint256,uint256,uint256)._devFee (#649) is not in mixedCase
Parameter Kusozu.setFees(uint256,uint256,uint256,uint256,uint256)._feeDenominator (#649) is not in mixedCase
Parameter Kusozu.setFeeReceivers(address,address,address)._autoLiquidityReceiver (#659) is not in mixedCase
Parameter Kusozu.setFeeReceivers(address,address,address)._marketingFeeReceiver (#659) is not in mixedCase
Parameter Kusozu.setFeeReceivers(address,address,address)._devFeeReceiver (#659) is not in mixedCase
Parameter Kusozu.setSwapBackSettings(bool,uint256)._enabled (#665) is not in mixedCase
Parameter Kusozu.setSwapBackSettings(bool,uint256)._amount (#665) is not in mixedCase
Parameter Kusozu.setTargetLiquidity(uint256,uint256)._target (#670) is not in mixedCase
Parameter Kusozu.setTargetLiquidity(uint256,uint256)._denominator (#670) is not in mixedCase
Parameter Kusozu.setDistributionCriteria(uint256,uint256)._minPeriod (#675) is not in mixedCase
Parameter Kusozu.setDistributionCriteria(uint256,uint256)._minDistribution (#675) is not in mixedCase
Function Kusozu.multiTransfer_fixed(address,address[],uint256) (#725-744) is not in mixedCase
Variable Kusozu.WBNB (#330) is not in mixedCase
Variable Kusozu.DEAD (#331) is not in mixedCase
Variable Kusozu.ZERO (#332) is not in mixedCase
Constant Kusozu._name (#334) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Kusozu._symbol (#335) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Kusozu._decimals (#336) is not in UPPER_CASE_WITH_UNDERSCORES
Variable Kusozu._totalSupply (#338) is not in mixedCase
Variable Kusozu._maxTxAmount (#340) is not in mixedCase
Variable Kusozu._maxWalletToken (#341) is not in mixedCase
Variable Kusozu._balances (#343) is not in mixedCase
Variable Kusozu._allowances (#344) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#113) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#114)
Prevent variables from having similar names.
Additional information: link
Kusozu.slitherConstructorVariables() (#327-749) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#331)
Kusozu.slitherConstructorVariables() (#327-749) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#332)
Kusozu.slitherConstructorVariables() (#327-749) uses literals with too many digits:
- distributorGas = 500000 (#377)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
DividendDistributor.WBNB (#173) should be constant
DividendDistributor.dividendsPerShareAccuracyFactor (#186) should be constant
Kusozu.DEAD (#331) should be constant
Kusozu.WBNB (#330) should be constant
Kusozu.ZERO (#332) should be constant
Kusozu._totalSupply (#338) 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) (#77-79)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#81-83)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#93-97)
tradingStatus(bool) should be declared external:
- Kusozu.tradingStatus(bool) (#557-559)
cooldownEnabled(bool,uint8) should be declared external:
- Kusozu.cooldownEnabled(bool,uint8) (#562-565)
enable_blacklist(bool) should be declared external:
- Kusozu.enable_blacklist(bool) (#626-628)
manage_blacklist(address[],bool) should be declared external:
- Kusozu.manage_blacklist(address[],bool) (#630-634)
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