@curvefi/api 2.58.2 → 2.58.3

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.
@@ -162,6 +162,8 @@ var PoolTemplate = /** @class */ (function () {
162
162
  return __generator(this, function (_e) {
163
163
  switch (_e.label) {
164
164
  case 0:
165
+ if (curve.chainId === 1 && this.id === "crveth")
166
+ return [2 /*return*/, "0"];
165
167
  if (!this.isLlamma) return [3 /*break*/, 3];
166
168
  stablecoinContract = curve.contracts[this.underlyingCoinAddresses[0]].multicallContract;
167
169
  collateralContract = curve.contracts[this.underlyingCoinAddresses[1]].multicallContract;
package/lib/router.js CHANGED
@@ -291,7 +291,9 @@ var _buildRouteGraph = memoize(function () { return __awaiter(void 0, void 0, vo
291
291
  return [3 /*break*/, 4];
292
292
  if (curve.chainId !== 1 && tvl < 100)
293
293
  return [3 /*break*/, 4];
294
- excludedUnderlyingSwaps = (poolId === 'ib' && curve.chainId === 1) || (poolId === 'geist' && curve.chainId === 250);
294
+ excludedUnderlyingSwaps = (poolId === 'ib' && curve.chainId === 1) ||
295
+ (poolId === 'geist' && curve.chainId === 250) ||
296
+ (poolId === 'saave' && curve.chainId === 1);
295
297
  // Wrapped coin <-> LP "swaps" (actually add_liquidity/remove_liquidity_one_coin)
296
298
  if (!poolData.is_fake && !poolData.is_llamma && wrappedCoinAddresses.length < 6) {
297
299
  coins = __spreadArray([tokenAddress], wrappedCoinAddresses, true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/api",
3
- "version": "2.58.2",
3
+ "version": "2.58.3",
4
4
  "description": "JavaScript library for curve.fi",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",