@curvefi/api 2.68.36 → 2.68.37

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.
@@ -4,17 +4,6 @@ export function routeGraphWorker() {
4
4
  const EXCLUDED_POOLS_FROM_ROUTER = {
5
5
  1: ['usdt'], // Ethereum mainnet
6
6
  };
7
- const SNX = {
8
- 10: {
9
- swap: "0x8700dAec35aF8Ff88c16BdF0418774CB3D7599B4".toLowerCase(),
10
- coins: [
11
- "0x8c6f28f2f1a3c87f0f938b96d27520d9751ec8d9", // sUSD
12
- "0xFBc4198702E81aE77c06D58f81b629BDf36f0a71", // sEUR
13
- "0xe405de8f52ba7559f9df3c368500b6e6ae6cee49", // sETH
14
- "0x298b9b95708152ff6968aafd889c6586e9169f1d", // sBTC
15
- ].map((a) => a.toLowerCase()),
16
- },
17
- };
18
7
  const createRouteGraph = ({ constants, chainId, isLiteChain, allPools, amplificationCoefficientDict, poolTvlDict }) => {
19
8
  var _a, _b, _c, _d;
20
9
  const routerGraph = {};
@@ -240,31 +229,6 @@ export function routeGraphWorker() {
240
229
  tvl: Infinity,
241
230
  }];
242
231
  }
243
- // SNX swaps
244
- if (chainId in SNX) {
245
- const chain = chainId;
246
- for (const inCoin of SNX[chain].coins) {
247
- for (const outCoin of SNX[chain].coins) {
248
- if (inCoin === outCoin)
249
- continue;
250
- if (!routerGraph[inCoin])
251
- routerGraph[inCoin] = {};
252
- routerGraph[inCoin][outCoin] = [{
253
- poolId: "SNX exchanger",
254
- swapAddress: SNX[chain].swap,
255
- inputCoinAddress: inCoin,
256
- outputCoinAddress: outCoin,
257
- swapParams: [0, 0, 9, 0, 0],
258
- poolAddress: constants.ZERO_ADDRESS,
259
- basePool: constants.ZERO_ADDRESS,
260
- baseToken: constants.ZERO_ADDRESS,
261
- secondBasePool: constants.ZERO_ADDRESS,
262
- secondBaseToken: constants.ZERO_ADDRESS,
263
- tvl: Infinity,
264
- }];
265
- }
266
- }
267
- }
268
232
  const start = Date.now();
269
233
  for (const poolItem of allPools) {
270
234
  const poolId = poolItem[0], poolData = poolItem[1];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/api",
3
- "version": "2.68.36",
3
+ "version": "2.68.37",
4
4
  "description": "JavaScript library for curve.finance",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",