Butter.xyz Docs
  • Welcome
  • Butter Swap
    • Introduction
    • Getting Started
    • Swapping Tokens
    • Providing Liquidity
    • Fee Structure
    • Security Best Practices
    • Contract Addresses
    • Audits
  • Rewards
    • Overview
    • Points
    • Fishing
      • Fishing Staking
  • Bakery on Blast
    • The Bakery
    • Contract Addresses
  • Butter Perps
    • Introduction
    • Disclaimer
    • Getting Access
    • How To Trade
      • Deposit & Withdrawal
      • Perpetuals
        • Timed Perpetuals
          • Community Timed Perpetuals
      • Spot Trading
      • Liquidity Pool
    • Learn more
      • Cross-margin leverage
      • Security
    • Perpetuals Deep Dive
      • vAMM
      • Index price
      • Price limits
      • Fees
      • Funding
        • Timed Perps
      • Risk
        • Position limits
        • Margin and collateral
        • Liquidations
        • Auto deleveraging
      • AMM pool adjustments
      • Insurance fund
      • Collateral NFTs
  • Governance and Tokenomics
  • About Butter.xyz
  • API
    • Private Beta
  • Official links
    • Website
    • Twitter
    • Discord
    • Telegram
Powered by GitBook
On this page
  1. Butter Perps
  2. Perpetuals Deep Dive

Funding

PreviousFeesNextTimed Perps

Last updated 1 year ago

Funding is a mechanism in perpetual swaps that helps keep the price in the perpetual market close to the price in the underlying (spot) market. When the mark price exceeds the index price, longs pay shorts, and when the mark price is lower than the index price, shorts pay longs.

Please note that some perpetual markets on Butter.xyz do not have funding events, and Butter.xyz may enable or disable funding events on any market at any time.

Funding event frequency

For every market, funding events occur every hour.

Funding payments

The size of the funding payments is the funding rate times the notional size (ETH value).

Funding rates

The base funding rate rrr is the 1-hour TWAP, evaluated every minute, of the premium of the mark price over the index price.

r=196∗TWAPmark−indexTWAPmarkr = \frac{1}{96} *\frac{TWAP_{mark - index}}{TWAP_{mark} }r=961​∗TWAPmark​TWAPmark−index​​

The funding rate for longs, rLr_LrL​, can differ from the funding rate for shorts, rSr_SrS​. The following table shows the funding rate calculation under different conditions.

Define fLf_LfL​ as the fraction of open positions that are long, and fSf_SfS​ as the fraction of open positions that are short. (fL+fS=1f_L + f_S = 1fL​+fS​=1)

vAMM skew
Mark-index premium
Funding rate

Mark > index

Mark < index

Mark > index

Mark < index

The purpose of asymmetric funding rates is to preserve the vAMM fee pool during periods that are unfavorable to the fee pool.

The minimum funding rate is 0.0001%; if the funding rate determined by the above formula is below the minimum funding rate, no funding payments will occur.

In addition, in cases where funding is paid from the fee pool, funding rates are capped to limit the cost to at most 10% of the fee pool.

More longs than shorts ()

More shorts than longs ()

fL>fSf_L > f_SfL​>fS​
rL=rrS=−rr_L =r\newline r_S = -rrL​=rrS​=−r
rL=(0.15+1.7∗fS)∗rrS=−(0.15+1.7∗fL)∗rr_L = (0.15 + 1.7*f_S)* r \newline r_S = -(0.15 + 1.7*f_L) * rrL​=(0.15+1.7∗fS​)∗rrS​=−(0.15+1.7∗fL​)∗r
fS>fLf_S > f_LfS​>fL​
rL=(0.15+1.7∗fS)∗rrS=−(0.15+1.7∗fL)∗rr_L = (0.15 + 1.7*f_S)* r \newline r_S = -(0.15 + 1.7*f_L) * rrL​=(0.15+1.7∗fS​)∗rrS​=−(0.15+1.7∗fL​)∗r
rL=rrS=−rr_L =r\newline r_S = -rrL​=rrS​=−r