@curvefi/api 2.58.10 → 2.58.11
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
CHANGED
|
@@ -412,7 +412,7 @@ var Curve = /** @class */ (function () {
|
|
|
412
412
|
return __generator(this, function (_h) {
|
|
413
413
|
switch (_h.label) {
|
|
414
414
|
case 0:
|
|
415
|
-
if ([252, 1313161554].includes(this.chainId))
|
|
415
|
+
if ([196, 252, 1313161554].includes(this.chainId))
|
|
416
416
|
return [2 /*return*/];
|
|
417
417
|
if (!useApi) return [3 /*break*/, 2];
|
|
418
418
|
_a = this.constants;
|
|
@@ -679,7 +679,7 @@ var Curve = /** @class */ (function () {
|
|
|
679
679
|
return __generator(this, function (_b) {
|
|
680
680
|
switch (_b.label) {
|
|
681
681
|
case 0:
|
|
682
|
-
if ([252, 1313161554].includes(this.chainId))
|
|
682
|
+
if ([196, 252, 1313161554].includes(this.chainId))
|
|
683
683
|
return [2 /*return*/, []];
|
|
684
684
|
currentPoolIds = Object.keys(this.constants.FACTORY_POOLS_DATA);
|
|
685
685
|
lastPoolIdx = currentPoolIds.length === 0 ? -1 : Number(currentPoolIds[currentPoolIds.length - 1].split("-")[2]);
|
|
@@ -772,7 +772,7 @@ var Curve = /** @class */ (function () {
|
|
|
772
772
|
return __generator(this, function (_b) {
|
|
773
773
|
switch (_b.label) {
|
|
774
774
|
case 0:
|
|
775
|
-
if ([252, 1313161554].includes(this.chainId))
|
|
775
|
+
if ([196, 252, 1313161554].includes(this.chainId))
|
|
776
776
|
return [2 /*return*/, ''];
|
|
777
777
|
_a = lowerCasePoolDataAddresses;
|
|
778
778
|
return [4 /*yield*/, getFactoryPoolData.call(this, 0, poolAddress)];
|
|
@@ -13,6 +13,7 @@ export declare const lpTokenBasePoolIdDictZkSync: IDict<string>;
|
|
|
13
13
|
export declare const lpTokenBasePoolIdDictBase: IDict<string>;
|
|
14
14
|
export declare const lpTokenBasePoolIdDictBsc: IDict<string>;
|
|
15
15
|
export declare const lpTokenBasePoolIdDictFraxtal: IDict<string>;
|
|
16
|
+
export declare const lpTokenBasePoolIdDictXLayer: IDict<string>;
|
|
16
17
|
export declare const basePoolIdZapDictEthereum: IDict<{
|
|
17
18
|
address: string;
|
|
18
19
|
ABI: any;
|
|
@@ -69,6 +70,10 @@ export declare const basePoolIdZapDictFraxtal: IDict<{
|
|
|
69
70
|
address: string;
|
|
70
71
|
ABI: any;
|
|
71
72
|
}>;
|
|
73
|
+
export declare const basePoolIdZapDictXLayer: IDict<{
|
|
74
|
+
address: string;
|
|
75
|
+
ABI: any;
|
|
76
|
+
}>;
|
|
72
77
|
export declare const CRYPTO_FACTORY_CONSTANTS: {
|
|
73
78
|
[index: number]: {
|
|
74
79
|
lpTokenBasePoolIdDict: IDict<string>;
|
|
@@ -22,6 +22,7 @@ export var lpTokenBasePoolIdDictZkSync = lowerCaseKeys({});
|
|
|
22
22
|
export var lpTokenBasePoolIdDictBase = lowerCaseKeys({});
|
|
23
23
|
export var lpTokenBasePoolIdDictBsc = lowerCaseKeys({});
|
|
24
24
|
export var lpTokenBasePoolIdDictFraxtal = lowerCaseKeys({});
|
|
25
|
+
export var lpTokenBasePoolIdDictXLayer = lowerCaseKeys({});
|
|
25
26
|
export var basePoolIdZapDictEthereum = {
|
|
26
27
|
'3pool': {
|
|
27
28
|
address: "0x97aDC08FA1D849D2C48C5dcC1DaB568B169b0267".toLowerCase(),
|
|
@@ -50,6 +51,7 @@ export var basePoolIdZapDictZkSync = {};
|
|
|
50
51
|
export var basePoolIdZapDictBase = {};
|
|
51
52
|
export var basePoolIdZapDictBsc = {};
|
|
52
53
|
export var basePoolIdZapDictFraxtal = {};
|
|
54
|
+
export var basePoolIdZapDictXLayer = {};
|
|
53
55
|
export var CRYPTO_FACTORY_CONSTANTS = {
|
|
54
56
|
1: {
|
|
55
57
|
lpTokenBasePoolIdDict: lpTokenBasePoolIdDictEthereum,
|
|
@@ -71,6 +73,10 @@ export var CRYPTO_FACTORY_CONSTANTS = {
|
|
|
71
73
|
lpTokenBasePoolIdDict: lpTokenBasePoolIdDictPolygon,
|
|
72
74
|
basePoolIdZapDict: basePoolIdZapDictPolygon,
|
|
73
75
|
},
|
|
76
|
+
196: {
|
|
77
|
+
lpTokenBasePoolIdDict: lpTokenBasePoolIdDictXLayer,
|
|
78
|
+
basePoolIdZapDict: basePoolIdZapDictXLayer,
|
|
79
|
+
},
|
|
74
80
|
250: {
|
|
75
81
|
lpTokenBasePoolIdDict: lpTokenBasePoolIdDictFantom,
|
|
76
82
|
basePoolIdZapDict: basePoolIdZapDictFantom,
|