@hawksightco/hawk-sdk 1.2.120 → 1.2.121
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.
|
@@ -2400,14 +2400,14 @@ class Transactions {
|
|
|
2400
2400
|
});
|
|
2401
2401
|
const { liquidity, amount0Max: amountX, amount1Max: amountY, } = yield (0, RaydiumIxGenerator_1.getLiquidityFromAmounts)(connection, params.poolState, params.amountX, params.amountY, params.tickLowerIndex, params.tickUpperIndex, params.slippage, true);
|
|
2402
2402
|
const wrapIxs = (0, functions_1.wrapSolIfMintIsWsol)(params.userWallet, params.userWallet, [
|
|
2403
|
-
{ mint: tokenMint0, amount: amountX },
|
|
2404
|
-
{ mint: tokenMint1, amount: amountY },
|
|
2403
|
+
{ mint: tokenMint0, amount: params.amountX },
|
|
2404
|
+
{ mint: tokenMint1, amount: params.amountY },
|
|
2405
2405
|
]);
|
|
2406
2406
|
const depositIx = yield this.ix.iyfMain.depositMultipleLamportPdaToken({
|
|
2407
2407
|
userWallet: params.userWallet,
|
|
2408
2408
|
deposit: [
|
|
2409
|
-
{ mint: tokenMint0, amount: amountX },
|
|
2410
|
-
{ mint: tokenMint1, amount: amountY },
|
|
2409
|
+
{ mint: tokenMint0, amount: params.amountX },
|
|
2410
|
+
{ mint: tokenMint1, amount: params.amountY },
|
|
2411
2411
|
],
|
|
2412
2412
|
});
|
|
2413
2413
|
const withdrawIx = yield this.ix.iyfMain.withdrawMultipleLamportPdaToken({
|
|
@@ -2608,8 +2608,8 @@ class Transactions {
|
|
|
2608
2608
|
}
|
|
2609
2609
|
const { liquidity, amount0Max: amountX, amount1Max: amountY, } = yield (0, RaydiumIxGenerator_1.getLiquidityFromAmounts)(connection, fetch.positionInfo.poolId, params.amountX, params.amountY, fetch.positionInfo.tickLowerIndex, fetch.positionInfo.tickUpperIndex, params.slippage, true);
|
|
2610
2610
|
const wrapIxs = (0, functions_1.wrapSolIfMintIsWsol)(params.userWallet, params.userWallet, [
|
|
2611
|
-
{ mint: tokenMint0, amount: amountX },
|
|
2612
|
-
{ mint: tokenMint1, amount: amountY },
|
|
2611
|
+
{ mint: tokenMint0, amount: params.amountX },
|
|
2612
|
+
{ mint: tokenMint1, amount: params.amountY },
|
|
2613
2613
|
]);
|
|
2614
2614
|
const unwrapSolIx = (0, functions_1.unwrapSolIfMintIsWsol)(params.userWallet, [
|
|
2615
2615
|
tokenMint0,
|
|
@@ -2618,8 +2618,8 @@ class Transactions {
|
|
|
2618
2618
|
const depositIx = yield this.ix.iyfMain.depositMultipleLamportPdaToken({
|
|
2619
2619
|
userWallet: params.userWallet,
|
|
2620
2620
|
deposit: [
|
|
2621
|
-
{ mint: fetch.poolStateInfo.tokenMint0, amount: amountX },
|
|
2622
|
-
{ mint: fetch.poolStateInfo.tokenMint1, amount: amountY },
|
|
2621
|
+
{ mint: fetch.poolStateInfo.tokenMint0, amount: params.amountX },
|
|
2622
|
+
{ mint: fetch.poolStateInfo.tokenMint1, amount: params.amountY },
|
|
2623
2623
|
],
|
|
2624
2624
|
});
|
|
2625
2625
|
const withdrawIx = yield this.ix.iyfMain.withdrawMultipleLamportPdaToken({
|