@curvefi/api 2.65.14 → 2.65.16

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.
@@ -1,5 +1,5 @@
1
1
  import type { IChainId, IDict, IPoolData, IRouteStep } from "./interfaces";
2
- import type { curve } from "./curve";
2
+ import { curve } from "./curve.js";
3
3
  export type IRouteGraphInput = {
4
4
  constants: typeof curve['constants'];
5
5
  chainId: IChainId;
@@ -1,3 +1,4 @@
1
+ import { curve } from "./curve.js";
1
2
  export function routeGraphWorker() {
2
3
  const GRAPH_MAX_EDGES = 3;
3
4
  const SNX = {
@@ -229,7 +230,7 @@ export function routeGraphWorker() {
229
230
  // Skip empty pools
230
231
  if (chainId === 1 && tvl < 1000)
231
232
  continue;
232
- if (chainId !== 1 && tvl < 100)
233
+ if (chainId !== 1 && !curve.isLiteChain && tvl < 100)
233
234
  continue;
234
235
  const excludedUnderlyingSwaps = (poolId === 'ib' && chainId === 1) ||
235
236
  (poolId === 'geist' && chainId === 250) ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/api",
3
- "version": "2.65.14",
3
+ "version": "2.65.16",
4
4
  "description": "JavaScript library for curve.fi",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",