@merkl/api 0.10.223 → 0.10.225

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.
@@ -67,7 +67,10 @@ export async function CLAMMDynamicData(chainId, campaigns) {
67
67
  A51Strategies = await fetchA51Strategies(chainId, [...new Set(A51Pools)]);
68
68
  }
69
69
  for (const pool of poolList) {
70
- const poolInterface = PoolInterface[AMMAlgorithmMapping[pool.amm]];
70
+ let poolInterface = PoolInterface[AMMAlgorithmMapping[pool.amm]];
71
+ if (pool.amm === AMM.SyncswapV3) {
72
+ poolInterface = PoolInterface[AMMAlgorithm.Neptune];
73
+ }
71
74
  const d = campaigns?.filter(campaign => campaign.mainParameter.toLowerCase() === pool.mainParameter.toLowerCase())[0];
72
75
  calls.push({
73
76
  allowFailure: true,
@@ -284,7 +287,10 @@ export async function CLAMMDynamicData(chainId, campaigns) {
284
287
  let i = 0;
285
288
  if (!!poolList) {
286
289
  for (const pool of poolList) {
287
- const poolInterface = PoolInterface[AMMAlgorithmMapping[pool.amm]];
290
+ let poolInterface = PoolInterface[AMMAlgorithmMapping[pool.amm]];
291
+ if (pool.amm === AMM.SyncswapV3) {
292
+ poolInterface = PoolInterface[AMMAlgorithm.Neptune];
293
+ }
288
294
  // This liquidity call gives the active liquidity on the pool. To get the total liquidity we would need to loop over all positions
289
295
  let poolTotalLiquidity;
290
296
  let sqrtPrice;