@xoxno/types 1.0.148 → 1.0.151
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 -1
- package/dist/cosmos-db/documents/lending/lending-account-profile.js +1 -2
- package/dist/cosmos-db/documents/lending/lending-oracle.d.ts +4 -4
- package/dist/cosmos-db/documents/lending/lending-oracle.js +8 -8
- package/package.json +1 -1
|
@@ -28,7 +28,7 @@ export declare class LendingAccountProfileDoc {
|
|
|
28
28
|
_ts: number;
|
|
29
29
|
constructor(props?: Partial<LendingAccountProfileDoc>);
|
|
30
30
|
}
|
|
31
|
-
declare const selectFields:
|
|
31
|
+
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"];
|
|
32
32
|
export declare class LendingAccountProfile extends LendingAccountProfileDoc {
|
|
33
33
|
supplyAmount: string;
|
|
34
34
|
borrowAmount: string;
|
|
@@ -13,7 +13,6 @@ exports.LendingAccountProfile = exports.LendingAccountProfileDoc = void 0;
|
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const lending_data_type_enum_1 = require("../../../enums/lending-data-type.enum");
|
|
15
15
|
const lending_emode_category_profile_doc_1 = require("./lending-emode-category-profile.doc");
|
|
16
|
-
const lending_market_profile_doc_1 = require("./lending-market-profile.doc");
|
|
17
16
|
const lending_enum_1 = require("../../../enums/lending.enum");
|
|
18
17
|
class LendingAccountProfileDoc {
|
|
19
18
|
constructor(props) {
|
|
@@ -259,7 +258,7 @@ __decorate([
|
|
|
259
258
|
__decorate([
|
|
260
259
|
(0, swagger_1.ApiProperty)({
|
|
261
260
|
description: 'Lending market partial profile',
|
|
262
|
-
type:
|
|
261
|
+
// type: PickType(LendingMarketProfile, selectFields),
|
|
263
262
|
}),
|
|
264
263
|
__metadata("design:type", Object)
|
|
265
264
|
], LendingAccountProfile.prototype, "marketProfile", void 0);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ExchangeSource, OracleType, PricingMethod } from '../../../enums/lending.enum';
|
|
2
2
|
export declare class OraclePriceFluctuation {
|
|
3
|
-
firstUpperRatio:
|
|
4
|
-
firstLowerRatio:
|
|
5
|
-
lastUpperRatio:
|
|
6
|
-
lastLowerRatio:
|
|
3
|
+
firstUpperRatio: number;
|
|
4
|
+
firstLowerRatio: number;
|
|
5
|
+
lastUpperRatio: number;
|
|
6
|
+
lastLowerRatio: number;
|
|
7
7
|
constructor(init?: Partial<OraclePriceFluctuation>);
|
|
8
8
|
}
|
|
9
9
|
export declare class LendingOracleUpdateStruct {
|
|
@@ -20,31 +20,31 @@ class OraclePriceFluctuation {
|
|
|
20
20
|
exports.OraclePriceFluctuation = OraclePriceFluctuation;
|
|
21
21
|
__decorate([
|
|
22
22
|
(0, swagger_1.ApiProperty)({
|
|
23
|
-
type:
|
|
23
|
+
type: 'integer',
|
|
24
24
|
description: 'First upper ratio threshold for price fluctuation',
|
|
25
25
|
}),
|
|
26
|
-
__metadata("design:type",
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
27
|
], OraclePriceFluctuation.prototype, "firstUpperRatio", void 0);
|
|
28
28
|
__decorate([
|
|
29
29
|
(0, swagger_1.ApiProperty)({
|
|
30
|
-
type:
|
|
30
|
+
type: 'integer',
|
|
31
31
|
description: 'First lower ratio threshold for price fluctuation',
|
|
32
32
|
}),
|
|
33
|
-
__metadata("design:type",
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
34
|
], OraclePriceFluctuation.prototype, "firstLowerRatio", void 0);
|
|
35
35
|
__decorate([
|
|
36
36
|
(0, swagger_1.ApiProperty)({
|
|
37
|
-
type:
|
|
37
|
+
type: 'integer',
|
|
38
38
|
description: 'Last upper ratio threshold for price fluctuation',
|
|
39
39
|
}),
|
|
40
|
-
__metadata("design:type",
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
41
|
], OraclePriceFluctuation.prototype, "lastUpperRatio", void 0);
|
|
42
42
|
__decorate([
|
|
43
43
|
(0, swagger_1.ApiProperty)({
|
|
44
|
-
type:
|
|
44
|
+
type: 'integer',
|
|
45
45
|
description: 'Last lower ratio threshold for price fluctuation',
|
|
46
46
|
}),
|
|
47
|
-
__metadata("design:type",
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
48
|
], OraclePriceFluctuation.prototype, "lastLowerRatio", void 0);
|
|
49
49
|
class LendingOracleUpdateStruct {
|
|
50
50
|
constructor(init) {
|