impermax-sdk 2.1.276 → 2.1.277

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.
@@ -178,6 +178,8 @@ async function fetchLendingPools() {
178
178
  for (factory in subgraphs_1.IMPERMAX_SUBGRAPH_URL[this.network]) {
179
179
  // Only query for pairs in the pairs list
180
180
  const pairs = this.getPairsList(factory, { whitelisted: true, deprecated: true });
181
+ if (pairs.length === 0)
182
+ continue;
181
183
  const subgraphs = subgraphs_1.IMPERMAX_SUBGRAPH_URL[this.network][factory];
182
184
  calls.push(this.getEndpointManager().fetch(subgraphs, this.network, (queryBuilder) => queryBuilder.lendingPoolsQuery(factory, pairs, this.network)));
183
185
  factories.push(factory);
@@ -39,6 +39,8 @@ async function initializeUserData(account) {
39
39
  // Unlike lending pools user queries can't be filtered by lending pool id,
40
40
  // so we filter manually.
41
41
  const pairs = this.getPairsList(factory, { whitelisted: true, deprecated: true });
42
+ if (pairs.length === 0)
43
+ continue;
42
44
  // Get collateral/borrow positions for V2/V3
43
45
  if ((0, offchainTypes_1.isV3Factory)(factory)) {
44
46
  // TODO: V3 pair filter (nftlp)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impermax-sdk",
3
- "version": "2.1.276",
3
+ "version": "2.1.277",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",