Star Ship Royal is a browser online game in the setting of a space odyssey. The game will feature both a story line (PVE) and a PVP arena.
The economic component of the game is based on Blockchain. In the game itself, the unique entities (bases, items, ships) are tied to the NFT on Binance Smart Chain.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Reentrancy in StarShipRoyal._transfer(address,address,uint256) (#857-897):
External calls:
- swapAndLiquify(contractTokenBalance) (#884)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#926-932)
- (_amountToken,_amountETH,_liquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#940-947)
External calls sending eth:
- swapAndLiquify(contractTokenBalance) (#884)
- (_amountToken,_amountETH,_liquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#940-947)
State variables written after the call(s):
- _tokenTransfer(from,to,amount,takeFee) (#896)
- _rOwned[address(this)] = _rOwned[address(this)].add(rLiquidity) (#813)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#974)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#983)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#975)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#994)
- _rOwned[sender] = _rOwned[sender].sub(rAmount) (#1004)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#985)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#995)
- _rOwned[recipient] = _rOwned[recipient].add(rTransferAmount) (#1006)
- _tokenTransfer(from,to,amount,takeFee) (#896)
- _rTotal = _rTotal.sub(rFee) (#768)
- _tokenTransfer(from,to,amount,takeFee) (#896)
- _tOwned[address(this)] = _tOwned[address(this)].add(tLiquidity) (#815)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#993)
- _tOwned[sender] = _tOwned[sender].sub(tAmount) (#1003)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#984)
- _tOwned[recipient] = _tOwned[recipient].add(tTransferAmount) (#1005)
Apply the check-effects-interactions pattern.
Additional information: link
StarShipRoyal.recoverBEP20(address,uint256) (#1012-1014) ignores return value by IERC20(tokenAddress).transfer(owner(),tokenAmount) (#1013)
Use SafeERC20, or ensure that the transfer/transferFrom return value is checked.
Additional information: link
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.
Not a direct threat, but may indicate unreliable intentions of developer. Widespread names (e.g. Elon, King, Moon, Doge) are common among meme-tokens and scams. The allow to gain free hype and attract unexperienced investors.
StarShipRoyal._approve(address,address,uint256).owner (#849) shadows:
- Ownable.owner() (#448-450) (function)
Rename the local variables that shadow another component.
Additional information: link
Reentrancy in StarShipRoyal.transferFrom(address,address,uint256) (#662-666):
External calls:
- _transfer(sender,recipient,amount) (#663)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#926-932)
- (_amountToken,_amountETH,_liquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#940-947)
External calls sending eth:
- _transfer(sender,recipient,amount) (#663)
- (_amountToken,_amountETH,_liquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#940-947)
State variables written after the call(s):
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#664)
- _allowances[owner][spender] = amount (#853)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in StarShipRoyal.transferFrom(address,address,uint256) (#662-666):
External calls:
- _transfer(sender,recipient,amount) (#663)
- uniswapV2Router.swapExactTokensForETHSupportingFeeOnTransferTokens(tokenAmount,0,path,address(this),block.timestamp) (#926-932)
- (_amountToken,_amountETH,_liquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#940-947)
External calls sending eth:
- _transfer(sender,recipient,amount) (#663)
- (_amountToken,_amountETH,_liquidity) = uniswapV2Router.addLiquidityETH{value: ethAmount}(address(this),tokenAmount,0,0,owner(),block.timestamp) (#940-947)
Event emitted after the call(s):
- Approval(owner,spender,amount) (#854)
- _approve(sender,_msgSender(),_allowances[sender][_msgSender()].sub(amount,ERC20: transfer amount exceeds allowance)) (#664)
Apply the check-effects-interactions pattern.
Additional information: link
Ownable.unlock() (#495-500) uses timestamp for comparisons
Dangerous comparisons:
- require(bool,string)(now > _lockTime,Contract is locked until 7 days) (#497)
Avoid relying on block.timestamp.
Additional information: link
Address._functionCallWithValue(address,bytes,uint256,string) (#394-415) uses assembly
- INLINE ASM (#407-410)
Do not use evm assembly.
Additional information: link
SafeMath.mod(uint256,uint256,string) (#262-265) is never used and should be removed
Remove unused functions.
Additional information: link
StarShipRoyal._previousLiquidityFee (#584) 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) (#394-415):
- (success,returndata) = target.call{value: weiValue}(data) (#398)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Variable StarShipRoyal._maxTxAmount (#592) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#274)" inContext (#268-277)
Remove redundant statements if they congest code but offer no value.
Additional information: link
Variable StarShipRoyal._getRValues(uint256,uint256,uint256,uint256).rTransferAmount (#789) is too similar to StarShipRoyal._getValues(uint256).tTransferAmount (#773)
Prevent variables from having similar names.
Additional information: link
StarShipRoyal.slitherConstructorVariables() (#558-1021) uses literals with too many digits:
- numTokensSellToAddToLiquidity = 500000 * 10 ** 6 * 10 ** 9 (#593)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
StarShipRoyal.numTokensSellToAddToLiquidity (#593) should be constant
Add the constant attributes to state variables that never change.
Additional information: link
recoverBNB(uint256) should be declared external:
- StarShipRoyal.recoverBNB(uint256) (#1016-1019)
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 contract audit
Unable to find audit link on the website
Unable to find whitepaper link on the website
Unable to find token on CoinHunt
Additional information: link
Unable to find code repository for the project
Young tokens have high risks of price dump / death
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of price dump / death
Token has relatively low CoinGecko rank
Token has relatively low CoinMarketCap rank
Twitter account link seems to be invalid
Unable to find Youtube account
Unable to find Discord account