impermax-sdk 2.1.14 → 2.1.16
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]: "",
|
|
@@ -41,7 +41,7 @@ class OffchainCollateral extends offchainPoolToken_1.default {
|
|
|
41
41
|
return __awaiter(this, void 0, void 0, function* () {
|
|
42
42
|
const symbolA = yield this.getBorrowableA().getSymbol();
|
|
43
43
|
const symbolB = yield this.getBorrowableB().getSymbol();
|
|
44
|
-
return symbolA + '
|
|
44
|
+
return symbolA + '/' + symbolB;
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
getDecimals() {
|
|
@@ -307,5 +307,11 @@ class OffchainLendingPool {
|
|
|
307
307
|
return 0;
|
|
308
308
|
});
|
|
309
309
|
}
|
|
310
|
+
getUniswapV2PairAddress() {
|
|
311
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
312
|
+
const lendingPoolData = yield this.getLendingPoolData();
|
|
313
|
+
return lendingPoolData.pair.uniswapV2PairAddress;
|
|
314
|
+
});
|
|
315
|
+
}
|
|
310
316
|
}
|
|
311
317
|
exports.default = OffchainLendingPool;
|