Reentrancy in Whalegrow._transferFrom(address,address,uint256) (#490-526):
External calls:
- swapBack() (#505)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#571-577)
- distributor.deposit{value: amountBNBReflection}() (#587)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#588)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#594-601)
External calls sending eth:
- swapBack() (#505)
- distributor.deposit{value: amountBNBReflection}() (#587)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#588)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#594-601)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#508)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#511)
- amountReceived = takeFee(sender,amount) (#510)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#542)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.distributeDividend(address) (#321-332) ignores return value by Squidgrowburn.transfer(shareholder,amount) (#327)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Whalegrow.swapBack() (#560-604) sends eth to arbitrary user
Dangerous calls:
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#588)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Too many vulnerabilities (Unchecked transfer, Reentrancy vulnerability, etc.). High risk of a scam. DYOR & manual audit are advised.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Whalegrow.swapBack().tmpSuccess (#588) is written in both
(tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#588)
tmpSuccess = false (#591)
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.
Contract ownership is not renounced (belongs to a wallet)
DividendDistributor.setDistributionCriteria(uint256,uint256) (#249-252) should emit an event for:
- minPeriod = _minPeriod (#250)
- minDistribution = _minDistribution (#251)
Whalegrow.setFees(uint256,uint256,uint256,uint256) (#620-627) should emit an event for:
- liquidityFee = _liquidityFee (#621)
- reflectionFee = _reflectionFee (#622)
- marketingFee = _marketingFee (#623)
- totalFee = _liquidityFee.add(_reflectionFee).add(_marketingFee) (#624)
- feeDenominator = _feeDenominator (#625)
Whalegrow.setTargetLiquidity(uint256,uint256) (#645-648) should emit an event for:
- targetLiquidity = _target (#646)
- targetLiquidityDenominator = _denominator (#647)
Emit an event for critical parameter changes.
Additional information: link
Auth.transferOwnership(address).adr (#130) lacks a zero-check on :
- owner = adr (#131)
Whalegrow.setFeeReceivers(address,address)._autoLiquidityReceiver (#629) lacks a zero-check on :
- autoLiquidityReceiver = _autoLiquidityReceiver (#630)
Whalegrow.setFeeReceivers(address,address)._marketingFeeReceiver (#629) lacks a zero-check on :
- marketingFeeReceiver = _marketingFeeReceiver (#631)
Check that the address is not zero.
Additional information: link
DividendDistributor.distributeDividend(address) (#321-332) has external calls inside a loop: Squidgrowburn.transfer(shareholder,amount) (#327)
Whalegrow.airdrop(address,address[],uint256[]) (#673-696) has external calls inside a loop: distributor.setShare(addresses[i_scope_0],_balances[addresses[i_scope_0]]) (#688)
Favor pull over push strategy for external calls.
Additional information: link
Whalegrow.constructor() (#419-451) performs a multiplication on the result of a division:
-deployerSupply = _totalSupply.div(100).mul(100) (#444)
Consider ordering multiplication before division.
Additional information: link
Reentrancy in DividendDistributor.distributeDividend(address) (#321-332):
External calls:
- Squidgrowburn.transfer(shareholder,amount) (#327)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised.add(amount) (#329)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#330)
Reentrancy in DividendDistributor.process(uint256) (#290-314):
External calls:
- distributeDividend(shareholders[currentIndex]) (#306)
- Squidgrowburn.transfer(shareholder,amount) (#327)
State variables written after the call(s):
- currentIndex ++ (#311)
Reentrancy in DividendDistributor.setShare(address,uint256) (#254-268):
External calls:
- distributeDividend(shareholder) (#256)
- Squidgrowburn.transfer(shareholder,amount) (#327)
State variables written after the call(s):
- shares[shareholder].amount = amount (#266)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#267)
Apply the check-effects-interactions pattern.
Additional information: link
Whalegrow.swapBack() (#560-604) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#594-601)
Ensure that all the return values of the function calls are used.
Additional information: link
Reentrancy in Whalegrow.constructor() (#419-451):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#421)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = uint256(- 1) (#422)
- _balances[msg.sender] = deployerSupply (#448)
- autoLiquidityReceiver = devDeployReceiver (#436)
- devDeployReceiver = 0x0405ee156D40e0f83356a1D7CB5Ca0E149481956 (#439)
- distributor = new DividendDistributor(address(router)) (#424)
- isDividendExempt[pair] = true (#431)
- isDividendExempt[address(this)] = true (#432)
- isDividendExempt[DEAD] = true (#433)
- isFeeExempt[msg.sender] = true (#427)
- isFeeExempt[marketingFeeReceiver] = true (#428)
- marketingFeeReceiver = 0x0405ee156D40e0f83356a1D7CB5Ca0E149481956 (#440)
Reentrancy in DividendDistributor.deposit() (#270-288):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp) (#277-282)
State variables written after the call(s):
- dividendsPerShare = dividendsPerShare.add(dividendsPerShareAccuracyFactor.mul(amount).div(totalShares)) (#287)
- totalDividends = totalDividends.add(amount) (#286)
Reentrancy in DividendDistributor.distributeDividend(address) (#321-332):
External calls:
- Squidgrowburn.transfer(shareholder,amount) (#327)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (#328)
Reentrancy in DividendDistributor.setShare(address,uint256) (#254-268):
External calls:
- distributeDividend(shareholder) (#256)
- Squidgrowburn.transfer(shareholder,amount) (#327)
State variables written after the call(s):
- addShareholder(shareholder) (#260)
- shareholderIndexes[shareholder] = shareholders.length (#354)
- removeShareholder(shareholder) (#262)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#360)
- addShareholder(shareholder) (#260)
- shareholders.push(shareholder) (#355)
- removeShareholder(shareholder) (#262)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#359)
- shareholders.pop() (#361)
- totalShares = totalShares.sub(shares[shareholder].amount).add(amount) (#265)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Whalegrow._transferFrom(address,address,uint256) (#490-526):
External calls:
- swapBack() (#505)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#571-577)
- distributor.deposit{value: amountBNBReflection}() (#587)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#588)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#594-601)
- distributor.setShare(sender,_balances[sender]) (#515)
- distributor.setShare(recipient,_balances[recipient]) (#519)
- distributor.process(distributorGas) (#522)
External calls sending eth:
- swapBack() (#505)
- distributor.deposit{value: amountBNBReflection}() (#587)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#588)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#594-601)
Event emitted after the call(s):
- Transfer(sender,recipient,amountReceived) (#524)
Reentrancy in Whalegrow._transferFrom(address,address,uint256) (#490-526):
External calls:
- swapBack() (#505)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#571-577)
- distributor.deposit{value: amountBNBReflection}() (#587)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#588)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#594-601)
External calls sending eth:
- swapBack() (#505)
- distributor.deposit{value: amountBNBReflection}() (#587)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#588)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#594-601)
Event emitted after the call(s):
- Transfer(sender,address(this),feeAmount) (#543)
- amountReceived = takeFee(sender,amount) (#510)
Reentrancy in Whalegrow.constructor() (#419-451):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WBNB,address(this)) (#421)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,deployerSupply) (#449)
Reentrancy in Whalegrow.swapBack() (#560-604):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#571-577)
- distributor.deposit{value: amountBNBReflection}() (#587)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#588)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#594-601)
External calls sending eth:
- distributor.deposit{value: amountBNBReflection}() (#587)
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#588)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#594-601)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#602)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.shouldDistribute(address) (#316-319) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#317-318)
Avoid relying on block.timestamp.
Additional information: link
DividendDistributor.process(uint256) (#290-314) has costly operations inside a loop:
- currentIndex = 0 (#302)
DividendDistributor.distributeDividend(address) (#321-332) has costly operations inside a loop:
- totalDistributed = totalDistributed.add(amount) (#326)
DividendDistributor.process(uint256) (#290-314) has costly operations inside a loop:
- currentIndex ++ (#311)
Use a local variable to hold the loop computation result.
Additional information: link
Whalegrow.setDeployReceivers(address,address,address) (#634-638) is never used and should be removed
Remove unused functions.
Additional information: link
Whalegrow._maxWalletToken (#381) is set pre-construction with a non-constant function or state variable:
- (_totalSupply * 3 / 2) / 100
Whalegrow.swapThreshold (#415) is set pre-construction with a non-constant function or state variable:
- _totalSupply * 1 / 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
Pragma version^0.7.4 (#13) 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 Whalegrow.swapBack() (#560-604):
- (tmpSuccess) = address(marketingFeeReceiver).call{gas: 30000,value: amountBNBMarketing}() (#588)
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() (#145) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minPeriod (#249) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minDistribution (#249) is not in mixedCase
Variable DividendDistributor._token (#201) is not in mixedCase
Variable DividendDistributor.Squidgrowburn (#209) is not in mixedCase
Variable DividendDistributor.WBNB (#210) is not in mixedCase
Parameter Whalegrow.setFees(uint256,uint256,uint256,uint256)._liquidityFee (#620) is not in mixedCase
Parameter Whalegrow.setFees(uint256,uint256,uint256,uint256)._reflectionFee (#620) is not in mixedCase
Parameter Whalegrow.setFees(uint256,uint256,uint256,uint256)._marketingFee (#620) is not in mixedCase
Parameter Whalegrow.setFees(uint256,uint256,uint256,uint256)._feeDenominator (#620) is not in mixedCase
Parameter Whalegrow.setFeeReceivers(address,address)._autoLiquidityReceiver (#629) is not in mixedCase
Parameter Whalegrow.setFeeReceivers(address,address)._marketingFeeReceiver (#629) is not in mixedCase
Parameter Whalegrow.setDeployReceivers(address,address,address)._devDeployReceiver (#634) is not in mixedCase
Parameter Whalegrow.setDeployReceivers(address,address,address)._teamWalletOneReceiver (#634) is not in mixedCase
Parameter Whalegrow.setDeployReceivers(address,address,address)._teamWalletTwoReceiver (#634) is not in mixedCase
Parameter Whalegrow.setSwapBackSettings(bool,uint256)._enabled (#640) is not in mixedCase
Parameter Whalegrow.setSwapBackSettings(bool,uint256)._amount (#640) is not in mixedCase
Parameter Whalegrow.setTargetLiquidity(uint256,uint256)._target (#645) is not in mixedCase
Parameter Whalegrow.setTargetLiquidity(uint256,uint256)._denominator (#645) is not in mixedCase
Parameter Whalegrow.setDistributionCriteria(uint256,uint256)._minPeriod (#650) is not in mixedCase
Parameter Whalegrow.setDistributionCriteria(uint256,uint256)._minDistribution (#650) is not in mixedCase
Variable Whalegrow.Squidgrowburn (#368) is not in mixedCase
Variable Whalegrow.WBNB (#369) is not in mixedCase
Variable Whalegrow.DEAD (#370) is not in mixedCase
Variable Whalegrow.ZERO (#371) is not in mixedCase
Constant Whalegrow._name (#373) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Whalegrow._symbol (#374) is not in UPPER_CASE_WITH_UNDERSCORES
Constant Whalegrow._decimals (#375) is not in UPPER_CASE_WITH_UNDERSCORES
Variable Whalegrow._totalSupply (#378) is not in mixedCase
Variable Whalegrow._maxWalletToken (#381) is not in mixedCase
Variable Whalegrow._balances (#383) is not in mixedCase
Variable Whalegrow._allowances (#384) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#150) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#151)
Variable Whalegrow.setDeployReceivers(address,address,address)._teamWalletOneReceiver (#634) is too similar to Whalegrow.setDeployReceivers(address,address,address)._teamWalletTwoReceiver (#634)
Variable Whalegrow.teamWalletOneReceiver (#400) is too similar to Whalegrow.teamWalletTwoReceiver (#401)
Prevent variables from having similar names.
Additional information: link
Whalegrow.slitherConstructorVariables() (#365-701) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#370)
Whalegrow.slitherConstructorVariables() (#365-701) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#371)
Whalegrow.slitherConstructorVariables() (#365-701) uses literals with too many digits:
- distributorGas = 500000 (#412)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
Whalegrow.Squidgrowburn (#368) is never used in Whalegrow (#365-701)
Whalegrow.isTxLimitExempt (#387) is never used in Whalegrow (#365-701)
Whalegrow.isTimelockExempt (#388) is never used in Whalegrow (#365-701)
Remove unused state variables.
Additional information: link
DividendDistributor.WBNB (#210) should be constant
DividendDistributor.dividendsPerShareAccuracyFactor (#223) should be constant
Whalegrow.DEAD (#370) should be constant
Whalegrow.Squidgrowburn (#368) should be constant
Whalegrow.WBNB (#369) should be constant
Whalegrow.ZERO (#371) should be constant
Whalegrow._totalSupply (#378) should be constant
Whalegrow.launchedAt (#409) 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) (#102-104)
unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#109-111)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#130-134)
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