impermax-sdk 2.1.380 → 2.1.382
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/lib/config/whitelist.js
CHANGED
|
@@ -17,18 +17,7 @@ exports.WHITELISTED_PAIRS = {
|
|
|
17
17
|
[types_1.Factory.V2V1_1]: [],
|
|
18
18
|
[types_1.Factory.V2V2]: [],
|
|
19
19
|
[types_1.Factory.SOLV2]: [],
|
|
20
|
-
[types_1.Factory.V3]: [
|
|
21
|
-
"0xE990bcf37F2a3d02f3cC5de2B5Fc0C2517e4f5b3",
|
|
22
|
-
"0xDc7700c6745169E18A27DBF5ae6D06E623382f8d",
|
|
23
|
-
"0x2c5ba54340D74A28a49Ec35aD2133c74e60568f5",
|
|
24
|
-
"0x8738ae79eBdBcD427bf5ee770c12ad2121A1DAAf",
|
|
25
|
-
"0x8a5F2647dF30f98f4D01485385B1612fd4EFDAc3",
|
|
26
|
-
"0x41E0cBD0f2802862F197bD1a3DE982d3ACB2D54a",
|
|
27
|
-
"0x6d1ceE91c24138b733a96560CaE96E5BC5F5BbBc",
|
|
28
|
-
"0xF9b17C8594B215a7B0f6D2c6720ccB3b62c4d006",
|
|
29
|
-
"0x958211791FcF992eF57D4aEdb1cBB384CfBaBfea",
|
|
30
|
-
"0xa579e983F1552b9581BBf95a54Cc563ee3Ace854", // ETH/LINK univ3
|
|
31
|
-
]
|
|
20
|
+
[types_1.Factory.V3]: []
|
|
32
21
|
},
|
|
33
22
|
[types_1.Networks.Avalanche]: {
|
|
34
23
|
[types_1.Factory.V2V1_2]: [],
|
|
@@ -139,11 +128,7 @@ exports.WHITELISTED_PAIRS = {
|
|
|
139
128
|
"0x656629d6921B9697BBFD791e7e4e8c09E160459E",
|
|
140
129
|
"0x4c7c80Cb67e88486442474F518876819dcEa8A00", // eth/superoethb stakedlp
|
|
141
130
|
],
|
|
142
|
-
[types_1.Factory.V3]: [
|
|
143
|
-
"0xa68f6075ae62ebd514d1600cb5035fa0e2210ef8",
|
|
144
|
-
"0x10FC34B6fCA7B6B5E4F4f85bBC368dB14F3a4fB9",
|
|
145
|
-
"0xD7024c29EF5cAF97e5d36737c009f1f16E5E7356", // ETH/cbBTC univ3
|
|
146
|
-
],
|
|
131
|
+
[types_1.Factory.V3]: [],
|
|
147
132
|
},
|
|
148
133
|
[types_1.Networks.Mantle]: {
|
|
149
134
|
[types_1.Factory.V2V2]: [
|
|
@@ -465,6 +450,18 @@ exports.WHITELISTED_OLD = {
|
|
|
465
450
|
"0x4941007F424336a682B478993dBDAF0a444d82fc",
|
|
466
451
|
"0x39680ed7d9267e3AFe7239D2930361CBee996207", //GNS-ETH
|
|
467
452
|
],
|
|
453
|
+
[types_1.Factory.V3]: [
|
|
454
|
+
"0xE990bcf37F2a3d02f3cC5de2B5Fc0C2517e4f5b3",
|
|
455
|
+
"0xDc7700c6745169E18A27DBF5ae6D06E623382f8d",
|
|
456
|
+
"0x2c5ba54340D74A28a49Ec35aD2133c74e60568f5",
|
|
457
|
+
"0x8738ae79eBdBcD427bf5ee770c12ad2121A1DAAf",
|
|
458
|
+
"0x8a5F2647dF30f98f4D01485385B1612fd4EFDAc3",
|
|
459
|
+
"0x41E0cBD0f2802862F197bD1a3DE982d3ACB2D54a",
|
|
460
|
+
"0x6d1ceE91c24138b733a96560CaE96E5BC5F5BbBc",
|
|
461
|
+
"0xF9b17C8594B215a7B0f6D2c6720ccB3b62c4d006",
|
|
462
|
+
"0x958211791FcF992eF57D4aEdb1cBB384CfBaBfea",
|
|
463
|
+
"0xa579e983F1552b9581BBf95a54Cc563ee3Ace854", // ETH/LINK univ3
|
|
464
|
+
]
|
|
468
465
|
},
|
|
469
466
|
[types_1.Networks.Avalanche]: {
|
|
470
467
|
[types_1.Factory.V2V1_2]: [
|
|
@@ -590,6 +587,11 @@ exports.WHITELISTED_OLD = {
|
|
|
590
587
|
"0xed7752e6D91D7cB171A22A8FB5a0E60F4D38dB11",
|
|
591
588
|
"0x753ea0ADE9cbFF68CBAFFaEdf7863B8225c93a64", // usdc/fbomb stakedlp
|
|
592
589
|
],
|
|
590
|
+
[types_1.Factory.V3]: [
|
|
591
|
+
"0xa68f6075ae62ebd514d1600cb5035fa0e2210ef8",
|
|
592
|
+
"0x10FC34B6fCA7B6B5E4F4f85bBC368dB14F3a4fB9",
|
|
593
|
+
"0xD7024c29EF5cAF97e5d36737c009f1f16E5E7356", // ETH/cbBTC univ3
|
|
594
|
+
],
|
|
593
595
|
},
|
|
594
596
|
[types_1.Networks.Mantle]: {
|
|
595
597
|
[types_1.Factory.V2V1]: [],
|
|
@@ -62,7 +62,7 @@ class OffchainEndpointManager {
|
|
|
62
62
|
latestResponse = await Promise.any(endpointQueries.map((eq) => this.fetchFromEndpoint(eq)));
|
|
63
63
|
}
|
|
64
64
|
else {
|
|
65
|
-
const endpointResults = await Promise.allSettled(endpointQueries.map((eq) => this.fetchFromEndpoint(eq
|
|
65
|
+
const endpointResults = await Promise.allSettled(endpointQueries.map((eq) => this.fetchFromEndpoint(eq)));
|
|
66
66
|
const responses = endpointResults
|
|
67
67
|
.filter((result, index) => {
|
|
68
68
|
if (result.status === "rejected") {
|
|
@@ -83,7 +83,7 @@ class OffchainEndpointManager {
|
|
|
83
83
|
/**
|
|
84
84
|
* Fetch a query from an endpoint (ponder, thegraph, etc.)
|
|
85
85
|
*/
|
|
86
|
-
async fetchFromEndpoint({ endpoint, query }
|
|
86
|
+
async fetchFromEndpoint({ endpoint, query }) {
|
|
87
87
|
const client = new apollo_client_1.default({
|
|
88
88
|
link: new apollo_link_http_1.HttpLink({ uri: endpoint }),
|
|
89
89
|
cache: new apollo_cache_inmemory_1.InMemoryCache(),
|
|
@@ -94,8 +94,7 @@ class OffchainEndpointManager {
|
|
|
94
94
|
});
|
|
95
95
|
// Max fetch time
|
|
96
96
|
const timeout = (ms) => new Promise((resolve) => setTimeout(() => resolve(null), ms));
|
|
97
|
-
const
|
|
98
|
-
const result = await Promise.any([call, timeout(maxFetchTime)]);
|
|
97
|
+
const result = await Promise.any([call, timeout(this.maxFetchTime)]);
|
|
99
98
|
if (!result) {
|
|
100
99
|
return Promise.reject("fetchFromEndpoint timed out");
|
|
101
100
|
}
|