@gearbox-protocol/sdk 8.3.0 → 8.3.1
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.
|
@@ -45,13 +45,14 @@ class MarketRegister extends import_base.SDKConstruct {
|
|
|
45
45
|
}
|
|
46
46
|
hydrate(state) {
|
|
47
47
|
this.#markets.clear();
|
|
48
|
+
const configurators = new Set(state.map((m) => m.configurator));
|
|
49
|
+
this.#setMarketFilter([...configurators]);
|
|
48
50
|
for (const data of state) {
|
|
49
51
|
this.#markets.upsert(
|
|
50
52
|
data.pool.baseParams.addr,
|
|
51
53
|
new import_MarketSuite.MarketSuite(this.sdk, data)
|
|
52
54
|
);
|
|
53
55
|
}
|
|
54
|
-
this.#setMarketFilter(this.marketConfigurators.map((c) => c.address));
|
|
55
56
|
}
|
|
56
57
|
async loadMarkets(marketConfigurators, ignoreUpdateablePrices) {
|
|
57
58
|
if (!marketConfigurators.length) {
|
|
@@ -26,13 +26,14 @@ class MarketRegister extends SDKConstruct {
|
|
|
26
26
|
}
|
|
27
27
|
hydrate(state) {
|
|
28
28
|
this.#markets.clear();
|
|
29
|
+
const configurators = new Set(state.map((m) => m.configurator));
|
|
30
|
+
this.#setMarketFilter([...configurators]);
|
|
29
31
|
for (const data of state) {
|
|
30
32
|
this.#markets.upsert(
|
|
31
33
|
data.pool.baseParams.addr,
|
|
32
34
|
new MarketSuite(this.sdk, data)
|
|
33
35
|
);
|
|
34
36
|
}
|
|
35
|
-
this.#setMarketFilter(this.marketConfigurators.map((c) => c.address));
|
|
36
37
|
}
|
|
37
38
|
async loadMarkets(marketConfigurators, ignoreUpdateablePrices) {
|
|
38
39
|
if (!marketConfigurators.length) {
|