In-depth project description: Superstake is the newest addition to the superpancake ecosystem
Developed with the primary goal of making the SUPERPANCAKE project more sustainable, through a deflationary contract which will pay $SUPERCAKE in reflections and by adding more utilities to the SUPERPANCAKE Ecosystem. The SUPERSTAKE protocol will consists of a top notch staking platform and NFT Marketplace developed with needs of crypto enthusiasts in mind.
SUPERSTAKE.swapBack() (#600-657) sends eth to arbitrary user
Dangerous calls:
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (#636)
- address(StakePoolReceiver).transfer(amountBNBStakePool) (#639)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in SUPERSTAKE._transferFrom(address,address,uint256) (#439-467):
External calls:
- swapBack() (#454)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#611-617)
- distributor.deposit{value: amountBNBReflection}() (#643)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,address(this),block.timestamp) (#647-654)
- amountReceived = takeFee(sender,amount,recipient) (#459-461)
- distributor.setShare(sender,balanceOf[sender]) (#535)
- distributor.setShare(recipient,balanceOf[recipient]) (#539-541)
- distributor.process(distributorGas) (#543)
External calls sending eth:
- swapBack() (#454)
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (#636)
- address(StakePoolReceiver).transfer(amountBNBStakePool) (#639)
- distributor.deposit{value: amountBNBReflection}() (#643)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,address(this),block.timestamp) (#647-654)
State variables written after the call(s):
- balanceOf[recipient] = balanceOf[recipient] + amountReceived (#463)
- amountReceived = takeFee(sender,amount,recipient) (#459-461)
- balanceOf[recipient] = balanceOf[recipient] + amount (#553)
Reentrancy in SUPERSTAKE._transferFrom(address,address,uint256) (#439-467):
External calls:
- swapBack() (#454)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#611-617)
- distributor.deposit{value: amountBNBReflection}() (#643)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,address(this),block.timestamp) (#647-654)
External calls sending eth:
- swapBack() (#454)
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (#636)
- address(StakePoolReceiver).transfer(amountBNBStakePool) (#639)
- distributor.deposit{value: amountBNBReflection}() (#643)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,address(this),block.timestamp) (#647-654)
State variables written after the call(s):
- balanceOf[sender] = balanceOf[sender] - amount (#457)
Apply the check-effects-interactions pattern.
Additional information: link
DividendDistributor.distributeDividend(address) (#219-236) ignores return value by REWARD.transfer(shareholder,amount) (#227)
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.
Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains
Contract ownership is not renounced (belongs to a wallet)
Reentrancy in SUPERSTAKE._transferFrom(address,address,uint256) (#439-467):
External calls:
- swapBack() (#454)
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (#636)
- address(StakePoolReceiver).transfer(amountBNBStakePool) (#639)
External calls sending eth:
- swapBack() (#454)
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (#636)
- address(StakePoolReceiver).transfer(amountBNBStakePool) (#639)
- distributor.deposit{value: amountBNBReflection}() (#643)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,address(this),block.timestamp) (#647-654)
State variables written after the call(s):
- balanceOf[sender] = balanceOf[sender] - amount (#457)
- balanceOf[recipient] = balanceOf[recipient] + amountReceived (#463)
- amountReceived = takeFee(sender,amount,recipient) (#459-461)
- balanceOf[recipient] = balanceOf[recipient] + amount (#553)
- amountReceived = takeFee(sender,amount,recipient) (#459-461)
- totalSupply = totalSupply - burnTokens (#530)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (#554)
- amountReceived = takeFee(sender,amount,recipient) (#459-461)
- Transfer(sender,recipient,amountReceived) (#465)
- Transfer(sender,address(0),burnTokens) (#531)
- amountReceived = takeFee(sender,amount,recipient) (#459-461)
Reentrancy in SUPERSTAKE.swapBack() (#600-657):
External calls:
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (#636)
- address(StakePoolReceiver).transfer(amountBNBStakePool) (#639)
External calls sending eth:
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (#636)
- address(StakePoolReceiver).transfer(amountBNBStakePool) (#639)
- distributor.deposit{value: amountBNBReflection}() (#643)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,address(this),block.timestamp) (#647-654)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#655)
Apply the check-effects-interactions pattern.
Additional information: link
SUPERSTAKE.slitherConstructorVariables() (#290-863) uses literals with too many digits:
- distributorGas = 300000 (#329)
SUPERSTAKE.slitherConstructorVariables() (#290-863) uses literals with too many digits:
- totalSupply = 2000000 * 10 ** decimals (#299)
SUPERSTAKE.setDistributorSettings(uint256) (#823-826) uses literals with too many digits:
- require(bool)(gas < 3000000) (#824)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
DividendDistributor.dividendsPerShareAccuracyFactor (#115) should be constant
SUPERSTAKE.transferMultiplier (#330) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
SuperBurn(uint256) should be declared external:
- SUPERSTAKE.SuperBurn(uint256) (#787-802)
setPair(address,bool) should be declared external:
- SUPERSTAKE.setPair(address,bool) (#659-661)
approve(address,uint256) should be declared external:
- SUPERSTAKE.approve(address,uint256) (#405-413)
getUnpaidEarnings(address) should be declared external:
- SUPERSTAKE.getUnpaidEarnings(address) (#815-821)
transferOwnership(address) should be declared external:
- SUPERSTAKE.transferOwnership(address) (#838-840)
renounceOwnership() should be declared external:
- SUPERSTAKE.renounceOwnership() (#833-836)
Use the external attribute for functions never called from the contract.
Additional information: link
DividendDistributor.distributeDividend(address) (#219-236) has external calls inside a loop: REWARD.transfer(shareholder,amount) (#227)
Favor pull over push strategy for external calls.
Additional information: link
Reentrancy in DividendDistributor.process(uint256) (#187-207):
External calls:
- distributeDividend(shareholders[currentIndex]) (#200)
- REWARD.transfer(shareholder,amount) (#227)
State variables written after the call(s):
- currentIndex ++ (#204)
Reentrancy in DividendDistributor.distributeDividend(address) (#219-236):
External calls:
- REWARD.transfer(shareholder,amount) (#227)
State variables written after the call(s):
- shares[shareholder].totalRealised = shares[shareholder].totalRealised + amount (#229-231)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#232-234)
Reentrancy in DividendDistributor.setShare(address,uint256) (#152-170):
External calls:
- distributeDividend(shareholder) (#158)
- REWARD.transfer(shareholder,amount) (#227)
State variables written after the call(s):
- shares[shareholder].amount = amount (#166)
- shares[shareholder].totalExcluded = getCumulativeDividends(shares[shareholder].amount) (#167-169)
Apply the check-effects-interactions pattern.
Additional information: link
SUPERSTAKE.swapBack() (#600-657) ignores return value by router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,address(this),block.timestamp) (#647-654)
Ensure that all the return values of the function calls are used.
Additional information: link
DividendDistributor.setDistributionCriteria(uint256,uint256) (#144-150) should emit an event for:
- minPeriod = _minPeriod (#148)
- minDistribution = _minDistribution (#149)
SUPERSTAKE.setDistributorSettings(uint256) (#823-826) should emit an event for:
- distributorGas = gas (#825)
SUPERSTAKE.setFees(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256) (#689-727) should emit an event for:
- liquidityFee = _liquidityFee (#701)
- marketingFee = _marketingFee (#702)
- reflectionFee = _reflectionFee (#703)
- stakePoolFee = _stakePoolFee (#704)
- burnFee = _burnFee (#705)
- totalBuyFee = _liquidityFee + _marketingFee + _stakePoolFee + _reflectionFee + _burnFee (#707-712)
- sellLiquidityFee = _sellLiquidityFee (#714)
- sellReflectionFee = _sellReflectionFee (#715)
- sellStakePoolFee = _sellStakePoolFee (#716)
- sellBurnFee = _sellBurnFee (#717)
- sellMarketingFee = _sellMarketingFee (#718)
- totalSellFee = _sellLiquidityFee + _sellReflectionFee + _sellStakePoolFee + _sellBurnFee + _sellMarketingFee (#720-725)
Emit an event for critical parameter changes.
Additional information: link
DividendDistributor.constructor(address,BEP20,address).token (#136) lacks a zero-check on :
- _token = token (#140)
Check that the address is not zero.
Additional information: link
Reentrancy in DividendDistributor.deposit() (#172-185):
External calls:
- router.swapExactETHForTokensSupportingFeeOnTransferTokens{value: msg.value}(0,path,address(this),block.timestamp) (#177-179)
State variables written after the call(s):
- dividendsPerShare = dividendsPerShare + ((dividendsPerShareAccuracyFactor * amount) / totalShares) (#182-184)
- totalDividends = totalDividends + amount (#181)
Reentrancy in DividendDistributor.distributeDividend(address) (#219-236):
External calls:
- REWARD.transfer(shareholder,amount) (#227)
State variables written after the call(s):
- shareholderClaims[shareholder] = block.timestamp (#228)
Reentrancy in DividendDistributor.setShare(address,uint256) (#152-170):
External calls:
- distributeDividend(shareholder) (#158)
- REWARD.transfer(shareholder,amount) (#227)
State variables written after the call(s):
- addShareholder(shareholder) (#161)
- shareholderIndexes[shareholder] = shareholders.length (#271)
- removeShareholder(shareholder) (#163)
- shareholderIndexes[shareholders[shareholders.length - 1]] = shareholderIndexes[shareholder] (#279-281)
- addShareholder(shareholder) (#161)
- shareholders.push(shareholder) (#272)
- removeShareholder(shareholder) (#163)
- shareholders[shareholderIndexes[shareholder]] = shareholders[shareholders.length - 1] (#276-278)
- shareholders.pop() (#282)
- totalShares = (totalShares - shares[shareholder].amount) + amount (#165)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in SUPERSTAKE.swapBack() (#600-657):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#611-617)
- distributor.deposit{value: amountBNBReflection}() (#643)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,address(this),block.timestamp) (#647-654)
External calls sending eth:
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (#636)
- address(StakePoolReceiver).transfer(amountBNBStakePool) (#639)
- distributor.deposit{value: amountBNBReflection}() (#643)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,address(this),block.timestamp) (#647-654)
Event emitted after the call(s):
- AutoLiquify(amountBNBLiquidity,amountToLiquify) (#655)
Reentrancy in SUPERSTAKE._transferFrom(address,address,uint256) (#439-467):
External calls:
- swapBack() (#454)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#611-617)
- distributor.deposit{value: amountBNBReflection}() (#643)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,address(this),block.timestamp) (#647-654)
- amountReceived = takeFee(sender,amount,recipient) (#459-461)
- distributor.setShare(sender,balanceOf[sender]) (#535)
- distributor.setShare(recipient,balanceOf[recipient]) (#539-541)
- distributor.process(distributorGas) (#543)
External calls sending eth:
- swapBack() (#454)
- address(marketingFeeReceiver).transfer(amountBNBMarketing) (#636)
- address(StakePoolReceiver).transfer(amountBNBStakePool) (#639)
- distributor.deposit{value: amountBNBReflection}() (#643)
- router.addLiquidityETH{value: amountBNBLiquidity}(address(this),amountToLiquify,0,0,address(this),block.timestamp) (#647-654)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (#554)
- amountReceived = takeFee(sender,amount,recipient) (#459-461)
- Transfer(sender,recipient,amountReceived) (#465)
- Transfer(sender,address(0),burnTokens) (#531)
- amountReceived = takeFee(sender,amount,recipient) (#459-461)
Apply the check-effects-interactions pattern.
Additional information: link
SUPERSTAKE.clearStuckToken(address,uint256) (#565-586) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp > launchedAt + 43200000,Locked for 1 year) (#573-576)
SUPERSTAKE.SuperBurn(uint256) (#787-802) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(block.timestamp > lastSync + 300,Too soon) (#789)
DividendDistributor.shouldDistribute(address) (#209-217) uses timestamp for comparisons
Dangerous comparisons:
- shareholderClaims[shareholder] + minPeriod < block.timestamp && getUnpaidEarnings(shareholder) > minDistribution (#214-216)
Avoid relying on block.timestamp.
Additional information: link
DividendDistributor.process(uint256) (#187-207) has costly operations inside a loop:
- currentIndex = 0 (#197)
DividendDistributor.distributeDividend(address) (#219-236) has costly operations inside a loop:
- totalDistributed = totalDistributed + amount (#226)
DividendDistributor.process(uint256) (#187-207) has costly operations inside a loop:
- currentIndex ++ (#204)
Use a local variable to hold the loop computation result.
Additional information: link
SUPERSTAKE.WBNB (#338) is set pre-construction with a non-constant function or state variable:
- router.WETH()
SUPERSTAKE.swapThreshold (#331) is set pre-construction with a non-constant function or state variable:
- totalSupply / 5000
SUPERSTAKE.totalSellFee (#321-326) is set pre-construction with a non-constant function or state variable:
- sellLiquidityFee + sellMarketingFee + sellStakePoolFee + sellReflectionFee + sellBurnFee
SUPERSTAKE.totalBuyFee (#313-314) is set pre-construction with a non-constant function or state variable:
- marketingFee + reflectionFee + liquidityFee + burnFee + stakePoolFee
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 version0.8.15 (#8) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
solc-0.8.15 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
Parameter SUPERSTAKE.setDistributionCriteria(uint256,uint256)._minPeriod (#805) is not in mixedCase
Parameter SUPERSTAKE.setFees(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256)._stakePoolFee (#692) is not in mixedCase
Function IDEXRouter.WETH() (#42) is not in mixedCase
Parameter SUPERSTAKE.setFees(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256)._sellReflectionFee (#696) is not in mixedCase
Parameter SUPERSTAKE.setPair(address,bool)._pair (#659) is not in mixedCase
Parameter SUPERSTAKE.setDividendToken(address)._newContract (#828) is not in mixedCase
Event SUPERSTAKEclearToken(address,uint256) (#854) is not in CapWords
Variable SUPERSTAKE.WBNB (#338) is not in mixedCase
Function SUPERSTAKE.manage_FeeExempt(address[],bool) (#663-675) is not in mixedCase
Event SUPERSTAKEWallet_feeExempt(address,bool) (#853) is not in CapWords
Parameter SUPERSTAKE.setFees(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256)._sellBurnFee (#698) is not in mixedCase
Parameter SUPERSTAKE.setFees(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256)._sellStakePoolFee (#697) is not in mixedCase
Parameter SUPERSTAKE.setFeeReceivers(address,address)._stakePoolReceiver (#731) is not in mixedCase
Parameter SUPERSTAKE.setSwapBackSettings(bool,uint256)._enabled (#746) is not in mixedCase
Variable SUPERSTAKE._allowances (#302) is not in mixedCase
Parameter SUPERSTAKE.setFees(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256)._burnFee (#693) is not in mixedCase
Function SUPERSTAKE.update_fees() (#677-687) is not in mixedCase
Parameter SUPERSTAKE.setFees(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256)._sellLiquidityFee (#695) is not in mixedCase
Parameter SUPERSTAKE.setFees(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256)._reflectionFee (#691) is not in mixedCase
Variable DividendDistributor.REWARD (#104) is not in mixedCase
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minDistribution (#146) is not in mixedCase
Variable SUPERSTAKE.StakePoolReceiver (#336) is not in mixedCase
Parameter SUPERSTAKE.setFees(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256)._marketingFee (#694) is not in mixedCase
Parameter SUPERSTAKE.setDistributionCriteria(uint256,uint256)._minDistribution (#806) is not in mixedCase
Constant SUPERSTAKE.feeDenominator (#328) is not in UPPER_CASE_WITH_UNDERSCORES
Parameter DividendDistributor.setDistributionCriteria(uint256,uint256)._minPeriod (#145) is not in mixedCase
Parameter SUPERSTAKE.setFees(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256)._sellMarketingFee (#699) is not in mixedCase
Parameter SUPERSTAKE.setFeeReceivers(address,address)._marketingFeeReceiver (#730) is not in mixedCase
Variable DividendDistributor._token (#94) is not in mixedCase
Parameter SUPERSTAKE.setSwapBackSettings(bool,uint256)._amount (#746) is not in mixedCase
Variable DividendDistributor.WBNB (#95) is not in mixedCase
Function SUPERSTAKE.SuperBurn(uint256) (#787-802) is not in mixedCase
Event SUPERSTAKEconfig_TradingStatus(bool) (#856) is not in CapWords
Parameter SUPERSTAKE.setFees(uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256)._liquidityFee (#690) is not in mixedCase
Event SUPERSTAKESet_Wallets(address,address) (#855) is not in CapWords
Event SUPERSTAKEconfig_SwapSettings(uint256,bool) (#857) is not in CapWords
Follow the Solidity naming convention.
Additional information: link
Average 30d PancakeSwap volume is less than $100. Token is either dead or inactive.
Contract has 1% buy tax and 8% sell tax.
Taxes are low but contract ownership is not renounced. Token has a high risk of becoming a honeypot.
Swap operations require suspiciously high gas. Contract logic is complex and may disguise some form of scam.
Number of Binance Smart Chain (BSC) token holders is low.
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 number of swaps.
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
Young tokens have high risks of price dump / death
Young tokens have high risks of price dump / death
Telegram account link seems to be invalid
Unable to find Discord account