🍧Funding and Pricing
funding mark
ImpactMid = (avgImpactBid(ImpactNotional) + avgImpactAsk(ImpactNotional)) / 2computed every
TickIntervalset to
5seconds
avgImpactBid,avgImpactAskare average cost per contract when buying/sellingImpactNotionalworth of contractsImpactNotionalis in the base asset (usually USDB)for large pairs set to
$10,000to$100,000for small pairs set to
$1,000to$10,000
FundingMark = ema(ImpactMids, Weight)computed every
TickIntervalemais exponential moving averageWeightis the EMA weightingset to
2 / 7
ImpactMidsis list of previousImpactMideveryTickInterval
funding rate
Premium = (twap(FundingMarks) - twap(Indexs)) / Indexcomputed every
SettleIntervalset to
1hour
Indexis oracle pricestork oracle
for prelaunch perpetuals, it is a computed value
twapis time weighted average priceFundingMarksis list of previousFundingMarkover the lastSettleIntervalIndexsis list of previousIndexover the lastSettleInterval
Premiumis considered as an amount perFundingIntervalset to
8hours
FundingRate = BaseRate + clamp(Premium / (FundingInterval / SettleInterval), -Clamp, Clamp)computed every
SettleIntervalBaseRateis underlying interest rate of perpetual future perSettleIntervalset to
0
clamp(a, y, z)clampsabetweenyandzdefined as
aify < a < zyifa ≤ yzifz ≤ a
Clampis maximum magnitude funding can take (before underlying interest) perSettleIntervalset to
0.005 = 0.5%
FundingRateis considered as an amount perSettleInterval
funding amount
FundingAmount = FundingRate * Indexcomputed every
SettleIntervalthe
FundingAmountis the notional amount longs pay shorts per contract perSettleInterval
Note: Funding settlement occurs every SettleInterval. No settlement occurs at open/close of positions.
Last updated