@xoxno/types 1.0.207 → 1.0.209
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/cosmos-db/documents/lending/lending-account-profile.d.ts +1 -7
- package/dist/cosmos-db/documents/lending/lending-account-profile.js +1 -63
- package/dist/cosmos-db/documents/lending/lending-market-profile.doc.d.ts +0 -3
- package/dist/cosmos-db/documents/lending/lending-market-profile.doc.js +0 -14
- package/dist/requests/lending/lending-market-profile.filter.js +0 -2
- package/package.json +1 -1
|
@@ -14,8 +14,6 @@ export declare class LendingAccountProfileDoc {
|
|
|
14
14
|
token: string;
|
|
15
15
|
supplyAmountScaled: string;
|
|
16
16
|
borrowAmountScaled: string;
|
|
17
|
-
supplyIndex: number;
|
|
18
|
-
borrowIndex: number;
|
|
19
17
|
entryLiquidationThreshold: string;
|
|
20
18
|
entryLiquidationBonus: string;
|
|
21
19
|
entryLiquidationFee: string;
|
|
@@ -24,17 +22,13 @@ export declare class LendingAccountProfileDoc {
|
|
|
24
22
|
positionMode: PositionMode;
|
|
25
23
|
eModeCategory?: string;
|
|
26
24
|
address: string;
|
|
27
|
-
leverageInitialSupply?: number;
|
|
28
|
-
leverageInitialSupplyPrice?: number;
|
|
29
|
-
leverageInitialBorrow?: number;
|
|
30
|
-
leverageInitialBorrowPrice?: number;
|
|
31
25
|
initialPaymentMultiplier?: InitialPaymentMultiplier;
|
|
32
26
|
id: string;
|
|
33
27
|
pk: string;
|
|
34
28
|
_ts: number;
|
|
35
29
|
constructor(props?: Partial<LendingAccountProfileDoc>);
|
|
36
30
|
}
|
|
37
|
-
declare const selectFields: readonly ["token", "name", "supplyApy", "borrowApy", "decimals", "reserves", "supplyCap", "borrowCap", "supplyAmount", "supplyAmountScaled", "borrowAmountScaled", "ltv", "liquidationThreshold", "liquidationBonus", "liquidationFee", "siloed", "
|
|
31
|
+
declare const selectFields: readonly ["token", "name", "supplyApy", "borrowApy", "decimals", "reserves", "supplyCap", "borrowCap", "supplyAmount", "supplyAmountScaled", "borrowAmountScaled", "ltv", "liquidationThreshold", "liquidationBonus", "liquidationFee", "siloed", "rewardsReserve", "maxDebtUsd", "debtCeiling", "isolated", "canBeCollateral", "timestamp", "canBeBorrowed", "canBorrowInIsolation", "extraApy", "flashLoanFee", "utilizationRate", "borrowAmount", "optimalUsageRate", "slopeRate1", "slopeRate2", "slopeRate3", "midUsageRate", "baseRate", "maxBorrowRate", "reserveFactor", "address", "flashLoan", "oracleProvider", "indexes"];
|
|
38
32
|
export declare class LendingAccountProfile extends LendingAccountProfileDoc {
|
|
39
33
|
supplyAmount: string;
|
|
40
34
|
borrowAmount: string;
|
|
@@ -44,8 +44,6 @@ class LendingAccountProfileDoc {
|
|
|
44
44
|
this.dataType = lending_data_type_enum_1.LendingDataType.ACCOUNT_PROFILE;
|
|
45
45
|
this.supplyAmountScaled = '0';
|
|
46
46
|
this.borrowAmountScaled = '0';
|
|
47
|
-
this.supplyIndex = 0;
|
|
48
|
-
this.borrowIndex = 0;
|
|
49
47
|
Object.assign(this, props);
|
|
50
48
|
this.pk = this.dataType;
|
|
51
49
|
this.id = `${this.identifier}_${this.token}`;
|
|
@@ -95,20 +93,6 @@ __decorate([
|
|
|
95
93
|
}),
|
|
96
94
|
__metadata("design:type", Object)
|
|
97
95
|
], LendingAccountProfileDoc.prototype, "borrowAmountScaled", void 0);
|
|
98
|
-
__decorate([
|
|
99
|
-
(0, swagger_1.ApiProperty)({
|
|
100
|
-
description: 'Supply index',
|
|
101
|
-
example: 0,
|
|
102
|
-
}),
|
|
103
|
-
__metadata("design:type", Object)
|
|
104
|
-
], LendingAccountProfileDoc.prototype, "supplyIndex", void 0);
|
|
105
|
-
__decorate([
|
|
106
|
-
(0, swagger_1.ApiProperty)({
|
|
107
|
-
description: 'Borrow index',
|
|
108
|
-
example: 0,
|
|
109
|
-
}),
|
|
110
|
-
__metadata("design:type", Object)
|
|
111
|
-
], LendingAccountProfileDoc.prototype, "borrowIndex", void 0);
|
|
112
96
|
__decorate([
|
|
113
97
|
(0, swagger_1.ApiProperty)({
|
|
114
98
|
description: 'Entry liquidation threshold',
|
|
@@ -169,50 +153,6 @@ __decorate([
|
|
|
169
153
|
}),
|
|
170
154
|
__metadata("design:type", String)
|
|
171
155
|
], LendingAccountProfileDoc.prototype, "address", void 0);
|
|
172
|
-
__decorate([
|
|
173
|
-
(0, swagger_1.ApiProperty)({
|
|
174
|
-
description: 'Initial strategy values',
|
|
175
|
-
example: {
|
|
176
|
-
leverageInitialSupply: '1000',
|
|
177
|
-
leverageInitialSupplyPrice: '1000',
|
|
178
|
-
},
|
|
179
|
-
required: false,
|
|
180
|
-
}),
|
|
181
|
-
__metadata("design:type", Number)
|
|
182
|
-
], LendingAccountProfileDoc.prototype, "leverageInitialSupply", void 0);
|
|
183
|
-
__decorate([
|
|
184
|
-
(0, swagger_1.ApiProperty)({
|
|
185
|
-
description: 'Initial strategy values',
|
|
186
|
-
example: {
|
|
187
|
-
leverageInitialSupply: '1000',
|
|
188
|
-
leverageInitialSupplyPrice: '1000',
|
|
189
|
-
},
|
|
190
|
-
required: false,
|
|
191
|
-
}),
|
|
192
|
-
__metadata("design:type", Number)
|
|
193
|
-
], LendingAccountProfileDoc.prototype, "leverageInitialSupplyPrice", void 0);
|
|
194
|
-
__decorate([
|
|
195
|
-
(0, swagger_1.ApiProperty)({
|
|
196
|
-
description: 'Initial strategy values',
|
|
197
|
-
example: {
|
|
198
|
-
leverageInitialBorrow: '1000',
|
|
199
|
-
leverageInitialBorrowPrice: '1000',
|
|
200
|
-
},
|
|
201
|
-
required: false,
|
|
202
|
-
}),
|
|
203
|
-
__metadata("design:type", Number)
|
|
204
|
-
], LendingAccountProfileDoc.prototype, "leverageInitialBorrow", void 0);
|
|
205
|
-
__decorate([
|
|
206
|
-
(0, swagger_1.ApiProperty)({
|
|
207
|
-
description: 'Initial strategy values',
|
|
208
|
-
example: {
|
|
209
|
-
leverageInitialBorrow: '1000',
|
|
210
|
-
leverageInitialBorrowPrice: '1000',
|
|
211
|
-
},
|
|
212
|
-
required: false,
|
|
213
|
-
}),
|
|
214
|
-
__metadata("design:type", Number)
|
|
215
|
-
], LendingAccountProfileDoc.prototype, "leverageInitialBorrowPrice", void 0);
|
|
216
156
|
__decorate([
|
|
217
157
|
(0, swagger_1.ApiProperty)({
|
|
218
158
|
description: 'Initial payment multiplier',
|
|
@@ -259,8 +199,6 @@ const selectFields = [
|
|
|
259
199
|
'liquidationBonus',
|
|
260
200
|
'liquidationFee',
|
|
261
201
|
'siloed',
|
|
262
|
-
'supplyIndex',
|
|
263
|
-
'borrowIndex',
|
|
264
202
|
'rewardsReserve',
|
|
265
203
|
'maxDebtUsd',
|
|
266
204
|
'debtCeiling',
|
|
@@ -281,10 +219,10 @@ const selectFields = [
|
|
|
281
219
|
'baseRate',
|
|
282
220
|
'maxBorrowRate',
|
|
283
221
|
'reserveFactor',
|
|
284
|
-
'oraclePrice',
|
|
285
222
|
'address',
|
|
286
223
|
'flashLoan',
|
|
287
224
|
'oracleProvider',
|
|
225
|
+
'indexes',
|
|
288
226
|
];
|
|
289
227
|
class LendingAccountProfile extends LendingAccountProfileDoc {
|
|
290
228
|
}
|
|
@@ -35,8 +35,6 @@ export declare class LendingMarketProfileDoc {
|
|
|
35
35
|
borrowCap: string;
|
|
36
36
|
supplyCapShort: number;
|
|
37
37
|
borrowCapShort: number;
|
|
38
|
-
supplyIndex: string;
|
|
39
|
-
borrowIndex: string;
|
|
40
38
|
timestamp: number;
|
|
41
39
|
borrowApy: number;
|
|
42
40
|
supplyApy: number;
|
|
@@ -70,7 +68,6 @@ export declare class MarketExtraApy {
|
|
|
70
68
|
}
|
|
71
69
|
export declare class LendingMarketProfile extends LendingMarketProfileDoc {
|
|
72
70
|
eModeCategoryProfiles: LendingEModeCategoryProfileDoc[];
|
|
73
|
-
oraclePrice: string;
|
|
74
71
|
participants: LendingMarketParticipants;
|
|
75
72
|
extraApy?: MarketExtraApy;
|
|
76
73
|
indexes: LendingIndexesDto;
|
|
@@ -32,8 +32,6 @@ class LendingMarketProfileDoc {
|
|
|
32
32
|
this.borrowAmountScaled = '0';
|
|
33
33
|
this.supplyCapShort = 0;
|
|
34
34
|
this.borrowCapShort = 0;
|
|
35
|
-
this.supplyIndex = '0';
|
|
36
|
-
this.borrowIndex = '0';
|
|
37
35
|
this.timestamp = 0;
|
|
38
36
|
this.borrowApy = 0;
|
|
39
37
|
this.supplyApy = 0;
|
|
@@ -189,14 +187,6 @@ __decorate([
|
|
|
189
187
|
(0, swagger_1.ApiProperty)({ description: 'Short borrow cap', example: 1250000 }),
|
|
190
188
|
__metadata("design:type", Object)
|
|
191
189
|
], LendingMarketProfileDoc.prototype, "borrowCapShort", void 0);
|
|
192
|
-
__decorate([
|
|
193
|
-
(0, swagger_1.ApiProperty)({ description: 'Supply index', example: '1.02' }),
|
|
194
|
-
__metadata("design:type", Object)
|
|
195
|
-
], LendingMarketProfileDoc.prototype, "supplyIndex", void 0);
|
|
196
|
-
__decorate([
|
|
197
|
-
(0, swagger_1.ApiProperty)({ description: 'Borrow index', example: '1.05' }),
|
|
198
|
-
__metadata("design:type", Object)
|
|
199
|
-
], LendingMarketProfileDoc.prototype, "borrowIndex", void 0);
|
|
200
190
|
__decorate([
|
|
201
191
|
(0, swagger_1.ApiProperty)({
|
|
202
192
|
description: 'Timestamp of last market activity',
|
|
@@ -379,10 +369,6 @@ __decorate([
|
|
|
379
369
|
}),
|
|
380
370
|
__metadata("design:type", Array)
|
|
381
371
|
], LendingMarketProfile.prototype, "eModeCategoryProfiles", void 0);
|
|
382
|
-
__decorate([
|
|
383
|
-
(0, swagger_1.ApiProperty)({ description: 'Oracle price', example: '100' }),
|
|
384
|
-
__metadata("design:type", String)
|
|
385
|
-
], LendingMarketProfile.prototype, "oraclePrice", void 0);
|
|
386
372
|
__decorate([
|
|
387
373
|
(0, swagger_1.ApiProperty)({
|
|
388
374
|
description: 'Participants in the lending market',
|