@xoxno/types 1.0.207 → 1.0.208

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.
@@ -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", "supplyIndex", "borrowIndex", "rewardsReserve", "maxDebtUsd", "debtCeiling", "isolated", "canBeCollateral", "timestamp", "canBeBorrowed", "canBorrowInIsolation", "extraApy", "flashLoanFee", "utilizationRate", "borrowAmount", "optimalUsageRate", "slopeRate1", "slopeRate2", "slopeRate3", "midUsageRate", "baseRate", "maxBorrowRate", "reserveFactor", "oraclePrice", "address", "flashLoan", "oracleProvider"];
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", "oraclePrice", "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',
@@ -285,6 +223,7 @@ const selectFields = [
285
223
  'address',
286
224
  'flashLoan',
287
225
  'oracleProvider',
226
+ 'indexes',
288
227
  ];
289
228
  class LendingAccountProfile extends LendingAccountProfileDoc {
290
229
  }
@@ -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;
@@ -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',
@@ -113,8 +113,6 @@ class LendingMarketProfileFilter extends cosmos_db_generic_filter_1.CosmosDbGene
113
113
  'eMode',
114
114
  'isolated',
115
115
  'siloed',
116
- 'supplyIndex',
117
- 'borrowIndex',
118
116
  'canBorrowInIsolation',
119
117
  'eModeCategories',
120
118
  'ltv',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.207",
3
+ "version": "1.0.208",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {