Bluefin
  • Bluefin Exchange
    • Introduction
    • Roadmap
    • Getting Started
      • Onboarding
      • Depositing & Set Up
      • Tutorials
      • Perpetual Swaps
    • Trading
      • Order Types
        • TP/SL Orders
      • Orderbook Design
      • Isolated Margining
      • PnL Calculation
      • Oracle and Index Price
      • Risk Engine
        • Liquidation Process
        • Insurance Fund
        • ADL
      • Funding
      • Trading Fees
      • Gas Fees
      • Contract Specs
    • Perps API Docs
    • Pre-Launch Markets
  • Bluefin Spot CLMM
    • Introduction
    • Getting Started
    • Protocol Features
      • Swap
        • Limit Orders
      • Liquidity Pools
    • BluefinX
    • Tutorials
      • Exploring the Pools
      • Adding Liquidity (Creating a Position)
      • Managing a Position and Claiming Fees/Rewards
      • Auto-Rebalancing
      • Swapping
      • Placing Limit Orders
      • Switching from Spot to Perps Account
    • Spot API Docs
    • FAQs
  • Lending on Bluefin
    • Introduction
    • Protocol Features
    • Tutorials
      • Supply and Borrow Assets
  • Bluefin Airdrop
    • Bluefin Airdrop Explained
    • Bluefin Foundation Statement
    • Claiming and Rewards Post-TGE
    • FAQs
  • Users
    • Rewards
      • Trading Rewards
      • Bluefin Vaults
      • Leagues
      • Sui Wallet on Mobile Giveaway
      • Sui Wallet Campaign
        • List of Winners
      • Walrus Campaigns
        • Walrus LP & Trading Competition
        • Walrus Trade & Earn Campaign
  • Other
    • BLUE Token
    • On-Ramping directly to Bluefin
    • Security
      • Code Audits
      • Spot Audits
    • Governance
      • Bluefin DAO
    • Bluefin Vanguard Ambassador Program
    • Terms of Use and Privacy Policy
      • Vulnerability Disclosure Policy
      • Wash Trading
      • Address Screening
      • Risk Information
    • FAQs
      • USD vs USDC
Powered by GitBook
On this page
  • Funding Rates
  • Funding Payments
  1. Bluefin Exchange
  2. Trading

Funding

PreviousADLNextTrading Fees

Last updated 1 year ago

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,Funding Rate=(TWA(Pindex​)TWA(Pmarket​)​−1)/24,

where TWA is the time-weighted average, the 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}).Pmarket​=mean(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.

index