@hawksightco/hawk-sdk 1.1.3 → 1.1.4
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.
|
@@ -434,14 +434,14 @@ class Transactions {
|
|
|
434
434
|
skipInputTokenCheck: true,
|
|
435
435
|
}, hsToMeteora_1.meteoraToHawksightAutomationIxs);
|
|
436
436
|
const mainInstructions = [
|
|
437
|
-
// Initialize required ATA
|
|
438
|
-
...removeLiquidityBuilder.createAtaIxs,
|
|
437
|
+
// // Initialize required ATA
|
|
438
|
+
// ...removeLiquidityBuilder.createAtaIxs,
|
|
439
439
|
// Remove liquidity
|
|
440
440
|
...removeLiquidityBuilder.mainIxs,
|
|
441
441
|
// Re-deposit liquidity
|
|
442
442
|
...initPositionAndAddLiquidityBuilder.mainIxs,
|
|
443
|
-
// Sweep dust
|
|
444
|
-
...sweepLiquidityBuilder.mainIxs,
|
|
443
|
+
// // Sweep dust
|
|
444
|
+
// ...sweepLiquidityBuilder.mainIxs,
|
|
445
445
|
];
|
|
446
446
|
return (0, functions_1.createTransactionMeta)({
|
|
447
447
|
payer: params.userWallet,
|
package/dist/src/meteora.js
CHANGED
|
@@ -573,12 +573,12 @@ class RemoveLiquidityBuilder {
|
|
|
573
573
|
return;
|
|
574
574
|
}
|
|
575
575
|
const userPda = this.mainIxs[index].keys[1].pubkey;
|
|
576
|
-
const tokenXMint = this.mainIxs[index].keys[
|
|
577
|
-
const tokenYMint = this.mainIxs[index].keys[
|
|
576
|
+
const tokenXMint = this.mainIxs[index].keys[14].pubkey;
|
|
577
|
+
const tokenYMint = this.mainIxs[index].keys[15].pubkey;
|
|
578
578
|
const staTokenX = (0, functions_1.generateUserPdaStorageAccount)(userPda, tokenXMint);
|
|
579
579
|
const staTokenY = (0, functions_1.generateUserPdaStorageAccount)(userPda, tokenYMint);
|
|
580
|
-
this.mainIxs[index].keys[
|
|
581
|
-
this.mainIxs[index].keys[
|
|
580
|
+
this.mainIxs[index].keys[12].pubkey = staTokenX;
|
|
581
|
+
this.mainIxs[index].keys[13].pubkey = staTokenY;
|
|
582
582
|
}
|
|
583
583
|
/**
|
|
584
584
|
* Replaces reward token into storage token account
|