@xoxno/types 1.0.139 → 1.0.140
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.
|
@@ -28,9 +28,11 @@ export declare class LendingAccountProfileDoc {
|
|
|
28
28
|
_ts: number;
|
|
29
29
|
constructor(props?: Partial<LendingAccountProfileDoc>);
|
|
30
30
|
}
|
|
31
|
+
declare const selectFields: readonly ["token", "name", "supplyApy", "borrowApy", "decimals", "reserves", "supplyCap", "borrowCap", "supplyAmount", "siloed", "supplyIndex", "borrowIndex", "rewardsReserve", "maxDebtUsd", "debtCeiling", "isolated", "canBeCollateral", "timestamp", "canBeBorrowed", "canBorrowInIsolation", "extraApy", "flashLoanFee", "utilizationRate", "borrowAmount", "borrowAmountScaled", "supplyAmountScaled", "optimalUsageRate", "slopeRate1", "slopeRate2", "slopeRate3", "midUsageRate", "baseRate", "maxBorrowRate", "reserveFactor"];
|
|
31
32
|
export declare class LendingAccountProfile extends LendingAccountProfileDoc {
|
|
32
33
|
supplyAmount: string;
|
|
33
34
|
borrowAmount: string;
|
|
34
35
|
eModeCategoryProfile?: LendingEModeCategoryProfileDoc;
|
|
35
|
-
marketProfile
|
|
36
|
+
marketProfile: Pick<LendingMarketProfile, (typeof selectFields)[number]>;
|
|
36
37
|
}
|
|
38
|
+
export {};
|
|
@@ -189,6 +189,42 @@ __decorate([
|
|
|
189
189
|
}),
|
|
190
190
|
__metadata("design:type", Number)
|
|
191
191
|
], LendingAccountProfileDoc.prototype, "leverageInitialBorrowPrice", void 0);
|
|
192
|
+
const selectFields = [
|
|
193
|
+
'token',
|
|
194
|
+
'name',
|
|
195
|
+
'supplyApy',
|
|
196
|
+
'borrowApy',
|
|
197
|
+
'decimals',
|
|
198
|
+
'reserves',
|
|
199
|
+
'supplyCap',
|
|
200
|
+
'borrowCap',
|
|
201
|
+
'supplyAmount',
|
|
202
|
+
'siloed',
|
|
203
|
+
'supplyIndex',
|
|
204
|
+
'borrowIndex',
|
|
205
|
+
'rewardsReserve',
|
|
206
|
+
'maxDebtUsd',
|
|
207
|
+
'debtCeiling',
|
|
208
|
+
'isolated',
|
|
209
|
+
'canBeCollateral',
|
|
210
|
+
'timestamp',
|
|
211
|
+
'canBeBorrowed',
|
|
212
|
+
'canBorrowInIsolation',
|
|
213
|
+
'extraApy',
|
|
214
|
+
'flashLoanFee',
|
|
215
|
+
'utilizationRate',
|
|
216
|
+
'borrowAmount',
|
|
217
|
+
'borrowAmountScaled',
|
|
218
|
+
'supplyAmountScaled',
|
|
219
|
+
'optimalUsageRate',
|
|
220
|
+
'slopeRate1',
|
|
221
|
+
'slopeRate2',
|
|
222
|
+
'slopeRate3',
|
|
223
|
+
'midUsageRate',
|
|
224
|
+
'baseRate',
|
|
225
|
+
'maxBorrowRate',
|
|
226
|
+
'reserveFactor',
|
|
227
|
+
];
|
|
192
228
|
class LendingAccountProfile extends LendingAccountProfileDoc {
|
|
193
229
|
}
|
|
194
230
|
exports.LendingAccountProfile = LendingAccountProfile;
|
|
@@ -216,43 +252,7 @@ __decorate([
|
|
|
216
252
|
__decorate([
|
|
217
253
|
(0, swagger_1.ApiProperty)({
|
|
218
254
|
description: 'Lending market partial profile',
|
|
219
|
-
|
|
220
|
-
type: (0, swagger_1.PickType)(lending_market_profile_doc_1.LendingMarketProfile, [
|
|
221
|
-
'token',
|
|
222
|
-
'name',
|
|
223
|
-
'supplyApy',
|
|
224
|
-
'borrowApy',
|
|
225
|
-
'decimals',
|
|
226
|
-
'reserves',
|
|
227
|
-
'supplyCap',
|
|
228
|
-
'borrowCap',
|
|
229
|
-
'supplyAmount',
|
|
230
|
-
'siloed',
|
|
231
|
-
'supplyIndex',
|
|
232
|
-
'borrowIndex',
|
|
233
|
-
'rewardsReserve',
|
|
234
|
-
'maxDebtUsd',
|
|
235
|
-
'debtCeiling',
|
|
236
|
-
'isolated',
|
|
237
|
-
'canBeCollateral',
|
|
238
|
-
'timestamp',
|
|
239
|
-
'canBeBorrowed',
|
|
240
|
-
'canBorrowInIsolation',
|
|
241
|
-
'extraApy',
|
|
242
|
-
'flashLoanFee',
|
|
243
|
-
'utilizationRate',
|
|
244
|
-
'borrowAmount',
|
|
245
|
-
'borrowAmountScaled',
|
|
246
|
-
'supplyAmountScaled',
|
|
247
|
-
'optimalUsageRate',
|
|
248
|
-
'slopeRate1',
|
|
249
|
-
'slopeRate2',
|
|
250
|
-
'slopeRate3',
|
|
251
|
-
'midUsageRate',
|
|
252
|
-
'baseRate',
|
|
253
|
-
'maxBorrowRate',
|
|
254
|
-
'reserveFactor',
|
|
255
|
-
]),
|
|
255
|
+
type: (0, swagger_1.PickType)(lending_market_profile_doc_1.LendingMarketProfile, selectFields),
|
|
256
256
|
}),
|
|
257
257
|
__metadata("design:type", Object)
|
|
258
258
|
], LendingAccountProfile.prototype, "marketProfile", void 0);
|