impermax-sdk 2.1.562 → 2.1.563
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.
|
@@ -158,9 +158,9 @@ class OnchainInteractionsNftlpGenericCL extends onchainInteractionsNftlp_1.defau
|
|
|
158
158
|
borrowADelta *= 1.0001;
|
|
159
159
|
if (isSwapAndClose) {
|
|
160
160
|
const priceSqrtX96 = await this.getNftlp().priceToSqrtX96();
|
|
161
|
-
console.log("priceSqrtX96", priceSqrtX96, priceSqrtX96.
|
|
161
|
+
console.log("priceSqrtX96", priceSqrtX96, priceSqrtX96.toString());
|
|
162
162
|
const sqrtPriceLimitX96 = priceSqrtX96.mul(SLIPPAGE_NUM).div(SLIPPAGE_DEN);
|
|
163
|
-
console.log("sqrtPriceLimitX96", sqrtPriceLimitX96, sqrtPriceLimitX96.
|
|
163
|
+
console.log("sqrtPriceLimitX96", sqrtPriceLimitX96, sqrtPriceLimitX96.toString());
|
|
164
164
|
actions.push(await actionsGetter.methods.getSwapAndRepayAction(0, await borrowableA.toBigNumber(-borrowADelta), sqrtPriceLimitX96, isEthA ? router._address : this.getAccountAddress()).call());
|
|
165
165
|
borrowADelta = 0;
|
|
166
166
|
}
|
|
@@ -193,9 +193,9 @@ class OnchainInteractionsNftlpGenericCL extends onchainInteractionsNftlp_1.defau
|
|
|
193
193
|
borrowBDelta *= 1.0001;
|
|
194
194
|
if (isSwapAndClose) {
|
|
195
195
|
const priceSqrtX96 = await this.getNftlp().priceToSqrtX96();
|
|
196
|
-
console.log("priceSqrtX96", priceSqrtX96, priceSqrtX96.
|
|
196
|
+
console.log("priceSqrtX96", priceSqrtX96, priceSqrtX96.toString());
|
|
197
197
|
const sqrtPriceLimitX96 = priceSqrtX96.mul(SLIPPAGE_DEN).div(SLIPPAGE_NUM);
|
|
198
|
-
console.log("sqrtPriceLimitX96", sqrtPriceLimitX96, sqrtPriceLimitX96.
|
|
198
|
+
console.log("sqrtPriceLimitX96", sqrtPriceLimitX96, sqrtPriceLimitX96.toString());
|
|
199
199
|
actions.push(await actionsGetter.methods.getSwapAndRepayAction(1, await borrowableB.toBigNumber(-borrowBDelta), sqrtPriceLimitX96, isEthB ? router._address : this.getAccountAddress()).call());
|
|
200
200
|
borrowBDelta = 0;
|
|
201
201
|
}
|