@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 +2 -1
- package/dist/types.d.ts +1 -0
- package/package.json +1 -1
- package/src/index.ts +4 -1
- package/src/types.ts +1 -0
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
|
|
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
package/package.json
CHANGED
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
|
|
194
|
+
amount: event.amount ? new BN(event.amount) : null,
|
|
192
195
|
closeBalance,
|
|
193
196
|
};
|
|
194
197
|
events.push(clendAccountEvent);
|