@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.
@@ -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) && !isCoveredCall && collateralAmount.gt(netPremiun)) {
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);