Function calculateReferencePriceOffset
- calculateReferencePriceOffset(reservePrice: BN, last24hAvgFundingRate: BN, liquidityFraction: BN, oracleTwapFast: BN, markTwapFast: BN, oracleTwapSlow: BN, markTwapSlow: BN, maxOffsetPct: number): BN
-
Parameters
-
reservePrice: BN
-
last24hAvgFundingRate: BN
-
liquidityFraction: BN
-
oracleTwapFast: BN
-
markTwapFast: BN
-
oracleTwapSlow: BN
-
markTwapSlow: BN
-
maxOffsetPct: number
Returns BN