@carrot-protocol/boost-http-client 0.2.1 → 0.2.2-more-math-dev-135409c

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.
package/dist/index.js CHANGED
@@ -129,6 +129,7 @@ class Client {
129
129
  healthFactorRiskAdjusted: Number(jsonRawResponse.clendAccount.healthFactorRiskAdjusted),
130
130
  notionalLeverage: Number(jsonRawResponse.clendAccount.notionalLeverage),
131
131
  riskAdjustedLeverage: Number(jsonRawResponse.clendAccount.riskAdjustedLeverage),
132
+ liquidationPrice: Number(jsonRawResponse.clendAccount.liquidationPrice),
132
133
  };
133
134
  // get events for account
134
135
  const events = [];
package/dist/types.d.ts CHANGED
@@ -75,6 +75,7 @@ export interface ClendAccount {
75
75
  healthFactorRiskAdjusted: number;
76
76
  notionalLeverage: number;
77
77
  riskAdjustedLeverage: number;
78
+ liquidationPrice: number;
78
79
  }
79
80
  export interface Balance {
80
81
  mint: web3.PublicKey;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carrot-protocol/boost-http-client",
3
- "version": "0.2.1",
3
+ "version": "0.2.2-more-math-dev-135409c",
4
4
  "description": "HTTP client for Carrot Boost API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -159,6 +159,7 @@ export class Client {
159
159
  riskAdjustedLeverage: Number(
160
160
  jsonRawResponse.clendAccount.riskAdjustedLeverage,
161
161
  ),
162
+ liquidationPrice: Number(jsonRawResponse.clendAccount.liquidationPrice),
162
163
  };
163
164
 
164
165
  // get events for account
package/src/types.ts CHANGED
@@ -88,6 +88,7 @@ export interface ClendAccount {
88
88
  healthFactorRiskAdjusted: number;
89
89
  notionalLeverage: number;
90
90
  riskAdjustedLeverage: number;
91
+ liquidationPrice: number;
91
92
  }
92
93
 
93
94
  export interface Balance {