SpaceFi is a revolutionized multichain cryptocurrency built to power its next generation of web3 social media application (The SpaceFi App) to advance the use of crypto globally and the way we use crypto socially. Spacefi app features include Space chat, crypto news, nft and job marketplace, mini-games, launchpad and so much more.
SPACEFI.swapBack() (#355-398) sends eth to arbitrary user
Dangerous calls:
- address(marketingFeeReceiver).transfer(amountETHMarketing) (#383)
- address(teamFeeReceiver).transfer(amountETHteam) (#384)
- address(pipdFeeReceiver).transfer(amountETHPiPd) (#385)
Ensure that an arbitrary user cannot withdraw unauthorized funds.
Additional information: link
Reentrancy in SPACEFI._transferFrom(address,address,uint256) (#259-283):
External calls:
- swapBack() (#272)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#366-372)
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,address(this),block.timestamp) (#388-395)
External calls sending eth:
- swapBack() (#272)
- address(marketingFeeReceiver).transfer(amountETHMarketing) (#383)
- address(teamFeeReceiver).transfer(amountETHteam) (#384)
- address(pipdFeeReceiver).transfer(amountETHPiPd) (#385)
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,address(this),block.timestamp) (#388-395)
State variables written after the call(s):
- balanceOf[sender] = balanceOf[sender].sub(amount,Insufficient Balance) (#274)
- balanceOf[recipient] = balanceOf[recipient].add(amountReceived) (#278)
- amountReceived = takeFee(sender,amount,recipient) (#276)
- balanceOf[address(this)] = balanceOf[address(this)].add(contractTokens) (#310)
- balanceOf[utilityFeeReceiver] = balanceOf[utilityFeeReceiver].add(utilityTokens) (#315)
Apply the check-effects-interactions pattern.
Additional information: link
Contract ownership is not renounced (belongs to a wallet)
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.
Unable to verify that contract auditor is trusted: Certik, Quantstamp, Hacken, Solidity, Paladinsec, Openzeppelin, Verichains
SPACEFI.takeFee(address,uint256,address) (#292-320) performs a multiplication on the result of a division:
-feeAmount = amount.mul(totalFee).mul(multiplier).div(feeDenominator * 100) (#305)
-utilityTokens = feeAmount.mul(utilityFee).div(totalFee) (#306)
Consider ordering multiplication before division.
Additional information: link
SPACEFI.swapBack() (#355-398) ignores return value by router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,address(this),block.timestamp) (#388-395)
Ensure that all the return values of the function calls are used.
Additional information: link
Reentrancy in SPACEFI._transferFrom(address,address,uint256) (#259-283):
External calls:
- swapBack() (#272)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#366-372)
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,address(this),block.timestamp) (#388-395)
External calls sending eth:
- swapBack() (#272)
- address(marketingFeeReceiver).transfer(amountETHMarketing) (#383)
- address(teamFeeReceiver).transfer(amountETHteam) (#384)
- address(pipdFeeReceiver).transfer(amountETHPiPd) (#385)
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,address(this),block.timestamp) (#388-395)
Event emitted after the call(s):
- Transfer(sender,address(this),contractTokens) (#311)
- amountReceived = takeFee(sender,amount,recipient) (#276)
- Transfer(sender,recipient,amountReceived) (#281)
- Transfer(sender,utilityFeeReceiver,utilityTokens) (#316)
- amountReceived = takeFee(sender,amount,recipient) (#276)
Reentrancy in SPACEFI.constructor() (#193-219):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WETH,address(this)) (#197)
Event emitted after the call(s):
- Transfer(address(0),msg.sender,totalSupply) (#218)
Reentrancy in SPACEFI.swapBack() (#355-398):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#366-372)
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,address(this),block.timestamp) (#388-395)
External calls sending eth:
- address(marketingFeeReceiver).transfer(amountETHMarketing) (#383)
- address(teamFeeReceiver).transfer(amountETHteam) (#384)
- address(pipdFeeReceiver).transfer(amountETHPiPd) (#385)
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,address(this),block.timestamp) (#388-395)
Event emitted after the call(s):
- AutoLiquify(amountETHLiquidity,amountToLiquify) (#396)
Apply the check-effects-interactions pattern.
Additional information: link
SPACEFI.totalFee (#171) is set pre-construction with a non-constant function or state variable:
- marketingFee + liquidityFee + teamFee + utilityFee + pipdFee
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
SPACEFI.setMultipliers(uint256,uint256,uint256) (#441-447) should emit an event for:
- sellMultiplier = _sell (#442)
- buyMultiplier = _buy (#443)
- transferMultiplier = _trans (#444)
SPACEFI.setFees_base1000(uint256,uint256,uint256,uint256,uint256) (#449-458) should emit an event for:
- liquidityFee = _liquidityFee (#450)
- marketingFee = _marketingFee (#451)
- teamFee = _teamFee (#452)
- pipdFee = _pipdFee (#453)
- utilityFee = _utilityFee (#454)
- totalFee = _liquidityFee + _marketingFee + _teamFee + _utilityFee + _pipdFee (#455)
Emit an event for critical parameter changes.
Additional information: link
SPACEFI.setFeeReceivers(address,address,address,address)._utilityFeeReceiver (#460) lacks a zero-check on :
- utilityFeeReceiver = _utilityFeeReceiver (#468)
Check that the address is not zero.
Additional information: link
Reentrancy in SPACEFI.constructor() (#193-219):
External calls:
- pair = IDEXFactory(router.factory()).createPair(WETH,address(this)) (#197)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = type()(uint256).max (#198)
- balanceOf[msg.sender] = totalSupply (#217)
- isFeeExempt[msg.sender] = true (#205)
- isTxLimitExempt[msg.sender] = true (#207)
- isTxLimitExempt[DEAD] = true (#208)
- isTxLimitExempt[ZERO] = true (#209)
- isTxLimitExempt[utilityFeeReceiver] = true (#210)
- isWalletLimitExempt[msg.sender] = true (#212)
- isWalletLimitExempt[address(this)] = true (#213)
- isWalletLimitExempt[DEAD] = true (#214)
- isWalletLimitExempt[utilityFeeReceiver] = true (#215)
- marketingFeeReceiver = 0xf445eab5852a33B65Fa247C66fE2aFBeD74C98C9 (#200)
- pipdFeeReceiver = 0xbbDe40d1a3c7f85107D21B101C1F14695a2daa79 (#201)
- teamFeeReceiver = 0x75c2d282cc01d06AC5Dc324878fea28246D1ACC0 (#202)
- utilityFeeReceiver = DEAD (#203)
Apply the check-effects-interactions pattern.
Additional information: link
Pragma version0.8.12 (#3) necessitates a version too recent to be trusted. Consider deploying with 0.6.12/0.7.6/0.8.7
solc-0.8.12 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
Event AuthAuthorize_Wallet(address,bool) (#57) is not in CapWords
Function IDEXRouter.WETH() (#121) is not in mixedCase
Event SPACEFIWallet_feeExempt(address,bool) (#510) is not in CapWords
Event SPACEFIWallet_txExempt(address,bool) (#511) is not in CapWords
Event SPACEFIWallet_holdingExempt(address,bool) (#512) is not in CapWords
Event SPACEFIWallet_whitelist(address,bool) (#513) is not in CapWords
Event SPACEFIclearToken(address,uint256) (#516) is not in CapWords
Event SPACEFISet_Wallets(address,address,address,address) (#518) is not in CapWords
Event SPACEFISet_Wallets_Dev(address) (#519) is not in CapWords
Event SPACEFIconfig_MaxWallet(uint256) (#521) is not in CapWords
Event SPACEFIconfig_MaxTransaction(uint256) (#522) is not in CapWords
Event SPACEFIconfig_TradingStatus(bool) (#523) is not in CapWords
Event SPACEFIconfig_LaunchMode(bool) (#524) is not in CapWords
Event SPACEFIconfig_initialDistributionMode(bool) (#525) is not in CapWords
Event SPACEFIconfig_SwapSettings(uint256,bool) (#526) is not in CapWords
Function SPACEFI.setMaxWalletPercent_base1000(uint256) (#248-252) is not in mixedCase
Parameter SPACEFI.setMaxWalletPercent_base1000(uint256).maxWallPercent_base1000 (#248) is not in mixedCase
Function SPACEFI.setMaxTxPercent_base1000(uint256) (#253-257) is not in mixedCase
Parameter SPACEFI.setMaxTxPercent_base1000(uint256).maxTXPercentage_base1000 (#253) is not in mixedCase
Function SPACEFI.manage_FeeExempt(address[],bool) (#406-412) is not in mixedCase
Function SPACEFI.manage_TxLimitExempt(address[],bool) (#414-420) is not in mixedCase
Function SPACEFI.manage_WalletLimitExempt(address[],bool) (#422-428) is not in mixedCase
Function SPACEFI.update_fees() (#430-439) is not in mixedCase
Parameter SPACEFI.setMultipliers(uint256,uint256,uint256)._buy (#441) is not in mixedCase
Parameter SPACEFI.setMultipliers(uint256,uint256,uint256)._sell (#441) is not in mixedCase
Parameter SPACEFI.setMultipliers(uint256,uint256,uint256)._trans (#441) is not in mixedCase
Function SPACEFI.setFees_base1000(uint256,uint256,uint256,uint256,uint256) (#449-458) is not in mixedCase
Parameter SPACEFI.setFees_base1000(uint256,uint256,uint256,uint256,uint256)._liquidityFee (#449) is not in mixedCase
Parameter SPACEFI.setFees_base1000(uint256,uint256,uint256,uint256,uint256)._marketingFee (#449) is not in mixedCase
Parameter SPACEFI.setFees_base1000(uint256,uint256,uint256,uint256,uint256)._teamFee (#449) is not in mixedCase
Parameter SPACEFI.setFees_base1000(uint256,uint256,uint256,uint256,uint256)._pipdFee (#449) is not in mixedCase
Parameter SPACEFI.setFees_base1000(uint256,uint256,uint256,uint256,uint256)._utilityFee (#449) is not in mixedCase
Parameter SPACEFI.setFeeReceivers(address,address,address,address)._marketingFeeReceiver (#460) is not in mixedCase
Parameter SPACEFI.setFeeReceivers(address,address,address,address)._teamFeeReceiver (#460) is not in mixedCase
Parameter SPACEFI.setFeeReceivers(address,address,address,address)._pipdFeeReceiver (#460) is not in mixedCase
Parameter SPACEFI.setFeeReceivers(address,address,address,address)._utilityFeeReceiver (#460) is not in mixedCase
Parameter SPACEFI.setSwapBackSettings(bool,uint256)._enabled (#473) is not in mixedCase
Parameter SPACEFI.setSwapBackSettings(bool,uint256)._amount (#473) is not in mixedCase
Variable SPACEFI.WETH (#144) is not in mixedCase
Constant SPACEFI.totalSupply (#152) is not in UPPER_CASE_WITH_UNDERSCORES
Variable SPACEFI._maxTxAmount (#154) is not in mixedCase
Variable SPACEFI._maxWalletToken (#155) is not in mixedCase
Variable SPACEFI._allowances (#158) is not in mixedCase
Constant SPACEFI.feeDenominator (#172) is not in UPPER_CASE_WITH_UNDERSCORES
Follow the Solidity naming convention.
Additional information: link
Reentrancy in SPACEFI._transferFrom(address,address,uint256) (#259-283):
External calls:
- swapBack() (#272)
- address(marketingFeeReceiver).transfer(amountETHMarketing) (#383)
- address(teamFeeReceiver).transfer(amountETHteam) (#384)
- address(pipdFeeReceiver).transfer(amountETHPiPd) (#385)
External calls sending eth:
- swapBack() (#272)
- address(marketingFeeReceiver).transfer(amountETHMarketing) (#383)
- address(teamFeeReceiver).transfer(amountETHteam) (#384)
- address(pipdFeeReceiver).transfer(amountETHPiPd) (#385)
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,address(this),block.timestamp) (#388-395)
State variables written after the call(s):
- balanceOf[sender] = balanceOf[sender].sub(amount,Insufficient Balance) (#274)
- balanceOf[recipient] = balanceOf[recipient].add(amountReceived) (#278)
- amountReceived = takeFee(sender,amount,recipient) (#276)
- balanceOf[address(this)] = balanceOf[address(this)].add(contractTokens) (#310)
- balanceOf[utilityFeeReceiver] = balanceOf[utilityFeeReceiver].add(utilityTokens) (#315)
Event emitted after the call(s):
- Transfer(sender,address(this),contractTokens) (#311)
- amountReceived = takeFee(sender,amount,recipient) (#276)
- Transfer(sender,recipient,amountReceived) (#281)
- Transfer(sender,utilityFeeReceiver,utilityTokens) (#316)
- amountReceived = takeFee(sender,amount,recipient) (#276)
Reentrancy in SPACEFI.clearStuckBalance(uint256) (#329-335):
External calls:
- address(msg.sender).transfer(amountToClear) (#333)
Event emitted after the call(s):
- BalanceClear(amountToClear) (#334)
Reentrancy in SPACEFI.swapBack() (#355-398):
External calls:
- address(marketingFeeReceiver).transfer(amountETHMarketing) (#383)
- address(teamFeeReceiver).transfer(amountETHteam) (#384)
- address(pipdFeeReceiver).transfer(amountETHPiPd) (#385)
External calls sending eth:
- address(marketingFeeReceiver).transfer(amountETHMarketing) (#383)
- address(teamFeeReceiver).transfer(amountETHteam) (#384)
- address(pipdFeeReceiver).transfer(amountETHPiPd) (#385)
- router.addLiquidityETH{value: amountETHLiquidity}(address(this),amountToLiquify,0,0,address(this),block.timestamp) (#388-395)
Event emitted after the call(s):
- AutoLiquify(amountETHLiquidity,amountToLiquify) (#396)
Apply the check-effects-interactions pattern.
Additional information: link
SPACEFI.slitherConstructorConstantVariables() (#141-529) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#145)
SPACEFI.slitherConstructorConstantVariables() (#141-529) uses literals with too many digits:
- ZERO = 0x0000000000000000000000000000000000000000 (#146)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
getCirculatingSupply() should be declared external:
- SPACEFI.getCirculatingSupply() (#482-484)
Use the external attribute for functions never called from the contract.
Additional information: link
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Unable to find audit link on the website
Unable to find Telegram link on the website
Unable to find token on CoinGecko
Additional information: link
Unable to find token on CoinMarketCap
Additional information: link
Token is not listed at Mobula.Finance
Additional information: link
Unable to find token on CoinHunt
Additional information: link
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
Unable to find Youtube account