@merkl/api 0.10.224 → 0.10.225
Sign up to get free protection for your applications and to get access to all the features.
@@ -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
|
-
|
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
|
-
|
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;
|