@carrot-protocol/boost-http-client 0.2.15-group-refactor1-dev-8bcd756 → 0.2.15-group-refactor1-dev-d9350a8
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 -2
- package/dist/types.d.ts +2 -2
- package/package.json +2 -2
- package/src/index.ts +4 -4
- package/src/types.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -199,6 +199,8 @@ class Client {
|
|
|
199
199
|
liabilityBalanceUi: Number(b.liabilityBalanceUi),
|
|
200
200
|
liabilityValue: Number(b.liabilityValue),
|
|
201
201
|
price: Number(b.price),
|
|
202
|
+
liquidationPrice: Number(b.liquidationPrice),
|
|
203
|
+
liquidationPriceChangePercentage: Number(b.liquidationPriceChangePercentage),
|
|
202
204
|
});
|
|
203
205
|
}
|
|
204
206
|
// create clend account
|
|
@@ -213,8 +215,6 @@ class Client {
|
|
|
213
215
|
healthFactorRiskAdjusted: Number(ca.healthFactorRiskAdjusted),
|
|
214
216
|
notionalLeverage: Number(ca.notionalLeverage),
|
|
215
217
|
riskAdjustedLeverage: Number(ca.riskAdjustedLeverage),
|
|
216
|
-
liquidationPrice: Number(ca.liquidationPrice),
|
|
217
|
-
liquidationPriceChangePercentage: Number(ca.liquidationPriceChangePercentage),
|
|
218
218
|
notionalLtv: Number(ca.notionalLtv),
|
|
219
219
|
riskAdjustedLtv: Number(ca.riskAdjustedLtv),
|
|
220
220
|
};
|
package/dist/types.d.ts
CHANGED
|
@@ -95,8 +95,6 @@ export interface ClendAccount {
|
|
|
95
95
|
healthFactorRiskAdjusted: number;
|
|
96
96
|
notionalLeverage: number;
|
|
97
97
|
riskAdjustedLeverage: number;
|
|
98
|
-
liquidationPrice: number;
|
|
99
|
-
liquidationPriceChangePercentage: number;
|
|
100
98
|
notionalLtv: number;
|
|
101
99
|
riskAdjustedLtv: number;
|
|
102
100
|
}
|
|
@@ -110,6 +108,8 @@ export interface ClendAccountBalance {
|
|
|
110
108
|
liabilityBalanceUi: number;
|
|
111
109
|
liabilityValue: number;
|
|
112
110
|
price: number;
|
|
111
|
+
liquidationPrice: number;
|
|
112
|
+
liquidationPriceChangePercentage: number;
|
|
113
113
|
}
|
|
114
114
|
export interface GetBankResponse {
|
|
115
115
|
bank: Bank;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carrot-protocol/boost-http-client",
|
|
3
|
-
"version": "0.2.15-group-refactor1-dev-
|
|
3
|
+
"version": "0.2.15-group-refactor1-dev-d9350a8",
|
|
4
4
|
"description": "HTTP client for Carrot Boost",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"@coral-xyz/anchor": "^0.29.0",
|
|
17
|
-
"@carrot-protocol/clend-common": "0.1.
|
|
17
|
+
"@carrot-protocol/clend-common": "0.1.8-group-refactor1-dev-cb4b228",
|
|
18
18
|
"axios": "^1.8.3",
|
|
19
19
|
"bs58": "^6.0.0",
|
|
20
20
|
"decimal.js": "^10.5.0"
|
package/src/index.ts
CHANGED
|
@@ -222,6 +222,10 @@ export class Client {
|
|
|
222
222
|
liabilityBalanceUi: Number(b.liabilityBalanceUi),
|
|
223
223
|
liabilityValue: Number(b.liabilityValue),
|
|
224
224
|
price: Number(b.price),
|
|
225
|
+
liquidationPrice: Number(b.liquidationPrice),
|
|
226
|
+
liquidationPriceChangePercentage: Number(
|
|
227
|
+
b.liquidationPriceChangePercentage,
|
|
228
|
+
),
|
|
225
229
|
});
|
|
226
230
|
}
|
|
227
231
|
|
|
@@ -239,10 +243,6 @@ export class Client {
|
|
|
239
243
|
),
|
|
240
244
|
notionalLeverage: Number((ca as any).notionalLeverage),
|
|
241
245
|
riskAdjustedLeverage: Number((ca as any).riskAdjustedLeverage),
|
|
242
|
-
liquidationPrice: Number((ca as any).liquidationPrice),
|
|
243
|
-
liquidationPriceChangePercentage: Number(
|
|
244
|
-
(ca as any).liquidationPriceChangePercentage,
|
|
245
|
-
),
|
|
246
246
|
notionalLtv: Number((ca as any).notionalLtv),
|
|
247
247
|
riskAdjustedLtv: Number((ca as any).riskAdjustedLtv),
|
|
248
248
|
};
|
package/src/types.ts
CHANGED
|
@@ -109,8 +109,6 @@ export interface ClendAccount {
|
|
|
109
109
|
healthFactorRiskAdjusted: number;
|
|
110
110
|
notionalLeverage: number;
|
|
111
111
|
riskAdjustedLeverage: number;
|
|
112
|
-
liquidationPrice: number;
|
|
113
|
-
liquidationPriceChangePercentage: number;
|
|
114
112
|
notionalLtv: number;
|
|
115
113
|
riskAdjustedLtv: number;
|
|
116
114
|
}
|
|
@@ -125,6 +123,8 @@ export interface ClendAccountBalance {
|
|
|
125
123
|
liabilityBalanceUi: number;
|
|
126
124
|
liabilityValue: number;
|
|
127
125
|
price: number;
|
|
126
|
+
liquidationPrice: number;
|
|
127
|
+
liquidationPriceChangePercentage: number;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
export interface GetBankResponse {
|