@merkl/api 0.20.53 → 0.20.54

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.
@@ -161,6 +161,13 @@ export class ClammMetadata {
161
161
  SwapX: () => "https://swapx.fi/earn",
162
162
  ZERO: () => "https://www.zkzero.fi/",
163
163
  };
164
- return ammLinkMap[params.amm]?.(params)?.toLowerCase();
164
+ let ammString = params.amm.toString();
165
+ try {
166
+ if (params.amm === Number(Number.parseInt(params.amm.toString()))) {
167
+ ammString = AMM[params.amm];
168
+ }
169
+ }
170
+ catch { }
171
+ return ammLinkMap[ammString]?.(params)?.toLowerCase();
165
172
  }
166
173
  }