@openocean.finance/openocean-sdk 1.2.90 → 1.2.91

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.
@@ -571,7 +571,7 @@ var Swap = /** @class */ (function () {
571
571
  from: this.wallet.address,
572
572
  to: to,
573
573
  data: data,
574
- value: +gmxFee === 0 ? new bn_js_1.default(value).add(new bn_js_1.default(gmxFee)).toNumber() : value,
574
+ value: +gmxFee > 0 ? new bn_js_1.default(value).add(new bn_js_1.default(gmxFee)).toNumber() : value,
575
575
  })];
576
576
  case 1:
577
577
  gas = _b.sent();
@@ -603,7 +603,7 @@ var Swap = /** @class */ (function () {
603
603
  .swap(invitee, path, amounts, swapAddr, swapExtraData)
604
604
  .estimateGas({
605
605
  from: this.wallet.address,
606
- value: +gmxFee === 0 ? new bn_js_1.default(value).add(new bn_js_1.default(gmxFee)).toNumber() : value,
606
+ value: +gmxFee > 0 ? new bn_js_1.default(value).add(new bn_js_1.default(gmxFee)).toNumber() : value,
607
607
  })];
608
608
  case 1:
609
609
  gas = _b.sent();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openocean.finance/openocean-sdk",
3
- "version": "1.2.90",
3
+ "version": "1.2.91",
4
4
  "description": "Openocean sdk",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {