@hawksightco/hawk-sdk 1.3.68 → 1.3.70
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 +9 -9
- package/package.json +1 -1
package/dist/src/hsToMeteora.js
CHANGED
|
@@ -2544,16 +2544,16 @@ class MeteoraDlmmWithdraw2Automation extends HawksightMeteoraAutomationCpi {
|
|
|
2544
2544
|
// Adjust by token type
|
|
2545
2545
|
const pdaTokenType = (_a = this.opt) === null || _a === void 0 ? void 0 : _a.pdaTokenType;
|
|
2546
2546
|
if (pdaTokenType === types_1.TokenType.LTA) {
|
|
2547
|
-
this.ix.keys[
|
|
2548
|
-
this.ix.keys[
|
|
2547
|
+
this.ix.keys[7].pubkey = util.generateLimitToken(this.userPda, tokenXMint);
|
|
2548
|
+
this.ix.keys[8].pubkey = util.generateLimitToken(this.userPda, tokenYMint);
|
|
2549
2549
|
}
|
|
2550
2550
|
else if (pdaTokenType === types_1.TokenType.STA) {
|
|
2551
|
-
this.ix.keys[
|
|
2552
|
-
this.ix.keys[
|
|
2551
|
+
this.ix.keys[7].pubkey = util.generateUserPdaStorageAccount(this.userPda, tokenXMint);
|
|
2552
|
+
this.ix.keys[8].pubkey = util.generateUserPdaStorageAccount(this.userPda, tokenYMint);
|
|
2553
2553
|
}
|
|
2554
2554
|
else {
|
|
2555
|
-
this.ix.keys[
|
|
2556
|
-
this.ix.keys[
|
|
2555
|
+
this.ix.keys[7].pubkey = util.generateAta(this.userPda, tokenXMint, tokenXMintInfo.info.owner);
|
|
2556
|
+
this.ix.keys[8].pubkey = util.generateAta(this.userPda, tokenYMint, tokenYMintInfo.info.owner);
|
|
2557
2557
|
}
|
|
2558
2558
|
// Generate IX via extension contract
|
|
2559
2559
|
// @ts-ignore
|
|
@@ -2567,13 +2567,13 @@ class MeteoraDlmmWithdraw2Automation extends HawksightMeteoraAutomationCpi {
|
|
|
2567
2567
|
hawksightAuthority,
|
|
2568
2568
|
position: this.ix.keys[0].pubkey,
|
|
2569
2569
|
lbPair: this.ix.keys[1].pubkey,
|
|
2570
|
-
binArrayBitmapExtension: this.ix.keys[2].pubkey,
|
|
2570
|
+
binArrayBitmapExtension: addresses_1.METEORA_DLMM_PROGRAM, //this.ix.keys[2].pubkey,
|
|
2571
2571
|
userTokenX: this.ix.keys[3].pubkey,
|
|
2572
2572
|
userTokenY: this.ix.keys[4].pubkey,
|
|
2573
2573
|
reserveX: this.ix.keys[5].pubkey,
|
|
2574
2574
|
reserveY: this.ix.keys[6].pubkey,
|
|
2575
|
-
tokenXMint
|
|
2576
|
-
tokenYMint
|
|
2575
|
+
tokenXMint,
|
|
2576
|
+
tokenYMint,
|
|
2577
2577
|
tokenXProgram: this.ix.keys[10].pubkey,
|
|
2578
2578
|
tokenYProgram: this.ix.keys[11].pubkey,
|
|
2579
2579
|
eventAuthority: this.ix.keys[13].pubkey,
|