@curvefi/api 1.9.0 → 1.9.1

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
@@ -380,7 +380,7 @@ var Curve = /** @class */ (function () {
380
380
  feeData.maxFeePerGas;
381
381
  this.options.maxPriorityFeePerGas = this.feeData.maxPriorityFeePerGas !== undefined ?
382
382
  ethers_1.ethers.utils.parseUnits(this.feeData.maxPriorityFeePerGas.toString(), "gwei") :
383
- feeData.maxFeePerGas;
383
+ feeData.maxPriorityFeePerGas;
384
384
  _d.label = 7;
385
385
  case 7: return [2 /*return*/];
386
386
  }
package/lib/pools.js CHANGED
@@ -2805,7 +2805,7 @@ var exchange = function (inputCoin, outputCoin, amount, maxSlippage) {
2805
2805
  _d.sent();
2806
2806
  return [4 /*yield*/, contract.estimateGas.exchange(poolAddress, inputCoinAddress, outputCoinAddress, _amount, _minRecvAmount, __assign(__assign({}, curve_1.curve.constantOptions), { value: value }))];
2807
2807
  case 4:
2808
- gasLimit = (_d.sent()).mul(200).div(100);
2808
+ gasLimit = (_d.sent()).mul(130).div(100);
2809
2809
  return [4 /*yield*/, contract.exchange(poolAddress, inputCoinAddress, outputCoinAddress, _amount, _minRecvAmount, __assign(__assign({}, curve_1.curve.options), { value: value, gasLimit: gasLimit }))];
2810
2810
  case 5: return [2 /*return*/, (_d.sent()).hash];
2811
2811
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curvefi/api",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
4
4
  "description": "JavaScript library for curve.fi",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {