@curvefi/api 2.55.1 → 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 +5 -5
  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;
@@ -721,7 +721,7 @@ var Curve = /** @class */ (function () {
721
721
  currentPoolIds = Object.keys(this.constants.TWOCRYPTO_FACTORY_POOLS_DATA);
722
722
  lastPoolIdx = currentPoolIds.length === 0 ? -1 : Number(currentPoolIds[currentPoolIds.length - 1].split("-")[2]);
723
723
  _a = lowerCasePoolDataAddresses;
724
- return [4 /*yield*/, getTricryptoFactoryPoolData.call(this, lastPoolIdx + 1)];
724
+ return [4 /*yield*/, getTwocryptoFactoryPoolData.call(this, lastPoolIdx + 1)];
725
725
  case 1:
726
726
  poolData = _a.apply(void 0, [_b.sent()]);
727
727
  this.constants.TWOCRYPTO_FACTORY_POOLS_DATA = __assign(__assign({}, this.constants.TWOCRYPTO_FACTORY_POOLS_DATA), poolData);
@@ -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.1",
3
+ "version": "2.55.3",
4
4
  "description": "JavaScript library for curve.fi",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",