@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.
- package/lib/swapSdk/Swap.js +2 -2
- package/package.json +1 -1
package/lib/swapSdk/Swap.js
CHANGED
|
@@ -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
|
|
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
|
|
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();
|