@bulletxyz/bullet-sdk 0.17.3-rc.3 → 0.17.3-rc.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9443,6 +9443,15 @@ function calculateLiquidationRiskPercentage(userAccount, marginContext) {
9443
9443
  );
9444
9444
  return new decimal_default(result);
9445
9445
  }
9446
+ function calculateForceCloseRiskPercentage(userAccount, marginContext) {
9447
+ const userAccountObject = serialize(userAccount);
9448
+ const marginContextObject = serialize(marginContext);
9449
+ const result = BulletWasm.calculate_force_close_risk_percentage(
9450
+ userAccountObject,
9451
+ marginContextObject
9452
+ );
9453
+ return new decimal_default(result);
9454
+ }
9446
9455
  function calculateMaxBorrowAmount(assetId, userAccount, marginContext) {
9447
9456
  const userAccountObject = serialize(userAccount);
9448
9457
  const marginContextObject = serialize(marginContext);
@@ -9542,6 +9551,7 @@ export {
9542
9551
  calculateBorrowLendMarketAdditionalMetadata,
9543
9552
  calculateEntryPrice,
9544
9553
  calculateEstimatedLiquidationPrice,
9554
+ calculateForceCloseRiskPercentage,
9545
9555
  calculateLiquidationRiskPercentage,
9546
9556
  calculateMaxBorrowAmount,
9547
9557
  calculateMaxOrderSize,