@gearbox-protocol/sdk 3.0.0-next.228 → 3.0.0-next.229
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.
|
@@ -15,6 +15,7 @@ export declare class CreditManagerData {
|
|
|
15
15
|
readonly version: number;
|
|
16
16
|
readonly isPaused: boolean;
|
|
17
17
|
readonly forbiddenTokenMask: bigint;
|
|
18
|
+
readonly isBorrowingForbidden: boolean;
|
|
18
19
|
readonly maxEnabledTokensLength: number;
|
|
19
20
|
readonly name: string;
|
|
20
21
|
readonly tier: number;
|
|
@@ -17,6 +17,7 @@ class CreditManagerData {
|
|
|
17
17
|
version;
|
|
18
18
|
isPaused;
|
|
19
19
|
forbiddenTokenMask; // V2 only: mask which forbids some particular tokens
|
|
20
|
+
isBorrowingForbidden;
|
|
20
21
|
maxEnabledTokensLength;
|
|
21
22
|
name;
|
|
22
23
|
tier;
|
|
@@ -55,6 +56,7 @@ class CreditManagerData {
|
|
|
55
56
|
this.isPaused = payload.isPaused;
|
|
56
57
|
this.forbiddenTokenMask = payload.forbiddenTokenMask;
|
|
57
58
|
this.maxEnabledTokensLength = Number(payload.maxEnabledTokensLength);
|
|
59
|
+
this.isBorrowingForbidden = payload.isBorrowingForbidden;
|
|
58
60
|
this.baseBorrowRate = Number((payload.baseBorrowRate *
|
|
59
61
|
(BigInt(payload.feeInterest) + sdk_gov_1.PERCENTAGE_FACTOR) *
|
|
60
62
|
sdk_gov_1.PERCENTAGE_DECIMALS) /
|