@dhedge/v2-sdk 1.7.1 → 1.7.2
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/dist/v2-sdk.cjs.development.js +1 -3
- package/dist/v2-sdk.cjs.development.js.map +1 -1
- package/dist/v2-sdk.cjs.production.min.js +1 -1
- package/dist/v2-sdk.cjs.production.min.js.map +1 -1
- package/dist/v2-sdk.esm.js +1 -3
- package/dist/v2-sdk.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/services/lyra/trade.ts +1 -7
|
@@ -19794,9 +19794,7 @@ function _getLyraOptionTxData() {
|
|
|
19794
19794
|
txFunction = "closePosition";
|
|
19795
19795
|
setCollateral = currentCollateral.sub(collateralAmount); //cover short
|
|
19796
19796
|
|
|
19797
|
-
if (!isLong(filteredPosition[0].optionType) &&
|
|
19798
|
-
inputAmount = netPremiun.sub(collateralAmount);
|
|
19799
|
-
} else if (!isLong(filteredPosition[0].optionType) && isCoveredCall) {
|
|
19797
|
+
if (!isLong(filteredPosition[0].optionType) && isCoveredCall) {
|
|
19800
19798
|
inputAmount = netPremiun;
|
|
19801
19799
|
} else {
|
|
19802
19800
|
inputAmount = ethers.BigNumber.from(0);
|