Funding

Funding Rates

Bluefin computes the funding rate following the following formula:

Funding Rate=(TWA(Pmarket)TWA(Pindex)1)/24,\text{Funding Rate} = \bigg(\frac{\text{TWA}(P_{\text{market}})}{\text{TWA}(P_{\text{index}})}-1\bigg)/24,

where TWA is the time-weighted average, the index price is the aggregated price of the base asset in the spot market, and the market price is a median of the last trade price, the best bid and best ask,

Pmarket=mean(Best Bid, Best Ask).P_{\text{market}} = mean(\text{Best Bid, Best Ask}).

The prices are snapshotted every minute. At the end of each hour, the rate is calculated as an average (TWA) of the 60 values calculated over the course of the last hour. The funding rate has an absolute value hourly cap of 0.1%.

Funding Payments

Funding Payments are accumulated at every hour's end and settled at the time of every account action, i.e., when trading, managing margin, or changing leverage. For each hour, funding payments are proportional to the position's notional value using the oracle price and the hourly funding rate.

\text{Hourly Funding Payment} = \text{Position Notional Value} \times \text{Funding Rate}\

If the Funding Rate is positive, long position holders pay short position holders, and vice versa if the Rate is negative. The mechanism incentivizes the convergence of mid-market price towards the index price.

Last updated