@curvefi/api 2.55.2 → 2.55.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.
Files changed (2) hide show
  1. package/lib/curve.js +4 -4
  2. package/package.json +1 -1
package/lib/curve.js CHANGED
@@ -573,7 +573,7 @@ var Curve = /** @class */ (function () {
573
573
  return __generator(this, function (_k) {
574
574
  switch (_k.label) {
575
575
  case 0:
576
- if ([324, 1284].includes(this.chainId))
576
+ if (![1, 56, 137, 250, 8453].includes(this.chainId))
577
577
  return [2 /*return*/];
578
578
  if (!useApi) return [3 /*break*/, 2];
579
579
  _a = this.constants;
@@ -735,7 +735,7 @@ var Curve = /** @class */ (function () {
735
735
  return __generator(this, function (_b) {
736
736
  switch (_b.label) {
737
737
  case 0:
738
- if ([324, 1284].includes(this.chainId))
738
+ if (![1, 56, 137, 250, 8453].includes(this.chainId))
739
739
  return [2 /*return*/, []];
740
740
  currentPoolIds = Object.keys(this.constants.TRICRYPTO_FACTORY_POOLS_DATA);
741
741
  lastPoolIdx = currentPoolIds.length === 0 ? -1 : Number(currentPoolIds[currentPoolIds.length - 1].split("-")[2]);
@@ -805,7 +805,7 @@ var Curve = /** @class */ (function () {
805
805
  return __generator(this, function (_b) {
806
806
  switch (_b.label) {
807
807
  case 0:
808
- if (![1, 56, 137, 250, 8453].includes(this.chainId))
808
+ if ([324, 1284].includes(this.chainId))
809
809
  return [2 /*return*/, ''];
810
810
  _a = lowerCasePoolDataAddresses;
811
811
  return [4 /*yield*/, getTwocryptoFactoryPoolData.call(this, 0, poolAddress)];
@@ -822,7 +822,7 @@ var Curve = /** @class */ (function () {
822
822
  return __generator(this, function (_b) {
823
823
  switch (_b.label) {
824
824
  case 0:
825
- if ([324, 1284].includes(this.chainId))
825
+ if (![1, 56, 137, 250, 8453].includes(this.chainId))
826
826
  return [2 /*return*/, ''];
827
827
  _a = lowerCasePoolDataAddresses;
828
828
  return [4 /*yield*/, getTricryptoFactoryPoolData.call(this, 0, poolAddress)];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/api",
3
- "version": "2.55.2",
3
+ "version": "2.55.3",
4
4
  "description": "JavaScript library for curve.fi",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",