@carrot-protocol/boost-http-client 0.2.3-withdraw-jlp-dev-a8ece5c → 0.2.3

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
@@ -132,6 +132,7 @@ class Client {
132
132
  notionalLeverage: Number(jsonRawResponse.clendAccount.notionalLeverage),
133
133
  riskAdjustedLeverage: Number(jsonRawResponse.clendAccount.riskAdjustedLeverage),
134
134
  liquidationPrice: Number(jsonRawResponse.clendAccount.liquidationPrice),
135
+ liquidationPriceChangePercentage: Number(jsonRawResponse.clendAccount.liquidationPriceChangePercentage),
135
136
  ltv: Number(jsonRawResponse.clendAccount.ltv),
136
137
  };
137
138
  // get events for account
package/dist/types.d.ts CHANGED
@@ -80,6 +80,7 @@ export interface ClendAccount {
80
80
  notionalLeverage: number;
81
81
  riskAdjustedLeverage: number;
82
82
  liquidationPrice: number;
83
+ liquidationPriceChangePercentage: number;
83
84
  ltv: number;
84
85
  }
85
86
  export interface Balance {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carrot-protocol/boost-http-client",
3
- "version": "0.2.3-withdraw-jlp-dev-a8ece5c",
3
+ "version": "0.2.3",
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
@@ -165,6 +165,9 @@ export class Client {
165
165
  jsonRawResponse.clendAccount.riskAdjustedLeverage,
166
166
  ),
167
167
  liquidationPrice: Number(jsonRawResponse.clendAccount.liquidationPrice),
168
+ liquidationPriceChangePercentage: Number(
169
+ jsonRawResponse.clendAccount.liquidationPriceChangePercentage,
170
+ ),
168
171
  ltv: Number(jsonRawResponse.clendAccount.ltv),
169
172
  };
170
173
 
package/src/types.ts CHANGED
@@ -94,6 +94,7 @@ export interface ClendAccount {
94
94
  notionalLeverage: number;
95
95
  riskAdjustedLeverage: number;
96
96
  liquidationPrice: number;
97
+ liquidationPriceChangePercentage: number;
97
98
  ltv: number;
98
99
  }
99
100