impermax-sdk 2.1.164 → 2.1.165
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.
|
@@ -76,7 +76,7 @@ class OnchainInteractionsNftlpUniswapV3 extends onchainInteractionsNftlp_1.defau
|
|
|
76
76
|
const isEthA = await borrowableA.isETH();
|
|
77
77
|
const isEthB = await borrowableB.isETH();
|
|
78
78
|
// Borrow and mint
|
|
79
|
-
if ((borrowADelta > 0
|
|
79
|
+
if ((borrowADelta > 0 && depositADelta > 0) || (borrowBDelta > 0 && depositBDelta > 0)) {
|
|
80
80
|
// slightly increase borrowDelta in order to avoid amountUser to be dust
|
|
81
81
|
const actualBorrowADelta = Math.max(borrowADelta * this.getDust(), 0);
|
|
82
82
|
const actualBorrowBDelta = Math.max(borrowBDelta * this.getDust(), 0);
|