Stakeable Finance is a staking smart contract built on Binance Smart Chain. It was deployed with one single intention: to create a staking mechanism that offers yields in DeFi.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Reentrancy in Stakeable._transfer(address,address,uint256) (#587-610):
External calls:
- swapAndLiquify(contractTokenBalance) (#605)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#635-642)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#625-631)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#605)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#635-642)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#609)
- _balances[address(this)] = _balances[address(this)].add(tLiquidity) (#564)
- _balances[sender] = _balances[sender].sub(tAmount) (#651)
- _balances[recipient] = _balances[recipient].add(tTransferAmount) (#652)
Apply the check-effects-interactions pattern.
Additional information: link
Contract ownership is not renounced (belongs to a wallet)
Redundant expression "this (#70)" inContext (#65-73)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Stakeable.addLiquidity(uint256,uint256) (#633-643) ignores return value by uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#635-642)
Ensure that all the return values of the function calls are used.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#100-115) uses assembly
- INLINE ASM (#107-110)
Address.isContract(address) (#76-81) uses assembly
- INLINE ASM (#79)
Do not use evm assembly.
Additional information: link
Stakeable.constructor() (#367-379) performs a multiplication on the result of a division:
-_balances[address(0)] = _supply.div(10).mul(9) (#369)
Stakeable.constructor() (#367-379) performs a multiplication on the result of a division:
-Transfer(address(0),address(0),_supply.div(10).mul(9)) (#378)
Consider ordering multiplication before division.
Additional information: link
Variable IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#202) is too similar to IUniswapV2Router01.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#203)
Prevent variables from having similar names.
Additional information: link
Stakeable._excluded (#338) is never used in Stakeable (#328-657)
Remove unused state variables.
Additional information: link
Stakeable._approve(address,address,uint256).owner (#580) shadows:
- Ownable.owner() (#126-128) (function)
Stakeable.allowance(address,address).owner (#511) shadows:
- Ownable.owner() (#126-128) (function)
Rename the local variables that shadow another component.
Additional information: link
Stakeable.setMaxTxPercent(uint256) (#550-552) should emit an event for:
- _maxTxAmount = _supply.mul(maxTxPercent).div(10 ** 2) (#551)
Stakeable.setLiquidityFeePercent(uint256) (#547-549) should emit an event for:
- _liquidityFee = liquidityFee (#548)
Emit an event for critical parameter changes.
Additional information: link
Reentrancy in Stakeable.swapAndLiquify(uint256) (#611-619):
External calls:
- swapTokensForEth(half) (#615)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#625-631)
- addLiquidity(otherHalf,newBalance) (#617)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#635-642)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#617)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#635-642)
State variables written after the call(s):
- addLiquidity(otherHalf,newBalance) (#617)
- _allowances[owner][spender] = amount (#584)
Reentrancy in Stakeable.transferFrom(address,address,uint256) (#518-522):
External calls:
- _transfer(sender,recipient,amount) (#519)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#635-642)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#625-631)
External calls sending eth:
- _transfer(sender,recipient,amount) (#519)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#635-642)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#520)
- _allowances[owner][spender] = amount (#584)
Reentrancy in Stakeable._transfer(address,address,uint256) (#587-610):
External calls:
- swapAndLiquify(contractTokenBalance) (#605)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#635-642)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#625-631)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#605)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#635-642)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#609)
- _liquidityFee = _previousLiquidityFee (#575)
- _liquidityFee = 0 (#572)
- _tokenTransfer(from,to,amount,takeFee) (#609)
- _previousLiquidityFee = _liquidityFee (#571)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in Stakeable._transfer(address,address,uint256) (#587-610):
External calls:
- swapAndLiquify(contractTokenBalance) (#605)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#635-642)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#625-631)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#605)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#635-642)
Event emitted after the call(s):
- Transfer(sender,recipient,tTransferAmount) (#654)
- _tokenTransfer(from,to,amount,takeFee) (#609)
Reentrancy in Stakeable.swapAndLiquify(uint256) (#611-619):
External calls:
- swapTokensForEth(half) (#615)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#625-631)
- addLiquidity(otherHalf,newBalance) (#617)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#635-642)
External calls sending eth:
- addLiquidity(otherHalf,newBalance) (#617)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#635-642)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#585)
- addLiquidity(otherHalf,newBalance) (#617)
- SwapAndLiquify(half,newBalance,otherHalf) (#618)
Reentrancy in Stakeable.transferFrom(address,address,uint256) (#518-522):
External calls:
- _transfer(sender,recipient,amount) (#519)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#635-642)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#625-631)
External calls sending eth:
- _transfer(sender,recipient,amount) (#519)
- uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#635-642)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#585)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#520)
Apply the check-effects-interactions pattern.
Additional information: link
Stakeable._transfer(address,address,uint256) (#587-610) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(_balances[from] >= amount,Transfer amount larger than balance) (#591)
- contractTokenBalance >= _maxTxAmount (#595)
- overMinTokenBalance = contractTokenBalance >= numTokensSellToAddToLiquidity (#597)
- overMinTokenBalance && ! inSwapAndLiquify && from != uniswapV2Pair && swapAndLiquifyEnabled (#599-602)
Stakeable.stake(uint256,uint256) (#471-486) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(balance > _distAmount,Balance must be larger than distribution amount) (#475)
- require(bool,string)(balance >= amount,Stake amount exceeds balance) (#476)
- require(bool,string)(until > (now + 7 * 24 * 60 * 60),Must be staked for at least 7 days) (#477)
Stakeable.unstake() (#487-499) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(yield > 0,No locked amount) (#490)
- require(bool,string)(now > _lockedUntil[sender],Tokens are still locked) (#491)
- _balances[address(0)] >= yield (#493)
Stakeable.balanceOf(address) (#396-400) uses timestamp for comparisons
Dangerous comparisons:
- _balances[account] != 0 || _lockedAmount[account] != 0 (#397)
Stakeable.lockedYield(address) (#421-430) uses timestamp for comparisons
Dangerous comparisons:
- _lockedUntil[account] < until (#425)
Avoid relying on block.timestamp.
Additional information: link
Address.sendValue(address,uint256) (#82-86) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#93-95) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#59-62) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#96-99) is never used and should be removed
Context._msgData() (#69-72) is never used and should be removed
SafeMath.mod(uint256,uint256) (#56-58) is never used and should be removed
Address._functionCallWithValue(address,bytes,uint256,string) (#100-115) is never used and should be removed
Address.isContract(address) (#76-81) is never used and should be removed
Address.functionCall(address,bytes,string) (#90-92) is never used and should be removed
Address.functionCall(address,bytes) (#87-89) is never used and should be removed
Remove unused functions.
Additional information: link
Stakeable._previousLiquidityFee (#348) is set pre-construction with a non-constant function or state variable:
- _liquidityFee
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 Address._functionCallWithValue(address,bytes,uint256,string) (#100-115):
- (success,returndata) = target.call{value: weiValue}(data) (#102)
Low level call in Address.sendValue(address,uint256) (#82-86):
- (success) = recipient.call{value: amount}() (#84)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Variable Stakeable._distAmount (#344) is not in mixedCase
Function IUniswapV2Pair.PERMIT_TYPEHASH() (#166) is not in mixedCase
Variable Stakeable._maxTxAmount (#353) is not in mixedCase
Function IUniswapV2Pair.MINIMUM_LIQUIDITY() (#180) is not in mixedCase
Parameter Stakeable.calculateLiquidityFee(uint256)._amount (#566) is not in mixedCase
Function IUniswapV2Pair.DOMAIN_SEPARATOR() (#165) is not in mixedCase
Parameter Stakeable.setSwapAndLiquifyEnabled(bool)._enabled (#553) is not in mixedCase
Variable Stakeable._bonusApy (#346) is not in mixedCase
Variable Stakeable._dailyApy (#345) is not in mixedCase
Variable Stakeable._liquidityFee (#343) is not in mixedCase
Function IUniswapV2Router01.WETH() (#198) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Stakeable.numTokensSellToAddToLiquidity (#354) should be constant
Stakeable._symbol (#341) should be constant
Stakeable._name (#340) should be constant
Stakeable._decimals (#342) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
lockedUntil(address) should be declared external:
- Stakeable.lockedUntil(address) (#418-420)
distribute(address[],uint256) should be declared external:
- Stakeable.distribute(address[],uint256) (#450-459)
decreaseAllowance(address,uint256) should be declared external:
- Stakeable.decreaseAllowance(address,uint256) (#527-530)
totalSupply() should be declared external:
- Stakeable.totalSupply() (#389-391)
setSupply(uint256) should be declared external:
- Stakeable.setSupply(uint256) (#434-437)
allowance(address,address) should be declared external:
- Stakeable.allowance(address,address) (#511-513)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#133-136)
lockedAmount(address) should be declared external:
- Stakeable.lockedAmount(address) (#415-417)
release(address) should be declared external:
- Stakeable.release(address) (#500-510)
transfer(address,uint256) should be declared external:
- Stakeable.transfer(address,uint256) (#392-395)
whitelist(address) should be declared external:
- Stakeable.whitelist(address) (#531-534)
excludeFromFee(address) should be declared external:
- Stakeable.excludeFromFee(address) (#539-542)
setDailyApy(uint256) should be declared external:
- Stakeable.setDailyApy(uint256) (#442-445)
setDistAmount(uint256) should be declared external:
- Stakeable.setDistAmount(uint256) (#438-441)
approve(address,uint256) should be declared external:
- Stakeable.approve(address,uint256) (#514-517)
setSwapAndLiquifyEnabled(bool) should be declared external:
- Stakeable.setSwapAndLiquifyEnabled(bool) (#553-556)
decimals() should be declared external:
- Stakeable.decimals() (#386-388)
stake(uint256,uint256) should be declared external:
- Stakeable.stake(uint256,uint256) (#471-486)
unwhitelist(address) should be declared external:
- Stakeable.unwhitelist(address) (#535-538)
lockedTotal() should be declared external:
- Stakeable.lockedTotal() (#412-414)
transferFrom(address,address,uint256) should be declared external:
- Stakeable.transferFrom(address,address,uint256) (#518-522)
name() should be declared external:
- Stakeable.name() (#380-382)
unstake() should be declared external:
- Stakeable.unstake() (#487-499)
clearETH() should be declared external:
- Stakeable.clearETH() (#460-464)
symbol() should be declared external:
- Stakeable.symbol() (#383-385)
isExcludedFromFee(address) should be declared external:
- Stakeable.isExcludedFromFee(address) (#577-579)
increaseAllowance(address,uint256) should be declared external:
- Stakeable.increaseAllowance(address,uint256) (#523-526)
setBonusApy(uint256) should be declared external:
- Stakeable.setBonusApy(uint256) (#446-449)
register(address[]) should be declared external:
- Stakeable.register(address[]) (#465-470)
includeInFee(address) should be declared external:
- Stakeable.includeInFee(address) (#543-546)
Use the external attribute for functions never called from the contract.
Additional information: link
Average 30d PancakeSwap liquidity is less than $100. Token is either dead or inactive.
Average 30d PancakeSwap volume is less than $100. Token is either dead or inactive.
Average 30d number of PancakeSwap swaps is less than 1. Token is either dead or inactive.
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
Contract has 10% buy tax and 10% sell tax.
Taxes are low but contract ownership is not renounced. Token has a high risk of becoming a honeypot.
Unable to find token on CoinMarketCap
Additional information: link
Unable to find token on CoinGecko
Additional information: link
Unable to find token contract audit
Unable to find audit link on the website
Token is not listed at Mobula.Finance
Additional information: link
Unable to find Telegram link on the website
Unable to find Twitter link on the website
Unable to find whitepaper link on the website
Token is marked as scam (rug pull, honeypot, phishing, etc.)
Additional information: link
Token has a considerable age, but average PancakeSwap 30d trading volume is low
Token has no active CoinMarketCap listing / rank
Token has no active CoinGecko listing / rank
Last post in Twitter was more than 180 days ago
Unable to find Blog account (Reddit or Medium)
Unable to find Youtube account
Unable to find Discord account