impermax-sdk 2.1.395 → 2.1.396

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.
@@ -126,8 +126,12 @@ class OffchainEndpointManager {
126
126
  // No endpoint passed, ignore
127
127
  if (!this.endpoint)
128
128
  return endpoints;
129
- const preferredEndpoint = this.endpoint === "thegraph" ? "thegraph" : "railway";
130
- return endpoints.filter((endpoint) => endpoint.includes(preferredEndpoint));
129
+ if (this.endpoint === "thegraph") {
130
+ return endpoints.filter((endpoint) => endpoint.includes("thegraph") || endpoint.includes("goldsky"));
131
+ }
132
+ else {
133
+ return endpoints.filter((endpoint) => endpoint.includes("railway"));
134
+ }
131
135
  }
132
136
  getPreferredEndpoint(searchParams) {
133
137
  const urlParams = new URLSearchParams(searchParams);
@@ -106,7 +106,7 @@ class OffchainLendingVault extends offchainVault_1.default {
106
106
  amm,
107
107
  factory,
108
108
  borrowableType,
109
- vaultBalance
109
+ vaultBalance: Number(vaultBalance)
110
110
  });
111
111
  }
112
112
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impermax-sdk",
3
- "version": "2.1.395",
3
+ "version": "2.1.396",
4
4
  "description": "",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",