@hawksightco/hawk-sdk 1.3.126 → 1.3.127
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 +7 -7
- package/package.json +1 -1
package/dist/src/hsToMeteora.js
CHANGED
|
@@ -2538,16 +2538,16 @@ class MeteoraDlmmWithdraw2Automation extends HawksightMeteoraAutomationCpi {
|
|
|
2538
2538
|
// Adjust by token type
|
|
2539
2539
|
const pdaTokenType = (_a = this.opt) === null || _a === void 0 ? void 0 : _a.pdaTokenType;
|
|
2540
2540
|
if (pdaTokenType === types_1.TokenType.LTA) {
|
|
2541
|
-
this.ix.keys[
|
|
2542
|
-
this.ix.keys[
|
|
2541
|
+
this.ix.keys[3].pubkey = util.generateLimitToken(this.userPda, tokenXMint);
|
|
2542
|
+
this.ix.keys[4].pubkey = util.generateLimitToken(this.userPda, tokenYMint);
|
|
2543
2543
|
}
|
|
2544
2544
|
else if (pdaTokenType === types_1.TokenType.STA) {
|
|
2545
|
-
this.ix.keys[
|
|
2546
|
-
this.ix.keys[
|
|
2545
|
+
this.ix.keys[3].pubkey = util.generateUserPdaStorageAccount(this.userPda, tokenXMint);
|
|
2546
|
+
this.ix.keys[4].pubkey = util.generateUserPdaStorageAccount(this.userPda, tokenYMint);
|
|
2547
2547
|
}
|
|
2548
2548
|
else {
|
|
2549
|
-
this.ix.keys[
|
|
2550
|
-
this.ix.keys[
|
|
2549
|
+
this.ix.keys[3].pubkey = util.generateAta(this.userPda, tokenXMint, tokenXMintInfo.info.owner);
|
|
2550
|
+
this.ix.keys[4].pubkey = util.generateAta(this.userPda, tokenYMint, tokenYMintInfo.info.owner);
|
|
2551
2551
|
}
|
|
2552
2552
|
// Generate IX via extension contract
|
|
2553
2553
|
// @ts-ignore
|
|
@@ -2558,7 +2558,7 @@ class MeteoraDlmmWithdraw2Automation extends HawksightMeteoraAutomationCpi {
|
|
|
2558
2558
|
hawksightAuthority,
|
|
2559
2559
|
position: this.ix.keys[0].pubkey,
|
|
2560
2560
|
lbPair: this.ix.keys[1].pubkey,
|
|
2561
|
-
binArrayBitmapExtension:
|
|
2561
|
+
binArrayBitmapExtension: this.ix.keys[2].pubkey,
|
|
2562
2562
|
userTokenX: this.ix.keys[3].pubkey,
|
|
2563
2563
|
userTokenY: this.ix.keys[4].pubkey,
|
|
2564
2564
|
reserveX: this.ix.keys[5].pubkey,
|