Funding and Pricing
funding mark
ImpactMid = (avgImpactBid(ImpactNotional) + avgImpactAsk(ImpactNotional)) / 2
computed every
TickInterval
set to
5
seconds
avgImpactBid
,avgImpactAsk
are average cost per contract when buying/sellingImpactNotional
worth of contractsImpactNotional
is in the base asset (usually USDB)for large pairs set to
$10,000
to$100,000
for small pairs set to
$1,000
to$10,000
FundingMark = ema(ImpactMids, Weight)
computed every
TickInterval
ema
is exponential moving averageWeight
is the EMA weightingset to
2 / 7
ImpactMids
is list of previousImpactMid
everyTickInterval
funding rate
Premium = (twap(FundingMarks) - twap(Indexs)) / Index
computed every
SettleInterval
set to
1
hour
Index
is oracle pricestork oracle
for prelaunch perpetuals, it is a computed value
twap
is time weighted average priceFundingMarks
is list of previousFundingMark
over the lastSettleInterval
Indexs
is list of previousIndex
over the lastSettleInterval
Premium
is considered as an amount perFundingInterval
set to
8
hours
FundingRate = BaseRate + clamp(Premium / (FundingInterval / SettleInterval), -Clamp, Clamp)
computed every
SettleInterval
BaseRate
is underlying interest rate of perpetual future perSettleInterval
set to
0
clamp(a, y, z)
clampsa
betweeny
andz
defined as
a
ify < a < z
y
ifa ≤ y
z
ifz ≤ a
Clamp
is maximum magnitude funding can take (before underlying interest) perSettleInterval
set to
0.005 = 0.5%
FundingRate
is considered as an amount perSettleInterval
funding amount
FundingAmount = FundingRate * Index
computed every
SettleInterval
the
FundingAmount
is the notional amount longs pay shorts per contract perSettleInterval
Last updated