@curvefi/api 2.54.1 → 2.54.2

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
@@ -1135,12 +1135,10 @@ var Curve = /** @class */ (function () {
1135
1135
  };
1136
1136
  Curve.prototype.updateFeeData = function () {
1137
1137
  return __awaiter(this, void 0, void 0, function () {
1138
- var feeData, e_2;
1138
+ var feeData;
1139
1139
  return __generator(this, function (_a) {
1140
1140
  switch (_a.label) {
1141
- case 0:
1142
- _a.trys.push([0, 2, , 3]);
1143
- return [4 /*yield*/, this.provider.getFeeData()];
1141
+ case 0: return [4 /*yield*/, this.provider.getFeeData()];
1144
1142
  case 1:
1145
1143
  feeData = _a.sent();
1146
1144
  if (feeData.maxFeePerGas === null || feeData.maxPriorityFeePerGas === null) {
@@ -1159,14 +1157,7 @@ var Curve = /** @class */ (function () {
1159
1157
  this.parseUnits(this.feeData.maxPriorityFeePerGas.toString(), "gwei") :
1160
1158
  feeData.maxPriorityFeePerGas;
1161
1159
  }
1162
- return [3 /*break*/, 3];
1163
- case 2:
1164
- e_2 = _a.sent();
1165
- this.options.gasPrice = this.parseUnits('0', "gwei");
1166
- this.options.maxPriorityFeePerGas = this.parseUnits('0', "gwei");
1167
- this.options.maxFeePerGas = this.parseUnits('0', "gwei");
1168
- return [3 /*break*/, 3];
1169
- case 3: return [2 /*return*/];
1160
+ return [2 /*return*/];
1170
1161
  }
1171
1162
  });
1172
1163
  });
package/lib/utils.js CHANGED
@@ -62,7 +62,7 @@ import { curve, NETWORK_CONSTANTS } from "./curve.js";
62
62
  import { _getAllPoolsFromApi, _getFactoryAPYs, _getSubgraphData, _getVolumes, } from "./external-api.js";
63
63
  import ERC20Abi from './constants/abis/ERC20.json' assert { type: 'json' };
64
64
  import { L2Networks } from './constants/L2Networks.js';
65
- import { volumeNetworks } from "./constants/volumeNetworks";
65
+ import { volumeNetworks } from "./constants/volumeNetworks.js";
66
66
  export var ETH_ADDRESS = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee";
67
67
  // export const MAX_ALLOWANCE = curve.parseUnits(new BigNumber(2).pow(256).minus(1).toFixed(), 0);
68
68
  export var MAX_ALLOWANCE = BigInt("115792089237316195423570985008687907853269984665640564039457584007913129639935"); // 2**256 - 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/api",
3
- "version": "2.54.1",
3
+ "version": "2.54.2",
4
4
  "description": "JavaScript library for curve.fi",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",