@curvefi/api 2.53.11 → 2.53.12

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/utils.js +3 -3
  2. package/package.json +1 -1
package/lib/utils.js CHANGED
@@ -706,9 +706,6 @@ export var getGasPriceFromL1 = function () { return __awaiter(void 0, void 0, vo
706
706
  return __generator(this, function (_a) {
707
707
  switch (_a.label) {
708
708
  case 0:
709
- if (curve.chainId === 42161) {
710
- return [2 /*return*/, 0.1 * 1e9]; // constant 0.1 gwei
711
- }
712
709
  if (!L2Networks.includes(curve.chainId)) return [3 /*break*/, 2];
713
710
  return [4 /*yield*/, curve.contracts[curve.constants.ALIASES.gas_oracle].contract.l1BaseFee()];
714
711
  case 1:
@@ -723,6 +720,9 @@ export var getGasPriceFromL2 = function () { return __awaiter(void 0, void 0, vo
723
720
  return __generator(this, function (_a) {
724
721
  switch (_a.label) {
725
722
  case 0:
723
+ if (curve.chainId === 42161) {
724
+ return [2 /*return*/, 0.1 * 1e9]; // constant 0.1 gwei
725
+ }
726
726
  if (!L2Networks.includes(curve.chainId)) return [3 /*break*/, 2];
727
727
  return [4 /*yield*/, curve.contracts[curve.constants.ALIASES.gas_oracle].contract.gasPrice()];
728
728
  case 1:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/api",
3
- "version": "2.53.11",
3
+ "version": "2.53.12",
4
4
  "description": "JavaScript library for curve.fi",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",