@curvefi/api 2.68.21 → 2.68.22

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.
@@ -274,10 +274,10 @@ export function routeGraphWorker() {
274
274
  if (poolData.is_ng)
275
275
  poolType *= 10;
276
276
  const tvlMultiplier = poolData.is_crypto ? 1 : ((_a = amplificationCoefficientDict[poolData.swap_address]) !== null && _a !== void 0 ? _a : 1);
277
- const basePool = poolData.is_meta ? Object.assign(Object.assign({}, constants.POOLS_DATA), constants.FACTORY_POOLS_DATA)[poolData.base_pool] : null;
277
+ const basePool = poolData.is_meta ? Object.assign(Object.assign(Object.assign(Object.assign({}, constants.POOLS_DATA), constants.FACTORY_POOLS_DATA), constants.STABLE_NG_FACTORY_POOLS_DATA), constants.CRVUSD_FACTORY_POOLS_DATA)[poolData.base_pool] : null;
278
278
  const basePoolAddress = basePool ? basePool.swap_address.toLowerCase() : constants.ZERO_ADDRESS;
279
279
  let baseTokenAddress = basePool ? basePool.token_address.toLowerCase() : constants.ZERO_ADDRESS;
280
- const secondBasePool = basePool && basePool.base_pool ? Object.assign(Object.assign(Object.assign({}, constants.POOLS_DATA), constants.FACTORY_POOLS_DATA), constants.CRVUSD_FACTORY_POOLS_DATA)[basePool.base_pool] : null;
280
+ const secondBasePool = basePool && basePool.base_pool ? Object.assign(Object.assign(Object.assign(Object.assign({}, constants.POOLS_DATA), constants.FACTORY_POOLS_DATA), constants.STABLE_NG_FACTORY_POOLS_DATA), constants.CRVUSD_FACTORY_POOLS_DATA)[basePool.base_pool] : null;
281
281
  const secondBasePoolAddress = secondBasePool ? secondBasePool.swap_address.toLowerCase() : constants.ZERO_ADDRESS;
282
282
  // for double meta underlying (crv/tricrypto, wmatic/tricrypto)
283
283
  if (basePool && secondBasePoolAddress !== constants.ZERO_ADDRESS)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/api",
3
- "version": "2.68.21",
3
+ "version": "2.68.22",
4
4
  "description": "JavaScript library for curve.finance",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",