@curvefi/api 2.58.4 → 2.58.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.
@@ -1843,13 +1843,16 @@ var PoolTemplate = /** @class */ (function () {
1843
1843
  if (this.rewardsOnly())
1844
1844
  throw Error("".concat(this.name, " has Rewards-Only Gauge. Use claimRewards instead"));
1845
1845
  contract = curve.chainId === 1 ? curve.contracts[curve.constants.ALIASES.minter].contract : curve.contracts[curve.constants.ALIASES.gauge_factory].contract;
1846
+ return [4 /*yield*/, curve.updateFeeData()];
1847
+ case 1:
1848
+ _e.sent();
1846
1849
  _c = mulBy1_3;
1847
1850
  _d = DIGas;
1848
1851
  return [4 /*yield*/, contract.mint.estimateGas(this.gauge, curve.constantOptions)];
1849
- case 1:
1852
+ case 2:
1850
1853
  gasLimit = _c.apply(void 0, [_d.apply(void 0, [_e.sent()])]);
1851
1854
  return [4 /*yield*/, contract.mint(this.gauge, __assign(__assign({}, curve.options), { gasLimit: gasLimit }))];
1852
- case 2: return [2 /*return*/, (_e.sent()).hash];
1855
+ case 3: return [2 /*return*/, (_e.sent()).hash];
1853
1856
  }
1854
1857
  });
1855
1858
  });
@@ -1943,13 +1946,16 @@ var PoolTemplate = /** @class */ (function () {
1943
1946
  gaugeContract = curve.contracts[this.gauge].contract;
1944
1947
  if (!("claim_rewards()" in gaugeContract))
1945
1948
  throw Error("".concat(this.name, " pool doesn't have such method"));
1949
+ return [4 /*yield*/, curve.updateFeeData()];
1950
+ case 1:
1951
+ _e.sent();
1946
1952
  _c = mulBy1_3;
1947
1953
  _d = DIGas;
1948
1954
  return [4 /*yield*/, gaugeContract.claim_rewards.estimateGas(curve.constantOptions)];
1949
- case 1:
1955
+ case 2:
1950
1956
  gasLimit = _c.apply(void 0, [_d.apply(void 0, [_e.sent()])]);
1951
1957
  return [4 /*yield*/, gaugeContract.claim_rewards(__assign(__assign({}, curve.options), { gasLimit: gasLimit }))];
1952
- case 2: return [2 /*return*/, (_e.sent()).hash];
1958
+ case 3: return [2 /*return*/, (_e.sent()).hash];
1953
1959
  }
1954
1960
  });
1955
1961
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/api",
3
- "version": "2.58.4",
3
+ "version": "2.58.5",
4
4
  "description": "JavaScript library for curve.fi",
5
5
  "main": "lib/index.js",
6
6
  "author": "Macket",