@curvefi/api 2.68.25 → 2.68.26

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,9 @@
1
1
  export function routeGraphWorker() {
2
2
  const GRAPH_MAX_EDGES = 3;
3
+ // Pools excluded from router
4
+ const EXCLUDED_POOLS_FROM_ROUTER = {
5
+ 1: ['usdt'], // Ethereum mainnet
6
+ };
3
7
  const SNX = {
4
8
  10: {
5
9
  swap: "0x8700dAec35aF8Ff88c16BdF0418774CB3D7599B4".toLowerCase(),
@@ -12,7 +16,7 @@ export function routeGraphWorker() {
12
16
  },
13
17
  };
14
18
  const createRouteGraph = ({ constants, chainId, isLiteChain, allPools, amplificationCoefficientDict, poolTvlDict }) => {
15
- var _a, _b, _c;
19
+ var _a, _b, _c, _d;
16
20
  const routerGraph = {};
17
21
  // ETH <-> WETH (exclude Celo)
18
22
  if (chainId !== 42220) {
@@ -292,6 +296,9 @@ export function routeGraphWorker() {
292
296
  continue;
293
297
  if (chainId !== 1 && !isLiteChain && tvl < 100)
294
298
  continue;
299
+ // Skip excluded pools from router
300
+ if ((_d = EXCLUDED_POOLS_FROM_ROUTER[chainId]) === null || _d === void 0 ? void 0 : _d.includes(poolId))
301
+ continue;
295
302
  const excludedUnderlyingSwaps = (poolId === 'ib' && chainId === 1) ||
296
303
  (poolId === 'geist' && chainId === 250) ||
297
304
  (poolId === 'saave' && chainId === 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/api",
3
- "version": "2.68.25",
3
+ "version": "2.68.26",
4
4
  "description": "JavaScript library for curve.finance",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",