Function calculateEffectiveLeverage
- calculateEffectiveLeverage(baseSpread: number, quoteAssetReserve: BN, terminalQuoteAssetReserve: BN, pegMultiplier: BN, netBaseAssetAmount: BN, reservePrice: BN, totalFeeMinusDistributions: BN): number
-
Parameters
-
baseSpread: number
-
quoteAssetReserve: BN
-
terminalQuoteAssetReserve: BN
-
pegMultiplier: BN
-
netBaseAssetAmount: BN
-
reservePrice: BN
-
totalFeeMinusDistributions: BN
Returns number