@curvefi/api 2.50.8 → 2.50.10
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/constants/aliases.js +5 -5
- package/lib/curve.js +6 -6
- package/lib/utils.js +1 -1
- package/package.json +1 -1
package/lib/constants/aliases.js
CHANGED
|
@@ -238,15 +238,15 @@ export var ALIASES_BASE = lowerCaseValues({
|
|
|
238
238
|
});
|
|
239
239
|
export var ALIASES_BSC = lowerCaseValues({
|
|
240
240
|
"crv": "0x8Ee73c484A26e0A5df2Ee2a4960B789967dd0415",
|
|
241
|
-
"gauge_factory": "
|
|
241
|
+
"gauge_factory": "0xabC000d88f23Bb45525E447528DBF656A9D55bf5",
|
|
242
242
|
"voting_escrow": "0x0000000000000000000000000000000000000000",
|
|
243
243
|
"fee_distributor": "0x0000000000000000000000000000000000000000",
|
|
244
244
|
"gauge_controller": "0x0000000000000000000000000000000000000000",
|
|
245
245
|
"address_provider": "0x0000000000000000000000000000000000000000",
|
|
246
|
-
"router": "
|
|
247
|
-
"deposit_and_stake": "
|
|
248
|
-
"stable_calc": "
|
|
249
|
-
"crypto_calc": '
|
|
246
|
+
"router": "0x69522fb5337663d3B4dFB0030b881c1A750Adb4f",
|
|
247
|
+
"deposit_and_stake": "0x5552b631e2aD801fAa129Aacf4B701071cC9D1f7",
|
|
248
|
+
"stable_calc": "0x0fE38dCC905eC14F6099a83Ac5C93BF2601300CF",
|
|
249
|
+
"crypto_calc": '0xd6681e74eEA20d196c15038C580f721EF2aB6320',
|
|
250
250
|
"factory": '0xEfDE221f306152971D8e9f181bFe998447975810',
|
|
251
251
|
"crvusd_factory": '0x0000000000000000000000000000000000000000',
|
|
252
252
|
"eywa_factory": '0x0000000000000000000000000000000000000000',
|
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)];
|
package/lib/utils.js
CHANGED
|
@@ -606,7 +606,7 @@ export var _getUsdRate = function (assetId) { return __awaiter(void 0, void 0, v
|
|
|
606
606
|
chainName = {
|
|
607
607
|
1: 'ethereum',
|
|
608
608
|
10: 'optimistic-ethereum',
|
|
609
|
-
56: "
|
|
609
|
+
56: "binance-smart-chain",
|
|
610
610
|
100: 'xdai',
|
|
611
611
|
137: 'polygon-pos',
|
|
612
612
|
250: 'fantom',
|