Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Squidsun.swapBack() (#676-718) sends eth to arbitrary user
Dangerous calls:
- (success) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#704)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in Squidsun._transferFrom(address,address,uint256) (#605-631):
External calls:
- swapBack() (#614)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#687-693)
- distributor.deposit{value: amountBNBReflection}() (#703)
- (success) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#704)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#708-715)
- triggerAutoBuyback() (#615)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (#752-757)
External calls sending eth:
- swapBack() (#614)
- distributor.deposit{value: amountBNBReflection}() (#703)
- (success) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#704)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#708-715)
- triggerAutoBuyback() (#615)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (#752-757)
State variables written after the call(s):
- _balances[sender] = _balances[sender].sub(amount,Insufficient Balance) (#619)
- _balances[recipient] = _balances[recipient].add(amountReceived) (#622)
- amountReceived = takeFee(sender,recipient,amount) (#621)
- _balances[address(this)] = _balances[address(this)].add(feeAmount) (#663)
- triggerAutoBuyback() (#615)
- inSwap = true (#550)
- inSwap = false (#550)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.distributeDividend(address) (#444-455) ignores return value by FLOKI.transfer(shareholder,amount) (#450)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
Combination 1: Reentrancy vulnerabilities + Functions that send Ether to arbitraty destination. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
Combination 2: Unchecked transfer + Functions that send Ether to arbitraty destination. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
Combination 3: Reentrancy vulnerabilities + Unchecked transfer vulnerability. Usual for scams. May be justified by some complex mechanics (e.g. rebase, reflections). DYOR & manual audit are advised.
solc-0.7.4 is not recommended for deployment
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
Reentrancy in Squidsun.triggerManualBuyback(uint256,bool) (#728-734):
External calls:
- buyTokens(amount,DEAD) (#729)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (#752-757)
State variables written after the call(s):
- buybackMultiplierTriggeredAt = block.timestamp (#731)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Squidsun.triggerManualBuyback(uint256,bool) (#728-734):
External calls:
- buyTokens(amount,DEAD) (#729)
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: amount}(0,path,to,block.timestamp) (#752-757)
Event emitted after the call(s):
- BuybackMultiplierActive(buybackMultiplierLength) (#732)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.shouldDistribute(address) (#439-442) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#440-441)
Avoid relying on block.timestamp.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#65-86) uses assembly
- INLINE ASM (#78-81)
Do not use evm assembly.
Additional information: link
DividendDistributor.process(uint256) (#413-437) has costly operations inside a loop:
- currentIndex ++ (#434)
Use a local variable to hold the loop computation result.
Additional information: link
Context._msgData() (#94-97) is never used and should be removed
Remove unused functions.
Additional information: link
Reentrancy in DividendDistributor.setShare(address,uint256) (#376-390):
External calls:
- distributeDividend(shareholder) (#378)
- FLOKI.transfer(shareholder,amount) (#450)
State variables written after the call(s):
- shares[shareholder].amount = amount (#388)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#389)
Apply the check-effects-interactions pattern.
Additional information: link
Squidsun.swapBack() (#676-718) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,autoLiquidityReceiver,block.timestamp) (#708-715)
Ensure that all the return values of the function calls are used.
Additional information: link
Squidsun.setTargetLiquidity(uint256,uint256) (#837-840) should emit an event for:
- targetLiquidity = _target (#838)
- targetLiquidityDenominator = _denominator (#839)
Emit an event for critical parameter changes.
Additional information: link
Squidsun.setFeeReceivers(address,address)._devFeeReceiver (#827) lacks a zero-check on :
- devFeeReceiver = _devFeeReceiver (#829)
Check that the address is not zero.
Additional information: link
Squidsun.swapThreshold (#548) is set pre-construction with a non-constant function or state variable:
- _totalSupply / 300
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 Squidsun.swapBack() (#676-718):
- (success) = address(devFeeReceiver).call{gas: 30000,value: amountBNBDev}() (#704)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Variable Squidsun._sellMultiplier (#519) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#95)" inContext (#89-98)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#272) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#273)
Prevent variables from having similar names.
Additional information: link
Squidsun.slitherConstructorVariables() (#489-866) uses literals with too many digits:
- distributorGas = 500000 (#545)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
Squidsun.Ada (#493) is never used in Squidsun (#489-866)
Remove unused state variables.
Additional information: link
Squidsun._totalSupply (#502) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
transferOwnership(address) should be declared external:
- Ownable.transferOwnership(address) (#254-258)
Use the external attribute for functions never called from the contract.
Additional information: link
Number of Binance Smart Chain (BSC) token holders is less than 100. Token is either dead or inactive. Ignore for presale.
Average PancakeSwap trading volume, liqudity, number of swaps are extremely low. Token seems to be dead.
Token is deployed only at one blockchain
Token has only one trading pair
Unable to find PancakeSwap trading pair to compute liquidity.
Unable to find PancakeSwap trading pair to compute volume.
Unable to find PancakeSwap trading pair to compute number of swaps.
Unable to find website, listings and other project-related information
Young tokens have high risks of price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Unable to find Telegram and Twitter accounts