Function calculateWorstCasePerpLiabilityValue
- calculateWorstCasePerpLiabilityValue(perpPosition: PerpPosition, perpMarket: PerpMarketAccount, oraclePrice: BN): {
worstCaseBaseAssetAmount: BN;
worstCaseLiabilityValue: BN;
}
-
Returns {
worstCaseBaseAssetAmount: BN;
worstCaseLiabilityValue: BN;
}
-
worstCaseBaseAssetAmount: BN
-
worstCaseLiabilityValue: BN