Skip to content

Commit

Permalink
fix: don't filter pools on lite networks
Browse files Browse the repository at this point in the history
  • Loading branch information
Macket committed Nov 29, 2024
1 parent 72db54c commit 6e7062d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/route-graph.worker.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// important: only type imports, the worker needs to be standalone
import type {IChainId, IDict, IPoolData, IRouteStep, ISwapType} from "./interfaces";
import type {curve} from "./curve";
import { curve } from "./curve.js";

export type IRouteGraphInput = {
constants: typeof curve['constants'],
Expand Down Expand Up @@ -253,7 +253,7 @@ export function routeGraphWorker() {
const tvl = poolTvlDict[poolId] * tvlMultiplier;
// Skip empty pools
if (chainId === 1 && tvl < 1000) continue;
if (chainId !== 1 && tvl < 100) continue;
if (chainId !== 1 && !curve.isLiteChain && tvl < 100) continue;

const excludedUnderlyingSwaps = (poolId === 'ib' && chainId === 1) ||
(poolId === 'geist' && chainId === 250) ||
Expand Down

0 comments on commit 6e7062d

Please sign in to comment.