impermax-sdk 2.1.13 → 2.1.15
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/subgraphs.js
CHANGED
|
@@ -176,7 +176,13 @@ exports.VAULT_SUBGRAPH_URL = {
|
|
|
176
176
|
},
|
|
177
177
|
[types_1.Networks.Optimism]: {},
|
|
178
178
|
[types_1.Networks.Real]: {},
|
|
179
|
-
[types_1.Networks.Blast]: {
|
|
179
|
+
[types_1.Networks.Blast]: {
|
|
180
|
+
[types_1.VaultType.LENDING]: [
|
|
181
|
+
"https://gateway.thegraph.com/api/1350441d268f171aeb0934412dfadf3b/subgraphs/id/8UbzkWkh1zqWhkgkomcVAVR7tmvDNq9LUtfmvRwtDQTh",
|
|
182
|
+
],
|
|
183
|
+
[types_1.VaultType.HEDGED]: [],
|
|
184
|
+
[types_1.VaultType.LEVERAGED]: [],
|
|
185
|
+
},
|
|
180
186
|
};
|
|
181
187
|
exports.IMPERMAX_CHEF_SUBGRAPH_URL = {
|
|
182
188
|
[types_1.Networks.Ropsten]: "",
|
|
@@ -250,8 +250,8 @@ class OffchainLendingPool {
|
|
|
250
250
|
getTVL() {
|
|
251
251
|
return __awaiter(this, void 0, void 0, function* () {
|
|
252
252
|
const [supply0USD, supply1USD, totalBalanceUSD] = yield Promise.all([
|
|
253
|
-
this.getBorrowableA().
|
|
254
|
-
this.getBorrowableB().
|
|
253
|
+
this.getBorrowableA().getTotalBalanceUSD(),
|
|
254
|
+
this.getBorrowableB().getTotalBalanceUSD(),
|
|
255
255
|
this.getCollateral().getTotalBalanceUSD()
|
|
256
256
|
]);
|
|
257
257
|
if (supply0USD && supply1USD && totalBalanceUSD)
|