hats-finance / Blast-Futures-Exchange-0x97895c329b950755566ddcdad3395caaea395074

0 stars 0 forks source link

There is no way to claim yield and gas revenue of the contracts on Blast #25

Open hats-bug-reporter[bot] opened 9 months ago

hats-bug-reporter[bot] commented 9 months ago

Github username: @0xfuje Twitter username: 0xfuje Submission hash (on-chain): 0x57ca76c7e1626421f0846687c35c55f85a5b463faff815e26a3d7b64145acc47 Severity: medium

Description:

Impact

Loss of gas revenue of the contracts and loss of native yield of deposited user funds of BlastFutures contracts.

Description

The contracts are going to be deployed on Blast. The core value proposition of Blast is yield natively. The chain is different from other L2s in this aspect and archives this via unique features such as yield claiming or auto-rebasing tokens and gas revenue sharing. The problem is there are no functions implemented to make use of these benefits of Blast so the contracts can never opt-in after deployment to use them because they have to be configured and enabled first.

By default the gas revenue goes to the sequencer and native yield can not be claimed on WETH / USDB. These features have to be configured and claimed manually from the contracts.

Recommendation

Consider to implement claiming yield and gas revenue on the contract level. To understand these features better I recommend to read the FAQ section of Blast's documentation that explains how to claim yield and gas fees and the following relevant contracts.

FAQ:

Contracts:

alex-sumner commented 9 months ago

Automatic USDB rebasing is enabled by default for both contracts and EOAs, see https://docs.blast.io/building/guides/weth-yield

Background note: at the time of writing of the current contracts, USDB rebasing was not implemented on blast-sepolia. Redistribution of yield to users is planned for a future version of the contract.