@carrot-protocol/boost-http-client 0.2.3-withdraw-jlp-dev-6905a38 → 0.2.3-withdraw-jlp-dev-5e0df6b

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
@@ -153,7 +154,7 @@ class Client {
153
154
  clendGroup: new anchor_1.web3.PublicKey(event.clendGroup),
154
155
  bank: event.bank ? new anchor_1.web3.PublicKey(event.bank) : null,
155
156
  mint: event.mint ? new anchor_1.web3.PublicKey(event.mint) : null,
156
- amount: event.amount ? new anchor_1.BN(event.amount, "hex") : null,
157
+ amount: event.amount ? new anchor_1.BN(event.amount) : null,
157
158
  closeBalance,
158
159
  };
159
160
  events.push(clendAccountEvent);
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-6905a38",
3
+ "version": "0.2.3-withdraw-jlp-dev-5e0df6b",
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
 
@@ -188,7 +191,7 @@ export class Client {
188
191
  clendGroup: new web3.PublicKey(event.clendGroup),
189
192
  bank: event.bank ? new web3.PublicKey(event.bank) : null,
190
193
  mint: event.mint ? new web3.PublicKey(event.mint) : null,
191
- amount: event.amount ? new BN(event.amount, "hex") : null,
194
+ amount: event.amount ? new BN(event.amount) : null,
192
195
  closeBalance,
193
196
  };
194
197
  events.push(clendAccountEvent);
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