impermax-sdk 2.1.385 → 2.1.386
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.
|
@@ -8,5 +8,5 @@ import { NetworkVaultTypeIndex, NetworkFactoryIndex, NetworkExtensionIndex } fro
|
|
|
8
8
|
export declare const IMPERMAX_POOLS_API: NetworkFactoryIndex<string>;
|
|
9
9
|
export declare const IMPERMAX_VAULT_API: NetworkVaultTypeIndex<string>;
|
|
10
10
|
export declare const NFTLP_API: NetworkExtensionIndex<string>;
|
|
11
|
-
export declare const PRICE_AGGREGATOR_API_URL = "https://price-
|
|
11
|
+
export declare const PRICE_AGGREGATOR_API_URL = "https://v2-price-production.up.railway.app/api/tokens";
|
|
12
12
|
export declare const POSITIONS_AGGREGATOR_API_URL = "https://positions-aggregator-production.up.railway.app/api/nftlps";
|
|
@@ -99,6 +99,6 @@ exports.NFTLP_API = {
|
|
|
99
99
|
[types_1.Networks.Linea]: {},
|
|
100
100
|
};
|
|
101
101
|
// Single endpoint for all factory subgraph token prices
|
|
102
|
-
exports.PRICE_AGGREGATOR_API_URL = "https://price-
|
|
102
|
+
exports.PRICE_AGGREGATOR_API_URL = "https://v2-price-production.up.railway.app/api/tokens";
|
|
103
103
|
// Single endpoint for all NFTLP positions
|
|
104
104
|
exports.POSITIONS_AGGREGATOR_API_URL = "https://positions-aggregator-production.up.railway.app/api/nftlps";
|
|
@@ -68,7 +68,7 @@ class OffchainPriceHelper {
|
|
|
68
68
|
// First try get token price from our price-aggregator
|
|
69
69
|
const token = apiData?.tokens[key];
|
|
70
70
|
if (token)
|
|
71
|
-
return parseFloat(token.
|
|
71
|
+
return parseFloat(token.priceUsd);
|
|
72
72
|
// Fallback to price old
|
|
73
73
|
return this.getTokenPriceOld(network, tokenAddress);
|
|
74
74
|
}
|