@curvefi/api 2.50.8 → 2.50.9
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.
- package/lib/curve.js +6 -6
- package/package.json +1 -1
package/lib/curve.js
CHANGED
|
@@ -485,7 +485,7 @@ var Curve = /** @class */ (function () {
|
|
|
485
485
|
return __generator(this, function (_h) {
|
|
486
486
|
switch (_h.label) {
|
|
487
487
|
case 0:
|
|
488
|
-
if (![1, 137, 250, 8453].includes(this.chainId))
|
|
488
|
+
if (![1, 56, 137, 250, 8453].includes(this.chainId))
|
|
489
489
|
return [2 /*return*/];
|
|
490
490
|
if (!useApi) return [3 /*break*/, 2];
|
|
491
491
|
_a = this.constants;
|
|
@@ -527,7 +527,7 @@ var Curve = /** @class */ (function () {
|
|
|
527
527
|
return __generator(this, function (_k) {
|
|
528
528
|
switch (_k.label) {
|
|
529
529
|
case 0:
|
|
530
|
-
if (![1, 8453, 42161].includes(this.chainId))
|
|
530
|
+
if (![1, 56, 8453, 42161].includes(this.chainId))
|
|
531
531
|
return [2 /*return*/]; // Ethereum, Arbitrum
|
|
532
532
|
if (!useApi) return [3 /*break*/, 2];
|
|
533
533
|
_a = this.constants;
|
|
@@ -597,7 +597,7 @@ var Curve = /** @class */ (function () {
|
|
|
597
597
|
return __generator(this, function (_b) {
|
|
598
598
|
switch (_b.label) {
|
|
599
599
|
case 0:
|
|
600
|
-
if (![1, 137, 250, 8453].includes(this.chainId))
|
|
600
|
+
if (![1, 56, 137, 250, 8453].includes(this.chainId))
|
|
601
601
|
return [2 /*return*/, []];
|
|
602
602
|
currentPoolIds = Object.keys(this.constants.CRYPTO_FACTORY_POOLS_DATA);
|
|
603
603
|
lastPoolIdx = currentPoolIds.length === 0 ? -1 : Number(currentPoolIds[currentPoolIds.length - 1].split("-")[2]);
|
|
@@ -616,7 +616,7 @@ var Curve = /** @class */ (function () {
|
|
|
616
616
|
return __generator(this, function (_b) {
|
|
617
617
|
switch (_b.label) {
|
|
618
618
|
case 0:
|
|
619
|
-
if (![1, 8453, 42161].includes(this.chainId))
|
|
619
|
+
if (![1, 56, 8453, 42161].includes(this.chainId))
|
|
620
620
|
return [2 /*return*/, []]; // Ethereum, Arbitrum
|
|
621
621
|
currentPoolIds = Object.keys(this.constants.TRICRYPTO_FACTORY_POOLS_DATA);
|
|
622
622
|
lastPoolIdx = currentPoolIds.length === 0 ? -1 : Number(currentPoolIds[currentPoolIds.length - 1].split("-")[2]);
|
|
@@ -652,7 +652,7 @@ var Curve = /** @class */ (function () {
|
|
|
652
652
|
return __generator(this, function (_b) {
|
|
653
653
|
switch (_b.label) {
|
|
654
654
|
case 0:
|
|
655
|
-
if (![1, 137, 250, 8453].includes(this.chainId))
|
|
655
|
+
if (![1, 56, 137, 250, 8453].includes(this.chainId))
|
|
656
656
|
return [2 /*return*/, ''];
|
|
657
657
|
_a = lowerCasePoolDataAddresses;
|
|
658
658
|
return [4 /*yield*/, getCryptoFactoryPoolData.call(this, 0, poolAddress)];
|
|
@@ -669,7 +669,7 @@ var Curve = /** @class */ (function () {
|
|
|
669
669
|
return __generator(this, function (_b) {
|
|
670
670
|
switch (_b.label) {
|
|
671
671
|
case 0:
|
|
672
|
-
if (![1, 8453, 42161].includes(this.chainId))
|
|
672
|
+
if (![1, 56, 8453, 42161].includes(this.chainId))
|
|
673
673
|
return [2 /*return*/, '']; // Ethereum, Arbitrum
|
|
674
674
|
_a = lowerCasePoolDataAddresses;
|
|
675
675
|
return [4 /*yield*/, getTricryptoFactoryPoolData.call(this, 0, poolAddress)];
|