impermax-sdk 2.1.77 → 2.1.78
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.
|
@@ -54,7 +54,7 @@ class OnchainInteractionsNftlpUniswapV3 extends onchainInteractionsNftlp_1.defau
|
|
|
54
54
|
let ethValue = 0;
|
|
55
55
|
let approveA = 0;
|
|
56
56
|
let approveB = 0;
|
|
57
|
-
let withCollateralTransfer = borrowADelta > 0 || borrowBDelta > 0 || depositADelta < 0 || depositBDelta < 0;
|
|
57
|
+
let withCollateralTransfer = tokenId != -1 && (borrowADelta > 0 || borrowBDelta > 0 || depositADelta < 0 || depositBDelta < 0);
|
|
58
58
|
let doWithdrawEth = false;
|
|
59
59
|
const actions = [];
|
|
60
60
|
if (depositADelta > 0 && depositBDelta < 0 || depositBDelta > 0 && depositADelta < 0)
|