impermax-sdk 2.1.90 → 2.1.93
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.
|
@@ -59,7 +59,7 @@ class OnchainInteractionsNftlpUniswapV3 extends onchainInteractionsNftlp_1.defau
|
|
|
59
59
|
let approveB = 0;
|
|
60
60
|
let withCollateralTransfer = tokenId != -1 && (borrowADelta > 0 || borrowBDelta > 0 || depositADelta < 0 || depositBDelta < 0);
|
|
61
61
|
let doWithdrawEth = false;
|
|
62
|
-
|
|
62
|
+
let actions = [];
|
|
63
63
|
if (depositADelta > 0 && depositBDelta < 0 || depositBDelta > 0 && depositADelta < 0)
|
|
64
64
|
throw new Error("Opposite depositADelta and depositBDelta signs");
|
|
65
65
|
const router = this.getUniswapV3Router();
|
|
@@ -205,7 +205,9 @@ class OnchainInteractionsNftlpUniswapV3 extends onchainInteractionsNftlp_1.defau
|
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
if (ethValue > 0 || doWithdrawEth) {
|
|
208
|
-
actions.push(
|
|
208
|
+
//actions.push(await actionsGetter.methods.getWithdrawEthAction(
|
|
209
|
+
// this.getAccountAddress()
|
|
210
|
+
//).call());
|
|
209
211
|
}
|
|
210
212
|
return {
|
|
211
213
|
actions,
|
|
@@ -220,6 +222,7 @@ class OnchainInteractionsNftlpUniswapV3 extends onchainInteractionsNftlp_1.defau
|
|
|
220
222
|
return __awaiter(this, void 0, void 0, function* () {
|
|
221
223
|
const router = this.getUniswapV3Router();
|
|
222
224
|
console.log("router", router._address);
|
|
225
|
+
console.log("getNftlpAddress", yield this.getNftlp().getNftlpAddress());
|
|
223
226
|
console.log("tokenId", tokenId);
|
|
224
227
|
console.log("actions", actions);
|
|
225
228
|
console.log("permits", permits);
|