@curvefi/api 2.61.3 → 2.61.5

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.d.ts CHANGED
@@ -30,7 +30,7 @@ declare class Curve implements ICurve {
30
30
  maxPriorityFeePerGas?: number;
31
31
  };
32
32
  constantOptions: {
33
- gasLimit: number;
33
+ gasLimit?: number;
34
34
  };
35
35
  options: {
36
36
  gasPrice?: number | bigint;
package/lib/curve.js CHANGED
@@ -1046,7 +1046,7 @@ var Curve = /** @class */ (function () {
1046
1046
  ], cTokens = _d[0], yTokens = _d[1], ycTokens = _d[2], aTokens = _d[3];
1047
1047
  customAbiTokens = __spreadArray(__spreadArray(__spreadArray(__spreadArray([], cTokens, true), yTokens, true), ycTokens, true), aTokens, true);
1048
1048
  if (this.chainId === 5000) {
1049
- this.constantOptions = { gasLimit: 9000000 };
1049
+ this.constantOptions = {};
1050
1050
  }
1051
1051
  this.multicallProvider = new MulticallProvider(this.chainId, this.provider);
1052
1052
  if (!this.signer) return [3 /*break*/, 15];
@@ -64,7 +64,7 @@ export interface ICurve {
64
64
  maxPriorityFeePerGas?: number;
65
65
  };
66
66
  constantOptions: {
67
- gasLimit: number;
67
+ gasLimit?: number;
68
68
  };
69
69
  options: {
70
70
  gasPrice?: number | bigint;
package/lib/utils.js CHANGED
@@ -1020,7 +1020,7 @@ export var getBasePools = function () { return __awaiter(void 0, void 0, void 0,
1020
1020
  factoryMulticallContract = curve.contracts[curve.constants.ALIASES['stable_ng_factory']].multicallContract;
1021
1021
  _a = Number;
1022
1022
  _c = (_b = curve).formatUnits;
1023
- return [4 /*yield*/, factoryContract.base_pool_count(curve.constantOptions)];
1023
+ return [4 /*yield*/, factoryContract.base_pool_count()];
1024
1024
  case 1:
1025
1025
  basePoolCount = _a.apply(void 0, [_c.apply(_b, [_d.sent(), 0])]);
1026
1026
  calls = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/api",
3
- "version": "2.61.3",
3
+ "version": "2.61.5",
4
4
  "description": "JavaScript library for curve.fi",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",