@gearbox-protocol/sdk 11.9.0 → 11.10.0
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.
|
@@ -60,6 +60,9 @@ class CreditSuite extends import_base.SDKConstruct {
|
|
|
60
60
|
get router() {
|
|
61
61
|
return this.sdk.routerFor(this);
|
|
62
62
|
}
|
|
63
|
+
get isExpired() {
|
|
64
|
+
return this.creditFacade.expirable && this.creditFacade.expirationDate > 0 && this.creditFacade.expirationDate < this.sdk.timestamp;
|
|
65
|
+
}
|
|
63
66
|
get dirty() {
|
|
64
67
|
return this.creditFacade.dirty || this.creditManager.dirty || this.creditConfigurator.dirty;
|
|
65
68
|
}
|
|
@@ -27,6 +27,9 @@ class CreditSuite extends SDKConstruct {
|
|
|
27
27
|
get router() {
|
|
28
28
|
return this.sdk.routerFor(this);
|
|
29
29
|
}
|
|
30
|
+
get isExpired() {
|
|
31
|
+
return this.creditFacade.expirable && this.creditFacade.expirationDate > 0 && this.creditFacade.expirationDate < this.sdk.timestamp;
|
|
32
|
+
}
|
|
30
33
|
get dirty() {
|
|
31
34
|
return this.creditFacade.dirty || this.creditManager.dirty || this.creditConfigurator.dirty;
|
|
32
35
|
}
|
|
@@ -16,6 +16,7 @@ export declare class CreditSuite extends SDKConstruct {
|
|
|
16
16
|
readonly state: CreditSuiteState;
|
|
17
17
|
constructor(sdk: GearboxSDK, marketData: MarketData, index: number);
|
|
18
18
|
get router(): IRouterContract;
|
|
19
|
+
get isExpired(): boolean;
|
|
19
20
|
get dirty(): boolean;
|
|
20
21
|
get watchAddresses(): Set<Address>;
|
|
21
22
|
stateHuman(raw?: boolean): CreditSuiteStateHuman;
|