impermax-sdk 2.1.92 → 2.1.94
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
|
@@ -223,21 +223,21 @@ exports.IMPERMAX_CHEF_SUBGRAPH_URL = {
|
|
|
223
223
|
};
|
|
224
224
|
exports.BLOCKS_SUBGRAPH_URL = {
|
|
225
225
|
[types_1.Networks.Ropsten]: "",
|
|
226
|
-
[types_1.Networks.Mainnet]: "
|
|
227
|
-
[types_1.Networks.Polygon]: "
|
|
228
|
-
[types_1.Networks.Arbitrum]: "
|
|
229
|
-
[types_1.Networks.Avalanche]: "
|
|
230
|
-
[types_1.Networks.Moonriver]: "
|
|
226
|
+
[types_1.Networks.Mainnet]: "",
|
|
227
|
+
[types_1.Networks.Polygon]: "",
|
|
228
|
+
[types_1.Networks.Arbitrum]: "",
|
|
229
|
+
[types_1.Networks.Avalanche]: "",
|
|
230
|
+
[types_1.Networks.Moonriver]: "",
|
|
231
231
|
[types_1.Networks.Aurora]: "",
|
|
232
232
|
[types_1.Networks.Cronos]: "",
|
|
233
|
-
[types_1.Networks.Fantom]: "
|
|
234
|
-
[types_1.Networks.Canto]: "
|
|
235
|
-
[types_1.Networks.ZksyncEra]: "
|
|
233
|
+
[types_1.Networks.Fantom]: "",
|
|
234
|
+
[types_1.Networks.Canto]: "",
|
|
235
|
+
[types_1.Networks.ZksyncEra]: "",
|
|
236
236
|
[types_1.Networks.Blast]: "",
|
|
237
237
|
[types_1.Networks.Harmony]: "",
|
|
238
238
|
[types_1.Networks.Moonbeam]: "",
|
|
239
239
|
[types_1.Networks.Sxnetwork]: "",
|
|
240
|
-
[types_1.Networks.Base]: "
|
|
240
|
+
[types_1.Networks.Base]: "",
|
|
241
241
|
[types_1.Networks.Mantle]: "",
|
|
242
242
|
[types_1.Networks.Scroll]: "",
|
|
243
243
|
[types_1.Networks.Real]: "",
|
|
@@ -577,6 +577,8 @@ function fetchUserData(account) {
|
|
|
577
577
|
const subgraphs = subgraphs_1.IMPERMAX_SUBGRAPH_URL[this.network][factory];
|
|
578
578
|
// We pass network + factory to get the actual factory address in case we use multiple factories in 1 api
|
|
579
579
|
const result = yield this.endpointManager.fetch(subgraphs, this.network, (queryBuilder) => queryBuilder.userQuery(account, this.network, factory));
|
|
580
|
+
if (!result)
|
|
581
|
+
continue;
|
|
580
582
|
const user = result.data.user;
|
|
581
583
|
if (!user)
|
|
582
584
|
continue;
|
|
@@ -799,6 +801,8 @@ function fetchVaultsUserData(account) {
|
|
|
799
801
|
if (!subgraphs || subgraphs.length === 0)
|
|
800
802
|
continue;
|
|
801
803
|
const result = results[i++];
|
|
804
|
+
if (!result)
|
|
805
|
+
continue;
|
|
802
806
|
const user = result.data.user;
|
|
803
807
|
if (user && user.positions) {
|
|
804
808
|
userVaultData[vaultType] = user.positions.map((position) => (Object.assign(Object.assign({}, position), { vaultType })));
|
|
@@ -240,6 +240,8 @@ class PonderQueryBuilder {
|
|
|
240
240
|
supplyPositions(limit:1000, where: { factoryId: "${impermax_factories_1.IMPERMAX_FACTORY[network][factory]}"}) {
|
|
241
241
|
items {
|
|
242
242
|
balance
|
|
243
|
+
cumulativeEarnings
|
|
244
|
+
lastExchangeRate
|
|
243
245
|
borrowable {
|
|
244
246
|
underlying {
|
|
245
247
|
id
|
|
@@ -205,9 +205,10 @@ class OnchainInteractionsNftlpUniswapV3 extends onchainInteractionsNftlp_1.defau
|
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
if (ethValue > 0 || doWithdrawEth) {
|
|
208
|
-
actions.push(
|
|
208
|
+
//actions.push(await actionsGetter.methods.getWithdrawEthAction(
|
|
209
|
+
// this.getAccountAddress()
|
|
210
|
+
//).call());
|
|
209
211
|
}
|
|
210
|
-
actions = [];
|
|
211
212
|
return {
|
|
212
213
|
actions,
|
|
213
214
|
ethValue,
|