@curvefi/api 2.53.2 → 2.53.4

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
@@ -638,12 +638,12 @@ var Curve = /** @class */ (function () {
638
638
  switch (_b.label) {
639
639
  case 0:
640
640
  currentPoolIds = Object.keys(this.constants.STABLE_NG_FACTORY_POOLS_DATA);
641
- lastPoolIdx = currentPoolIds.length === 0 ? -1 : Number(currentPoolIds[currentPoolIds.length - 1].split("-")[2]);
641
+ lastPoolIdx = currentPoolIds.length === 0 ? -1 : Number(currentPoolIds[currentPoolIds.length - 1].split("-")[3]);
642
642
  _a = lowerCasePoolDataAddresses;
643
- return [4 /*yield*/, getFactoryPoolData.call(this, lastPoolIdx + 1)];
643
+ return [4 /*yield*/, getFactoryPoolData.call(this, lastPoolIdx + 1, undefined, this.constants.ALIASES.stable_ng_factory)];
644
644
  case 1:
645
645
  poolData = _a.apply(void 0, [_b.sent()]);
646
- this.constants.STABLE_NG_FACTORY_POOLS_DATA = __assign(__assign({}, this.constants.FACTORY_POOLS_DATA), poolData);
646
+ this.constants.STABLE_NG_FACTORY_POOLS_DATA = __assign(__assign({}, this.constants.STABLE_NG_FACTORY_POOLS_DATA), poolData);
647
647
  this._updateDecimalsAndGauges(this.constants.STABLE_NG_FACTORY_POOLS_DATA);
648
648
  return [2 /*return*/, Object.keys(poolData)];
649
649
  }
@@ -403,7 +403,7 @@ implementationIdx, methodName, oracleAddress, estimateGas) {
403
403
  return [4 /*yield*/, curve.updateFeeData()];
404
404
  case 2:
405
405
  _a.sent();
406
- return [4 /*yield*/, contract.deploy_metapool(basePool, name, symbol, coin, _A, _fee, offpegFeeMultiplier, emaTime, implementationIdx, assetType, methodId, oracleAddress, __assign(__assign({}, curve.options), { gasLimit: gasLimit }))];
406
+ return [4 /*yield*/, contract.deploy_metapool(basePool, name, symbol, coin, _A, _fee, _offpegFeeMultiplier, emaTime, implementationIdx, assetType, methodId, oracleAddress, __assign(__assign({}, curve.options), { gasLimit: gasLimit }))];
407
407
  case 3: return [2 /*return*/, _a.sent()];
408
408
  }
409
409
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/api",
3
- "version": "2.53.2",
3
+ "version": "2.53.4",
4
4
  "description": "JavaScript library for curve.fi",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",