@carrot-protocol/boost-http-client 0.2.1 → 0.2.2-more-math-dev-0eb87da

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,8 @@ 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),
133
+ ltv: Number(jsonRawResponse.clendAccount.ltv),
132
134
  };
133
135
  // get events for account
134
136
  const events = [];
package/dist/types.d.ts CHANGED
@@ -75,6 +75,8 @@ export interface ClendAccount {
75
75
  healthFactorRiskAdjusted: number;
76
76
  notionalLeverage: number;
77
77
  riskAdjustedLeverage: number;
78
+ liquidationPrice: number;
79
+ ltv: number;
78
80
  }
79
81
  export interface Balance {
80
82
  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-0eb87da",
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,8 @@ export class Client {
159
159
  riskAdjustedLeverage: Number(
160
160
  jsonRawResponse.clendAccount.riskAdjustedLeverage,
161
161
  ),
162
+ liquidationPrice: Number(jsonRawResponse.clendAccount.liquidationPrice),
163
+ ltv: Number(jsonRawResponse.clendAccount.ltv),
162
164
  };
163
165
 
164
166
  // get events for account
package/src/types.ts CHANGED
@@ -88,6 +88,8 @@ export interface ClendAccount {
88
88
  healthFactorRiskAdjusted: number;
89
89
  notionalLeverage: number;
90
90
  riskAdjustedLeverage: number;
91
+ liquidationPrice: number;
92
+ ltv: number;
91
93
  }
92
94
 
93
95
  export interface Balance {