SafeRocket is the next-generation automatic liquidity protocol, static farming token and blockchain lottery on Binance Smart Chain.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Reentrancy in SafeRocket._transfer(address,address,uint256) (#1376-1417):
External calls:
- swapAndLiquify(contractTokenBalance) (#1407)
- IWBNB(_wbnb).deposit{value: amount}() (#1481)
- pancakeRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1470-1477)
- pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1458-1464)
- IBEP20(_wbnb).approve(lottery,lotteryAmount) (#1444)
- ILottery(lottery).contribute(lotteryAmount) (#1445)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#1407)
- IWBNB(_wbnb).deposit{value: amount}() (#1481)
- pancakeRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1470-1477)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#1416)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#1336)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1504)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1513)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1226)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1524)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1505)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1515)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1525)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1228)
- _tokenTransfer(from,to,amount,takeFee) (#1416)
- _rTotal = _rTotal.sub(rFee) (#1291)
- _tokenTransfer(from,to,amount,takeFee) (#1416)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#1338)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#1523)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#1225)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#1514)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#1227)
Apply the check-effects-interactions pattern.
Additional information: link
SafeRocket.swapAndLiquify(uint256).lotteryAmount (#1439) 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
SafeRocket.addLiquidity(uint256,uint256) (#1467-1478) ignores return value by pancakeRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1470-1477)
Ensure that all the return values of the function calls are used.
Additional information: link
SafeRocket._approve(address,address,uint256).owner (#1368) shadows:
- Ownable.owner() (#54-56) (function)
Rename the local variables that shadow another component.
Additional information: link
Reentrancy in SafeRocket.transferFrom(address,address,uint256) (#1158-1162):
External calls:
- _transfer(sender,recipient,amount) (#1159)
- IWBNB(_wbnb).deposit{value: amount}() (#1481)
- pancakeRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1470-1477)
- pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1458-1464)
- IBEP20(_wbnb).approve(lottery,lotteryAmount) (#1444)
- ILottery(lottery).contribute(lotteryAmount) (#1445)
External calls sending eth:
- _transfer(sender,recipient,amount) (#1159)
- IWBNB(_wbnb).deposit{value: amount}() (#1481)
- pancakeRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1470-1477)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#1160)
- _allowances[owner][spender] = amount (#1372)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in SafeRocket.transferFrom(address,address,uint256) (#1158-1162):
External calls:
- _transfer(sender,recipient,amount) (#1159)
- IWBNB(_wbnb).deposit{value: amount}() (#1481)
- pancakeRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1470-1477)
- pancakeRouter.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#1458-1464)
- IBEP20(_wbnb).approve(lottery,lotteryAmount) (#1444)
- ILottery(lottery).contribute(lotteryAmount) (#1445)
External calls sending eth:
- _transfer(sender,recipient,amount) (#1159)
- IWBNB(_wbnb).deposit{value: amount}() (#1481)
- pancakeRouter.addLiquidityETH{value: bnbAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#1470-1477)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#1373)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#1160)
Apply the check-effects-interactions pattern.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#434-455) uses assembly
- INLINE ASM (#447-450)
Do not use evm assembly.
Additional information: link
SafeMath.mod(uint256,uint256,string) (#239-242) is never used and should be removed
Remove unused functions.
Additional information: link
SafeRocket._previousLiquidityFee (#1066) 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) (#434-455):
- (success,returndata) = target.call{value: weiValue}(data) (#438)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Constant SafeRocket._wbnb (#1079) is not in UPPER_CASE_WITH_UNDERSCORES
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#20)" inContext (#14-23)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable SafeRocket._getValues(uint256).rTransferAmount (#1297) is too similar to SafeRocket._getValues(uint256).tTransferAmount (#1296)
Prevent variables from having similar names.
Additional information: link
SafeRocket.slitherConstructorConstantVariables() (#1039-1531) uses literals with too many digits:
- _tTotal = 1000000000 * 10 ** 6 * 10 ** 9 (#1052)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
SafeRocket._maxTaxFee (#1061) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
isExcludedFromFee(address) should be declared external:
- SafeRocket.isExcludedFromFee(address) (#1364-1366)
Use the external attribute for functions never called from the contract.
Additional information: link
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.
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Unable to find token on CoinGecko
Additional information: link
Unable to find token on CoinMarketCap
Additional information: link
Unable to find token contract audit
Unable to find audit link on the website
Unable to find token on CoinHunt
Additional information: link
Young tokens have high risks of scam / price dump / death
Token has no active CoinGecko listing / rank
Token has no active CoinMarketCap listing / rank
Token has a considerable age, but social accounts / website are missing or have few users
Token has a considerable age, but average PancakeSwap 30d trading volume is low
Young tokens have high risks of price dump / death
Twitter account link seems to be invalid
Unable to find Youtube account
Unable to find Discord account