RocketFi Token Logo

ROCKETFI Token

About ROCKETFI

Listings

Token 2 years
CoinGecko 21 months
CoinMarketCap 21 months
white paper

RocketFi is a DeFi project that offers innovative, user friendly web3 tools built for real-world utility, and a unique customizable rewards system.

Laser Scorebeta Last Audit: 16 July 2022

report
Token is either risky or in presale. For presale 30+ is a fine score.

RocketFi._swapBack() (#715-740) sends eth to arbitrary user
Dangerous calls:
- poolDistributionGateway.depositBNB{value: amountBNB}() (#733-738)
Ensure that an arbitrary user cannot withdraw unauthorized funds.

Additional information: link

Reentrancy in RocketFi._transferFrom(address,address,uint256) (#544-594):
External calls:
- _swapBack() (#553)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#722-728)
- poolDistributionGateway.depositBNB{value: amountBNB}() (#733-738)
- rocketPlay.playRocketPools(sender,recipient,transferType,amount) (#559-563)
- amountAfterFee = _getDiscountAndTakeFee(sender,recipient,amount,transferType) (#566)
- rocketPlay.updatePools(rocketPlayAlloc) (#698)
- burnToEarn.syncDeposit(burn2earnAlloc) (#705)
External calls sending eth:
- _swapBack() (#553)
- poolDistributionGateway.depositBNB{value: amountBNB}() (#733-738)
State variables written after the call(s):
- amountAfterFee = _getDiscountAndTakeFee(sender,recipient,amount,transferType) (#566)
- _balances[address(rocketPlay)] += rocketPlayAlloc (#697)
- _balances[address(this)] += finalFee (#684)
- _balances[sender] -= amount (#614)
- _balances[recipient] += amountAfterFee (#615)
- _balances[address(burnToEarn)] += burn2earnAlloc (#704)
- amountAfterFee = _getDiscountAndTakeFee(sender,recipient,amount,transferType) (#566)
- burnReserve += finalFee.mul(fee.burn).div(fee.sell) (#682)
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

Variable 'RocketFi._transferFrom(address,address,uint256).reason_scope_0 (#586)' in RocketFi._transferFrom(address,address,uint256) (#544-594) potentially used before declaration: ErrorEvent(reason_scope_0) (#588)
Variable 'RocketFi._transferFrom(address,address,uint256).reason (#560)' in RocketFi._transferFrom(address,address,uint256) (#544-594) potentially used before declaration: ErrorEvent(reason) (#562)
Variable 'RocketFi._setMyRocket(address,address).reason (#626)' in RocketFi._setMyRocket(address,address) (#620-631) potentially used before declaration: ErrorEvent(reason) (#628)
Variable 'RocketFi._swapBack().reason (#735)' in RocketFi._swapBack() (#715-740) potentially used before declaration: ErrorEvent(reason) (#737)
Variable 'RocketFi._playBurnPools(IERC20,address,uint256,uint256)._success (#744)' in RocketFi._playBurnPools(IERC20,address,uint256,uint256) (#742-758) potentially used before declaration: success = _success (#745)
Variable 'RocketFi._playBurnPools(IERC20,address,uint256,uint256).reason_scope_0 (#754)' in RocketFi._playBurnPools(IERC20,address,uint256,uint256) (#742-758) potentially used before declaration: ErrorEvent(reason_scope_0) (#756)
Variable 'RocketFi._playBurnPools(IERC20,address,uint256,uint256).reason (#747)' in RocketFi._playBurnPools(IERC20,address,uint256,uint256) (#742-758) potentially used before declaration: ErrorEvent(reason) (#749)
Variable 'RocketFi._updateBurnToEarnUser(address,uint256).reason (#762)' in RocketFi._updateBurnToEarnUser(address,uint256) (#760-766) potentially used before declaration: ErrorEvent(reason) (#764)
Variable 'RocketFi._updateBurnToEarnFactors(address,uint256,uint256).reason (#770)' in RocketFi._updateBurnToEarnFactors(address,uint256,uint256) (#768-774) potentially used before declaration: ErrorEvent(reason) (#772)
Variable 'RocketFi._getRocketFee(IERC20,uint256)._rocketPlayFee (#864)' in RocketFi._getRocketFee(IERC20,uint256) (#863-872) potentially used before declaration: rocketPlayFee = _rocketPlayFee (#865)
Variable 'RocketFi._getRocketFee(IERC20,uint256).reason (#867)' in RocketFi._getRocketFee(IERC20,uint256) (#863-872) potentially used before declaration: ErrorEvent(reason) (#869)
Variable 'RocketFi._getPoolThreshold(IERC20,uint256)._poolThreshold (#875)' in RocketFi._getPoolThreshold(IERC20,uint256) (#874-884) potentially used before declaration: poolThreshold = _poolThreshold (#876)
Variable 'RocketFi._getPoolThreshold(IERC20,uint256)._holdAmount (#875)' in RocketFi._getPoolThreshold(IERC20,uint256) (#874-884) potentially used before declaration: holdAmount = _holdAmount (#877)
Variable 'RocketFi._getPoolThreshold(IERC20,uint256).reason (#879)' in RocketFi._getPoolThreshold(IERC20,uint256) (#874-884) potentially used before declaration: ErrorEvent(reason) (#881)
Variable 'RocketFi.getDiscount(address)._buyDiscount (#917)' in RocketFi.getDiscount(address) (#915-929) potentially used before declaration: buyDiscount = _buyDiscount (#918)
Variable 'RocketFi.getDiscount(address)._sellDiscount (#917)' in RocketFi.getDiscount(address) (#915-929) potentially used before declaration: sellDiscount = _sellDiscount (#919)
Variable 'RocketFi.getDiscount(address).reason (#921)' in RocketFi.getDiscount(address) (#915-929) potentially used before declaration: ErrorEvent(reason) (#923)
Move all variable declarations prior to any usage of the variable, and ensure that reaching a variable declaration does not depend on some conditional if it is used unconditionally.

Additional information: link

Address._functionCallWithValue(address,bytes,uint256,string) (#186-207) is never used and should be removed
Address.functionCall(address,bytes) (#146-148) is never used and should be removed
Address.functionCall(address,bytes,string) (#156-158) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256) (#171-173) is never used and should be removed
Address.functionCallWithValue(address,bytes,uint256,string) (#181-184) is never used and should be removed
Address.sendValue(address,uint256) (#120-126) is never used and should be removed
SafeMath.add(uint256,uint256) (#27-32) is never used and should be removed
SafeMath.mod(uint256,uint256) (#66-68) is never used and should be removed
SafeMath.mod(uint256,uint256,string) (#70-73) is never used and should be removed
Remove unused functions.

Additional information: link

RocketFi.slitherConstructorVariables() (#425-1124) uses literals with too many digits:
- DEAD = 0x000000000000000000000000000000000000dEaD (#455)
Use: Ether suffix, Time suffix, or The scientific notation

Additional information: link

RocketFi.DEAD (#455) should be constant
Add the constant attributes to state variables that never change.

Additional information: link

Low level call in Address.sendValue(address,uint256) (#120-126):
- (success) = recipient.call{value: amount}() (#124)
Low level call in Address._functionCallWithValue(address,bytes,uint256,string) (#186-207):
- (success,returndata) = target.call{value: weiValue}(data) (#190)
Low level call in RocketFi.transferBNB(address) (#1083-1086):
- (success) = _to.call{value: address(this).balance}() (#1084)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence

Additional information: link

RocketFi (#425-1124) should inherit from IRocketForge (#421-423)
Inherit from the missing interface or contract.

Additional information: link

Auth.transferOwnership(address).adr (#266) lacks a zero-check on :
- owner = adr (#267)
RocketFi.transferBNB(address)._to (#1083) lacks a zero-check on :
- (success) = _to.call{value: address(this).balance}() (#1084)
Check that the address is not zero.

Additional information: link

Reentrancy in RocketFi._basicTransfer(address,address,uint256) (#662-668):
External calls:
- _setMyRocket(sender,recipient) (#665)
- poolDistributionGateway.setShares(sender,recipient,balancesSender,balancesRecipient) (#625-629)
Event emitted after the call(s):
- Transfer(sender,recipient,amount) (#666)
Reentrancy in RocketFi._burnAndUpdateSupply(uint256,uint256) (#776-793):
External calls:
- _setMyRocket(msg.sender,DEAD) (#782)
- poolDistributionGateway.setShares(sender,recipient,balancesSender,balancesRecipient) (#625-629)
- _updateBurnToEarnUser(msg.sender,amountToBurn) (#787)
- burnToEarn.updateUser(_holder,_amountBurned) (#761-765)
Event emitted after the call(s):
- ErrorEvent(_updateBurnToEarnUser(): burnToEarn.updateUser() Failed) (#763)
- _updateBurnToEarnUser(msg.sender,amountToBurn) (#787)
- ErrorEvent(reason) (#764)
- _updateBurnToEarnUser(msg.sender,amountToBurn) (#787)
- TokensBurned(msg.sender,amountToBurn) (#792)
- Transfer(msg.sender,address(0),amountToBurn) (#791)
Reentrancy in RocketFi._burnTokens(IERC20,uint256,uint256,bool) (#817-842):
External calls:
- _playBurnPools(token,msg.sender,poolID,tokenAmount) (#833)
- rocketPlay.playBurnPools(token,holder,poolID,tokenAmount) (#753-757)
- feeAmount = _takeBurnFee(token,tokenAmount,poolID) (#835)
- burnToEarn.syncDeposit(alloc) (#800)
Event emitted after the call(s):
- ErrorEvent(_getRocketFee(): rocketPlay.getFee() Failed) (#868)
- feeAmount = _takeBurnFee(token,tokenAmount,poolID) (#835)
- ErrorEvent(reason) (#869)
- feeAmount = _takeBurnFee(token,tokenAmount,poolID) (#835)
- Transfer(msg.sender,_burnToEarn,alloc) (#801)
- feeAmount = _takeBurnFee(token,tokenAmount,poolID) (#835)
Reentrancy in RocketFi._burnTokens(IERC20,uint256,uint256,bool) (#817-842):
External calls:
- _playBurnPools(token,msg.sender,poolID,tokenAmount) (#833)
- rocketPlay.playBurnPools(token,holder,poolID,tokenAmount) (#753-757)
- feeAmount = _takeBurnFee(token,tokenAmount,poolID) (#835)
- burnToEarn.syncDeposit(alloc) (#800)
- _burnAndUpdateSupply(tokenAmount,feeAmount) (#840)
- burnToEarn.updateUser(_holder,_amountBurned) (#761-765)
- poolDistributionGateway.setShares(sender,recipient,balancesSender,balancesRecipient) (#625-629)
Event emitted after the call(s):
- ErrorEvent(_updateBurnToEarnUser(): burnToEarn.updateUser() Failed) (#763)
- _burnAndUpdateSupply(tokenAmount,feeAmount) (#840)
- ErrorEvent(reason) (#764)
- _burnAndUpdateSupply(tokenAmount,feeAmount) (#840)
- ErrorEvent(_transferFrom(): poolDistributionGateway.setShares() Failed) (#627)
- _burnAndUpdateSupply(tokenAmount,feeAmount) (#840)
- ErrorEvent(reason) (#628)
- _burnAndUpdateSupply(tokenAmount,feeAmount) (#840)
- TokensBurned(msg.sender,amountToBurn) (#792)
- _burnAndUpdateSupply(tokenAmount,feeAmount) (#840)
- Transfer(msg.sender,address(0),amountToBurn) (#791)
- _burnAndUpdateSupply(tokenAmount,feeAmount) (#840)
Reentrancy in RocketFi._fundHookedContracts(address,uint256) (#690-709):
External calls:
- rocketPlay.updatePools(rocketPlayAlloc) (#698)
Event emitted after the call(s):
- Transfer(_sender,address(rocketPlay),rocketPlayAlloc) (#699)
Reentrancy in RocketFi._fundHookedContracts(address,uint256) (#690-709):
External calls:
- rocketPlay.updatePools(rocketPlayAlloc) (#698)
- burnToEarn.syncDeposit(burn2earnAlloc) (#705)
Event emitted after the call(s):
- Transfer(_sender,address(burnToEarn),burn2earnAlloc) (#706)
Reentrancy in RocketFi._playBurnPools(IERC20,address,uint256,uint256) (#742-758):
External calls:
- rocketPlay.playBurnPools(token,holder,poolID,tokenAmount) (#753-757)
Event emitted after the call(s):
- ErrorEvent(_playBurnPools(): rocketPlay.playBurnPools() Failed) (#755)
- ErrorEvent(reason_scope_0) (#756)
Reentrancy in RocketFi._setMyRocket(address,address) (#620-631):
External calls:
- poolDistributionGateway.setShares(sender,recipient,balancesSender,balancesRecipient) (#625-629)
Event emitted after the call(s):
- ErrorEvent(_transferFrom(): poolDistributionGateway.setShares() Failed) (#627)
- ErrorEvent(reason) (#628)
Reentrancy in RocketFi._swapBack() (#715-740):
External calls:
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#722-728)
- poolDistributionGateway.depositBNB{value: amountBNB}() (#733-738)
External calls sending eth:
- poolDistributionGateway.depositBNB{value: amountBNB}() (#733-738)
Event emitted after the call(s):
- ErrorEvent(_swapBack(): poolDistributionGateway.depositBNB() Failed) (#736)
- ErrorEvent(reason) (#737)
Reentrancy in RocketFi._takeBurnFee(IERC20,uint256,uint256) (#795-803):
External calls:
- burnToEarn.syncDeposit(alloc) (#800)
Event emitted after the call(s):
- Transfer(msg.sender,_burnToEarn,alloc) (#801)
Reentrancy in RocketFi._takeExternalFee(uint256) (#844-861):
External calls:
- (rocketPlayAlloc,burn2earnAlloc) = _fundHookedContracts(msg.sender,feeAmount) (#849)
- rocketPlay.updatePools(rocketPlayAlloc) (#698)
- burnToEarn.syncDeposit(burn2earnAlloc) (#705)
Event emitted after the call(s):
- Transfer(msg.sender,address(this),finalFee) (#857)
Reentrancy in RocketFi._takeFee(address,address,uint256,RocketLibrary.TransferType,uint256,uint256) (#670-688):
External calls:
- (rocketPlayAlloc,burn2earnAlloc) = _fundHookedContracts(_sender,feeAmount) (#678)
- rocketPlay.updatePools(rocketPlayAlloc) (#698)
- burnToEarn.syncDeposit(burn2earnAlloc) (#705)
Event emitted after the call(s):
- Transfer(_sender,address(this),finalFee) (#685)
Reentrancy in RocketFi._transferFrom(address,address,uint256) (#544-594):
External calls:
- _swapBack() (#553)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#722-728)
- poolDistributionGateway.depositBNB{value: amountBNB}() (#733-738)
- rocketPlay.playRocketPools(sender,recipient,transferType,amount) (#559-563)
External calls sending eth:
- _swapBack() (#553)
- poolDistributionGateway.depositBNB{value: amountBNB}() (#733-738)
Event emitted after the call(s):
- ErrorEvent(_transferFrom(): rocketPlay.playRocketPools() Failed) (#561)
- ErrorEvent(reason) (#562)
Reentrancy in RocketFi._transferFrom(address,address,uint256) (#544-594):
External calls:
- _swapBack() (#553)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#722-728)
- poolDistributionGateway.depositBNB{value: amountBNB}() (#733-738)
- rocketPlay.playRocketPools(sender,recipient,transferType,amount) (#559-563)
- amountAfterFee = _getDiscountAndTakeFee(sender,recipient,amount,transferType) (#566)
- rocketPlay.updatePools(rocketPlayAlloc) (#698)
- burnToEarn.syncDeposit(burn2earnAlloc) (#705)
External calls sending eth:
- _swapBack() (#553)
- poolDistributionGateway.depositBNB{value: amountBNB}() (#733-738)
Event emitted after the call(s):
- ErrorEvent(getDiscount(): rocketForge.getDiscount() Failed) (#922)
- amountAfterFee = _getDiscountAndTakeFee(sender,recipient,amount,transferType) (#566)
- ErrorEvent(reason) (#923)
- amountAfterFee = _getDiscountAndTakeFee(sender,recipient,amount,transferType) (#566)
- Transfer(_sender,address(rocketPlay),rocketPlayAlloc) (#699)
- amountAfterFee = _getDiscountAndTakeFee(sender,recipient,amount,transferType) (#566)
- Transfer(_sender,address(this),finalFee) (#685)
- amountAfterFee = _getDiscountAndTakeFee(sender,recipient,amount,transferType) (#566)
- Transfer(_sender,address(burnToEarn),burn2earnAlloc) (#706)
- amountAfterFee = _getDiscountAndTakeFee(sender,recipient,amount,transferType) (#566)
Reentrancy in RocketFi._transferFrom(address,address,uint256) (#544-594):
External calls:
- _swapBack() (#553)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#722-728)
- poolDistributionGateway.depositBNB{value: amountBNB}() (#733-738)
- rocketPlay.playRocketPools(sender,recipient,transferType,amount) (#559-563)
- amountAfterFee = _getDiscountAndTakeFee(sender,recipient,amount,transferType) (#566)
- rocketPlay.updatePools(rocketPlayAlloc) (#698)
- burnToEarn.syncDeposit(burn2earnAlloc) (#705)
- _setMyRocket(sender,recipient) (#568)
- poolDistributionGateway.setShares(sender,recipient,balancesSender,balancesRecipient) (#625-629)
External calls sending eth:
- _swapBack() (#553)
- poolDistributionGateway.depositBNB{value: amountBNB}() (#733-738)
Event emitted after the call(s):
- ErrorEvent(_transferFrom(): poolDistributionGateway.setShares() Failed) (#627)
- _setMyRocket(sender,recipient) (#568)
- ErrorEvent(reason) (#628)
- _setMyRocket(sender,recipient) (#568)
Reentrancy in RocketFi._transferFrom(address,address,uint256) (#544-594):
External calls:
- _swapBack() (#553)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#722-728)
- poolDistributionGateway.depositBNB{value: amountBNB}() (#733-738)
- rocketPlay.playRocketPools(sender,recipient,transferType,amount) (#559-563)
- amountAfterFee = _getDiscountAndTakeFee(sender,recipient,amount,transferType) (#566)
- rocketPlay.updatePools(rocketPlayAlloc) (#698)
- burnToEarn.syncDeposit(burn2earnAlloc) (#705)
- _setMyRocket(sender,recipient) (#568)
- poolDistributionGateway.setShares(sender,recipient,balancesSender,balancesRecipient) (#625-629)
- _updateBurnToEarnFactors(sender,0,sold) (#575)
- burnToEarn.updateBurnToEarnFactors(_holder,boostID,amountToUpdate) (#769-773)
External calls sending eth:
- _swapBack() (#553)
- poolDistributionGateway.depositBNB{value: amountBNB}() (#733-738)
Event emitted after the call(s):
- ErrorEvent(_updateBurnToEarnFactors(): burnToEarn.updateBurnToEarnFactors() Failed) (#771)
- _updateBurnToEarnFactors(sender,0,sold) (#575)
- ErrorEvent(reason) (#772)
- _updateBurnToEarnFactors(sender,0,sold) (#575)
Reentrancy in RocketFi._transferFrom(address,address,uint256) (#544-594):
External calls:
- _swapBack() (#553)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#722-728)
- poolDistributionGateway.depositBNB{value: amountBNB}() (#733-738)
- rocketPlay.playRocketPools(sender,recipient,transferType,amount) (#559-563)
- amountAfterFee = _getDiscountAndTakeFee(sender,recipient,amount,transferType) (#566)
- rocketPlay.updatePools(rocketPlayAlloc) (#698)
- burnToEarn.syncDeposit(burn2earnAlloc) (#705)
- _setMyRocket(sender,recipient) (#568)
- poolDistributionGateway.setShares(sender,recipient,balancesSender,balancesRecipient) (#625-629)
- _updateBurnToEarnFactors(sender,0,sold) (#575)
- burnToEarn.updateBurnToEarnFactors(_holder,boostID,amountToUpdate) (#769-773)
- poolDistributionGateway.onTransfer(transf) (#585-589)
External calls sending eth:
- _swapBack() (#553)
- poolDistributionGateway.depositBNB{value: amountBNB}() (#733-738)
Event emitted after the call(s):
- ErrorEvent(_transferFrom(): poolDistributionGateway.onTransfer() Failed) (#587)
- ErrorEvent(reason_scope_0) (#588)
- Transfer(sender,recipient,amountAfterFee) (#592)
Reentrancy in RocketFi._updateBurnToEarnFactors(address,uint256,uint256) (#768-774):
External calls:
- burnToEarn.updateBurnToEarnFactors(_holder,boostID,amountToUpdate) (#769-773)
Event emitted after the call(s):
- ErrorEvent(_updateBurnToEarnFactors(): burnToEarn.updateBurnToEarnFactors() Failed) (#771)
- ErrorEvent(reason) (#772)
Reentrancy in RocketFi._updateBurnToEarnUser(address,uint256) (#760-766):
External calls:
- burnToEarn.updateUser(_holder,_amountBurned) (#761-765)
Event emitted after the call(s):
- ErrorEvent(_updateBurnToEarnUser(): burnToEarn.updateUser() Failed) (#763)
- ErrorEvent(reason) (#764)
Reentrancy in RocketFi.constructor(address) (#518-535):
External calls:
- pair = IDEXFactory(router.factory()).createPair(router.WETH(),address(this)) (#521)
Event emitted after the call(s):
- Approval(msg.sender,spender,amount) (#1114)
- approve(address(pair),_totalSupply) (#531)
- Approval(msg.sender,spender,amount) (#1114)
- approve(_dexRouter,_totalSupply) (#530)
- Transfer(address(0),msg.sender,_totalSupply) (#534)
Reentrancy in RocketFi.depositTokenToRocketPools(uint256[3]) (#1044-1070):
External calls:
- _updateBurnToEarnFactors(msg.sender,2,_finalBalance) (#1065)
- burnToEarn.updateBurnToEarnFactors(_holder,boostID,amountToUpdate) (#769-773)
- _setMyRocket(msg.sender,rocketPlayAddr) (#1068)
- poolDistributionGateway.setShares(sender,recipient,balancesSender,balancesRecipient) (#625-629)
Event emitted after the call(s):
- ErrorEvent(_transferFrom(): poolDistributionGateway.setShares() Failed) (#627)
- _setMyRocket(msg.sender,rocketPlayAddr) (#1068)
- ErrorEvent(reason) (#628)
- _setMyRocket(msg.sender,rocketPlayAddr) (#1068)
Apply the check-effects-interactions pattern.

Additional information: link

Pragma version^0.8.0 (#2) allows old versions
solc-0.8.0 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

RocketFi._getPoolThreshold(IERC20,uint256).reason (#879) is a local variable never initialized
RocketFi._transferFrom(address,address,uint256).purchased (#578) is a local variable never initialized
RocketFi._setMyRocket(address,address).reason (#626) is a local variable never initialized
RocketFi._transferFrom(address,address,uint256).reason (#560) is a local variable never initialized
RocketFi._playBurnPools(IERC20,address,uint256,uint256).success (#743) is a local variable never initialized
RocketFi._fundHookedContracts(address,uint256).rocketPlayAlloc (#693) is a local variable never initialized
RocketFi._transferFrom(address,address,uint256).reason_scope_0 (#586) is a local variable never initialized
RocketFi._transferFrom(address,address,uint256).sold (#570) is a local variable never initialized
RocketFi._getDiscountAndTakeFee(address,address,uint256,RocketLibrary.TransferType).buyDiscount (#603) is a local variable never initialized
RocketFi._swapBack().reason (#735) is a local variable never initialized
RocketFi._playBurnPools(IERC20,address,uint256,uint256).reason_scope_0 (#754) is a local variable never initialized
RocketFi._playBurnPools(IERC20,address,uint256,uint256)._success (#744) is a local variable never initialized
RocketFi._updateBurnToEarnFactors(address,uint256,uint256).reason (#770) is a local variable never initialized
RocketFi._getDiscountAndTakeFee(address,address,uint256,RocketLibrary.TransferType).sellDiscount (#604) is a local variable never initialized
RocketFi.depositTokenToRocketPools(uint256[3])._finalBalance (#1050) is a local variable never initialized
RocketFi._getRocketFee(IERC20,uint256)._rocketPlayFee (#864) is a local variable never initialized
RocketFi._getPoolThreshold(IERC20,uint256)._poolThreshold (#875) is a local variable never initialized
RocketFi._getPoolThreshold(IERC20,uint256)._holdAmount (#875) is a local variable never initialized
RocketFi._burnTokens(IERC20,uint256,uint256,bool).feeAmount (#819) is a local variable never initialized
RocketFi.getDiscount(address).reason (#921) is a local variable never initialized
RocketFi._playBurnPools(IERC20,address,uint256,uint256).reason (#747) is a local variable never initialized
RocketFi._updateBurnToEarnUser(address,uint256).reason (#762) is a local variable never initialized
RocketFi.getDiscount(address)._buyDiscount (#917) is a local variable never initialized
RocketFi._fundHookedContracts(address,uint256).burn2earnAlloc (#692) is a local variable never initialized
RocketFi.getDiscount(address)._sellDiscount (#917) is a local variable never initialized
RocketFi._getRocketFee(IERC20,uint256).reason (#867) 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

RocketFi.depositTokenToRocketPools(uint256[3]) (#1044-1070) has external calls inside a loop: rocketPlay.updatePoolByID(x,boostAmounts[x]) (#1057-1059)
Favor pull over push strategy for external calls.

Additional information: link

Address.isContract(address) (#93-102) uses assembly
- INLINE ASM (#100)
Address._functionCallWithValue(address,bytes,uint256,string) (#186-207) uses assembly
- INLINE ASM (#199-202)
Do not use evm assembly.

Additional information: link

RocketFi._playBurnPools(IERC20,address,uint256,uint256) (#742-758) ignores return value by rocketPlay.validatePoolID(token,poolID) (#744-750)
RocketFi._getRocketFee(IERC20,uint256) (#863-872) ignores return value by rocketPlay.getFee(token,poolID) (#864-870)
RocketFi._getPoolThreshold(IERC20,uint256) (#874-884) ignores return value by rocketPlay.getPoolThreshold(token,poolID) (#875-882)
RocketFi.getDiscount(address) (#915-929) ignores return value by rocketForge.getDiscount(_addr) (#917-927)
Ensure that all the return values of the function calls are used.

Additional information: link

Reentrancy in RocketFi._burnTokens(IERC20,uint256,uint256,bool) (#817-842):
External calls:
- _playBurnPools(token,msg.sender,poolID,tokenAmount) (#833)
- rocketPlay.playBurnPools(token,holder,poolID,tokenAmount) (#753-757)
- feeAmount = _takeBurnFee(token,tokenAmount,poolID) (#835)
- burnToEarn.syncDeposit(alloc) (#800)
State variables written after the call(s):
- feeAmount = _takeBurnFee(token,tokenAmount,poolID) (#835)
- _balances[_burnToEarn] += alloc (#799)
Reentrancy in RocketFi._burnTokens(IERC20,uint256,uint256,bool) (#817-842):
External calls:
- _playBurnPools(token,msg.sender,poolID,tokenAmount) (#833)
- rocketPlay.playBurnPools(token,holder,poolID,tokenAmount) (#753-757)
- feeAmount = _takeBurnFee(token,tokenAmount,poolID) (#835)
- burnToEarn.syncDeposit(alloc) (#800)
- _burnAndUpdateSupply(tokenAmount,feeAmount) (#840)
- burnToEarn.updateUser(_holder,_amountBurned) (#761-765)
- poolDistributionGateway.setShares(sender,recipient,balancesSender,balancesRecipient) (#625-629)
State variables written after the call(s):
- _burnAndUpdateSupply(tokenAmount,feeAmount) (#840)
- _balances[msg.sender] -= tokenAmount (#780)
Reentrancy in RocketFi._fundHookedContracts(address,uint256) (#690-709):
External calls:
- rocketPlay.updatePools(rocketPlayAlloc) (#698)
State variables written after the call(s):
- _balances[address(burnToEarn)] += burn2earnAlloc (#704)
Reentrancy in RocketFi._getDiscountAndTakeFee(address,address,uint256,RocketLibrary.TransferType) (#601-617):
External calls:
- amountAfterFee = _takeFee(sender,recipient,amount,transferType,buyDiscount,sellDiscount) (#613)
- rocketPlay.updatePools(rocketPlayAlloc) (#698)
- burnToEarn.syncDeposit(burn2earnAlloc) (#705)
State variables written after the call(s):
- _balances[sender] -= amount (#614)
- _balances[recipient] += amountAfterFee (#615)
Reentrancy in RocketFi._takeExternalFee(uint256) (#844-861):
External calls:
- (rocketPlayAlloc,burn2earnAlloc) = _fundHookedContracts(msg.sender,feeAmount) (#849)
- rocketPlay.updatePools(rocketPlayAlloc) (#698)
- burnToEarn.syncDeposit(burn2earnAlloc) (#705)
State variables written after the call(s):
- _balances[address(this)] += finalFee (#856)
Reentrancy in RocketFi._takeFee(address,address,uint256,RocketLibrary.TransferType,uint256,uint256) (#670-688):
External calls:
- (rocketPlayAlloc,burn2earnAlloc) = _fundHookedContracts(_sender,feeAmount) (#678)
- rocketPlay.updatePools(rocketPlayAlloc) (#698)
- burnToEarn.syncDeposit(burn2earnAlloc) (#705)
State variables written after the call(s):
- _balances[address(this)] += finalFee (#684)
Reentrancy in RocketFi.depositTokenToRocketPools(uint256[3]) (#1044-1070):
External calls:
- _updateBurnToEarnFactors(msg.sender,2,_finalBalance) (#1065)
- burnToEarn.updateBurnToEarnFactors(_holder,boostID,amountToUpdate) (#769-773)
State variables written after the call(s):
- _balances[rocketPlayAddr] += _finalBalance (#1066)
- _balances[msg.sender] -= _finalBalance (#1067)
Apply the check-effects-interactions pattern.

Additional information: link

Reentrancy in RocketFi._burnAndUpdateSupply(uint256,uint256) (#776-793):
External calls:
- _setMyRocket(msg.sender,DEAD) (#782)
- poolDistributionGateway.setShares(sender,recipient,balancesSender,balancesRecipient) (#625-629)
State variables written after the call(s):
- tokensBurned += amountToBurn (#784)
Reentrancy in RocketFi._burnAndUpdateSupply(uint256,uint256) (#776-793):
External calls:
- _setMyRocket(msg.sender,DEAD) (#782)
- poolDistributionGateway.setShares(sender,recipient,balancesSender,balancesRecipient) (#625-629)
- _updateBurnToEarnUser(msg.sender,amountToBurn) (#787)
- burnToEarn.updateUser(_holder,_amountBurned) (#761-765)
State variables written after the call(s):
- _internalApprove(address(router),_total_supply) (#789)
- _allowances[msg.sender][spender] = amount (#597)
- _internalApprove(address(pair),_total_supply) (#790)
- _allowances[msg.sender][spender] = amount (#597)
Reentrancy in RocketFi._burnTokens(IERC20,uint256,uint256,bool) (#817-842):
External calls:
- _playBurnPools(token,msg.sender,poolID,tokenAmount) (#833)
- rocketPlay.playBurnPools(token,holder,poolID,tokenAmount) (#753-757)
- feeAmount = _takeBurnFee(token,tokenAmount,poolID) (#835)
- burnToEarn.syncDeposit(alloc) (#800)
- _burnAndUpdateSupply(tokenAmount,feeAmount) (#840)
- burnToEarn.updateUser(_holder,_amountBurned) (#761-765)
- poolDistributionGateway.setShares(sender,recipient,balancesSender,balancesRecipient) (#625-629)
State variables written after the call(s):
- _burnAndUpdateSupply(tokenAmount,feeAmount) (#840)
- _allowances[msg.sender][spender] = amount (#597)
Reentrancy in RocketFi._takeExternalFee(uint256) (#844-861):
External calls:
- (rocketPlayAlloc,burn2earnAlloc) = _fundHookedContracts(msg.sender,feeAmount) (#849)
- rocketPlay.updatePools(rocketPlayAlloc) (#698)
- burnToEarn.syncDeposit(burn2earnAlloc) (#705)
State variables written after the call(s):
- burnReserve += finalFee.mul(fee.burn).div(fee.sell) (#854)
Reentrancy in RocketFi._takeFee(address,address,uint256,RocketLibrary.TransferType,uint256,uint256) (#670-688):
External calls:
- (rocketPlayAlloc,burn2earnAlloc) = _fundHookedContracts(_sender,feeAmount) (#678)
- rocketPlay.updatePools(rocketPlayAlloc) (#698)
- burnToEarn.syncDeposit(burn2earnAlloc) (#705)
State variables written after the call(s):
- burnReserve += finalFee.mul(fee.burn).div(fee.sell) (#682)
Reentrancy in RocketFi._transferFrom(address,address,uint256) (#544-594):
External calls:
- _swapBack() (#553)
- router.swapExactTokensForETHSupportingFeeOnTransferTokens(amountToSwap,0,path,address(this),block.timestamp) (#722-728)
- poolDistributionGateway.depositBNB{value: amountBNB}() (#733-738)
- rocketPlay.playRocketPools(sender,recipient,transferType,amount) (#559-563)
- amountAfterFee = _getDiscountAndTakeFee(sender,recipient,amount,transferType) (#566)
- rocketPlay.updatePools(rocketPlayAlloc) (#698)
- burnToEarn.syncDeposit(burn2earnAlloc) (#705)
- _setMyRocket(sender,recipient) (#568)
- poolDistributionGateway.setShares(sender,recipient,balancesSender,balancesRecipient) (#625-629)
- _updateBurnToEarnFactors(sender,0,sold) (#575)
- burnToEarn.updateBurnToEarnFactors(_holder,boostID,amountToUpdate) (#769-773)
External calls sending eth:
- _swapBack() (#553)
- poolDistributionGateway.depositBNB{value: amountBNB}() (#733-738)
State variables written after the call(s):
- holder = _updateHolder(address(sender),purchased,sold,interfaces[sender].isMerchant) (#582)
- holders[sender] = holder (#640)
Reentrancy in RocketFi.constructor(address) (#518-535):
External calls:
- pair = IDEXFactory(router.factory()).createPair(router.WETH(),address(this)) (#521)
State variables written after the call(s):
- _allowances[address(this)][address(router)] = _totalSupply (#529)
- approve(_dexRouter,_totalSupply) (#530)
- _allowances[msg.sender][spender] = amount (#1113)
- approve(address(pair),_totalSupply) (#531)
- _allowances[msg.sender][spender] = amount (#1113)
- _balances[msg.sender] = _totalSupply (#533)
- isFeeExempt[msg.sender] = true (#524)
- isTxLimitExempt[msg.sender] = true (#525)
- isTxLimitExempt[_dexRouter] = true (#526)
- isTxLimitExempt[pair] = true (#527)
- liquidityPairs[pair] = true (#522)
Apply the check-effects-interactions pattern.

Additional information: link

RocketFi._maxTxAmount (#472) is set pre-construction with a non-constant function or state variable:
- _totalSupply
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

Function IDEXRouter.WETH() (#289) is not in mixedCase
Parameter RocketFi.getLiquidityBacking(uint256)._accuracy (#891) is not in mixedCase
Parameter RocketFi.isOverLiquified(uint256,uint256)._target (#895) is not in mixedCase
Parameter RocketFi.isOverLiquified(uint256,uint256)._accuracy (#895) is not in mixedCase
Parameter RocketFi.getTotalFee(RocketLibrary.TransferType,uint256,uint256)._transferType (#900) is not in mixedCase
Parameter RocketFi.getTotalFee(RocketLibrary.TransferType,uint256,uint256)._buyDiscount (#900) is not in mixedCase
Parameter RocketFi.getTotalFee(RocketLibrary.TransferType,uint256,uint256)._sellDiscount (#900) is not in mixedCase
Parameter RocketFi.getDiscount(address)._addr (#915) is not in mixedCase
Parameter RocketFi.setNewFees(uint256,uint256,uint256,uint256,uint256,uint256)._sellFee (#932) is not in mixedCase
Parameter RocketFi.setNewFees(uint256,uint256,uint256,uint256,uint256,uint256)._transferFee (#932) is not in mixedCase
Parameter RocketFi.setNewFees(uint256,uint256,uint256,uint256,uint256,uint256)._buyFee (#932) is not in mixedCase
Parameter RocketFi.setNewFees(uint256,uint256,uint256,uint256,uint256,uint256)._burnFee (#932) is not in mixedCase
Parameter RocketFi.setNewFees(uint256,uint256,uint256,uint256,uint256,uint256)._rocketFee (#932) is not in mixedCase
Parameter RocketFi.setNewFees(uint256,uint256,uint256,uint256,uint256,uint256)._burn2earnFee (#932) is not in mixedCase
Parameter RocketFi.setDexRouter(IDEXRouter)._router (#951) is not in mixedCase
Parameter RocketFi.setTxLimit(uint256)._amount (#956) is not in mixedCase
Parameter RocketFi.setContractInteraction(bool)._allowContracts (#961) is not in mixedCase
Parameter RocketFi.setIsFeeExempt(address,bool)._addr (#966) is not in mixedCase
Parameter RocketFi.setIsFeeExempt(address,bool)._exempt (#966) is not in mixedCase
Parameter RocketFi.setIsTxLimitExempt(address,bool)._addr (#971) is not in mixedCase
Parameter RocketFi.setIsTxLimitExempt(address,bool)._exempt (#971) is not in mixedCase
Parameter RocketFi.setLiquidityPair(address,bool)._pair (#976) is not in mixedCase
Parameter RocketFi.setLiquidityPair(address,bool)._value (#976) is not in mixedCase
Parameter RocketFi.setBurnThreshold(uint256)._burnThreshold (#981) is not in mixedCase
Parameter RocketFi.setSwapThreshold(uint256)._swapThreshold (#985) is not in mixedCase
Parameter RocketFi.setRocketExclusions(address,bool,bool,bool,bool)._addr (#990) is not in mixedCase
Parameter RocketFi.setRocketExclusions(address,bool,bool,bool,bool)._excludeRocketPlay (#990) is not in mixedCase
Parameter RocketFi.setRocketExclusions(address,bool,bool,bool,bool)._excludePoolDistributionGateway (#990) is not in mixedCase
Parameter RocketFi.setRocketExclusions(address,bool,bool,bool,bool)._excludeBurnToEarn (#990) is not in mixedCase
Parameter RocketFi.setRocketExclusions(address,bool,bool,bool,bool)._excludeRocketForge (#990) is not in mixedCase
Parameter RocketFi.setInterface(address,bool,uint256,bool)._interfaceAddr (#998) is not in mixedCase
Parameter RocketFi.setInterface(address,bool,uint256,bool)._isInterface (#998) is not in mixedCase
Parameter RocketFi.setInterface(address,bool,uint256,bool)._fee (#998) is not in mixedCase
Parameter RocketFi.setInterface(address,bool,uint256,bool)._isMerchant (#998) is not in mixedCase
Parameter RocketFi.setContractInterfaces(IPoolDistributionGateway,IRocketPlay,IRocketForge,IBurnToEarn)._poolManager (#1005) is not in mixedCase
Parameter RocketFi.setContractInterfaces(IPoolDistributionGateway,IRocketPlay,IRocketForge,IBurnToEarn)._rocketPlay (#1005) is not in mixedCase
Parameter RocketFi.setContractInterfaces(IPoolDistributionGateway,IRocketPlay,IRocketForge,IBurnToEarn)._rocketForge (#1005) is not in mixedCase
Parameter RocketFi.setContractInterfaces(IPoolDistributionGateway,IRocketPlay,IRocketForge,IBurnToEarn)._burnToEarn (#1005) is not in mixedCase
Parameter RocketFi.setRocketContract(address,bool)._rocketContract (#1023) is not in mixedCase
Parameter RocketFi.setRocketContract(address,bool)._enabled (#1023) is not in mixedCase
Parameter RocketFi.setCustomPool(bool)._enableCustomPool (#1028) is not in mixedCase
Parameter RocketFi.transferBNB(address)._to (#1083) is not in mixedCase
Variable RocketFi.DEAD (#455) is not in mixedCase
Constant RocketFi._name (#468) is not in UPPER_CASE_WITH_UNDERSCORES
Constant RocketFi._symbol (#469) is not in UPPER_CASE_WITH_UNDERSCORES
Constant RocketFi._decimals (#470) is not in UPPER_CASE_WITH_UNDERSCORES
Variable RocketFi._totalSupply (#471) is not in mixedCase
Variable RocketFi._maxTxAmount (#472) is not in mixedCase
Variable RocketFi._balances (#475) is not in mixedCase
Variable RocketFi._allowances (#476) is not in mixedCase
Follow the Solidity naming convention.

Additional information: link

Variable IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountADesired (#294) is too similar to IDEXRouter.addLiquidity(address,address,uint256,uint256,uint256,uint256,address,uint256).amountBDesired (#295)
Variable RocketFi._getRocketFee(IERC20,uint256)._rocketPlayFee (#864) is too similar to RocketFi._takeBurnFee(IERC20,uint256,uint256).rocketPlayFees (#797)
Prevent variables from having similar names.

Additional information: link

unauthorize(address) should be declared external:
- Auth.unauthorize(address) (#245-247)
transferOwnership(address) should be declared external:
- Auth.transferOwnership(address) (#266-270)
isOverLiquified(uint256,uint256) should be declared external:
- RocketFi.isOverLiquified(uint256,uint256) (#895-897)
decimals() should be declared external:
- RocketFi.decimals() (#1094-1096)
symbol() should be declared external:
- RocketFi.symbol() (#1097-1099)
name() should be declared external:
- RocketFi.name() (#1100-1102)
getOwner() should be declared external:
- RocketFi.getOwner() (#1103-1105)
Use the external attribute for functions never called from the contract.

Additional information: link

Holders:

Contract has 7% buy tax and 14% sell tax.
Taxes are suspiciously high (over 10%) and 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.


Token is deployed only at one blockchain


Token has only one trading pair

No disclosed threats


BscScan page for the token does not contain additional info: website, socials, description, etc.

Additional information: link


Unable to find KYC or doxxing proof


Token is not listed at Mobula.Finance

Additional information: link


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


Token has no active CoinGecko listing / rank


Young tokens have high risks of price dump / death


Young tokens have high risks of price dump / death

Price for ROCKETFI

News for ROCKETFI