@hawksightco/hawk-sdk 1.3.127 → 1.3.129
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.
- package/dist/src/hsToMeteora.js +10 -2
- package/package.json +1 -1
package/dist/src/hsToMeteora.js
CHANGED
|
@@ -2549,6 +2549,10 @@ class MeteoraDlmmWithdraw2Automation extends HawksightMeteoraAutomationCpi {
|
|
|
2549
2549
|
this.ix.keys[3].pubkey = util.generateAta(this.userPda, tokenXMint, tokenXMintInfo.info.owner);
|
|
2550
2550
|
this.ix.keys[4].pubkey = util.generateAta(this.userPda, tokenYMint, tokenYMintInfo.info.owner);
|
|
2551
2551
|
}
|
|
2552
|
+
const position = this.ix.keys[0].pubkey;
|
|
2553
|
+
const lbPair = this.ix.keys[1].pubkey;
|
|
2554
|
+
console.log(`withdraw position:`, position.toString());
|
|
2555
|
+
console.log(`withdraw lbPair:`, lbPair.toString());
|
|
2552
2556
|
// Generate IX via extension contract
|
|
2553
2557
|
// @ts-ignore
|
|
2554
2558
|
const withdrawIx = yield anchor_1.Anchor.instance().iyfExtension.methods
|
|
@@ -2556,8 +2560,8 @@ class MeteoraDlmmWithdraw2Automation extends HawksightMeteoraAutomationCpi {
|
|
|
2556
2560
|
.accounts({
|
|
2557
2561
|
userPda,
|
|
2558
2562
|
hawksightAuthority,
|
|
2559
|
-
position
|
|
2560
|
-
lbPair
|
|
2563
|
+
position,
|
|
2564
|
+
lbPair,
|
|
2561
2565
|
binArrayBitmapExtension: this.ix.keys[2].pubkey,
|
|
2562
2566
|
userTokenX: this.ix.keys[3].pubkey,
|
|
2563
2567
|
userTokenY: this.ix.keys[4].pubkey,
|
|
@@ -2584,6 +2588,10 @@ class MeteoraDlmmWithdraw2Automation extends HawksightMeteoraAutomationCpi {
|
|
|
2584
2588
|
})
|
|
2585
2589
|
.remainingAccounts(withdrawIx.keys.slice(2))
|
|
2586
2590
|
.instruction();
|
|
2591
|
+
const position2 = ix.keys[3].pubkey;
|
|
2592
|
+
const lbPair2 = ix.keys[4].pubkey;
|
|
2593
|
+
console.log(`withdraw position2:`, position2.toString());
|
|
2594
|
+
console.log(`withdraw lbPair2:`, lbPair2.toString());
|
|
2587
2595
|
// Override the instruction
|
|
2588
2596
|
this._ix = ix;
|
|
2589
2597
|
});
|