@hawksightco/hawk-sdk 1.3.49 → 1.3.50
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 +8 -8
- package/package.json +1 -1
package/dist/src/hsToMeteora.js
CHANGED
|
@@ -2158,8 +2158,8 @@ class MeteoraDlmmClaimFee2Automation extends HawksightMeteoraAutomationCpi {
|
|
|
2158
2158
|
const authority = this.authority;
|
|
2159
2159
|
const hawksightAuthority = addresses_1.HS_AUTHORITY;
|
|
2160
2160
|
// Get token mints X and Y
|
|
2161
|
-
const tokenXMint = this.ix.keys[
|
|
2162
|
-
const tokenYMint = this.ix.keys[
|
|
2161
|
+
const tokenXMint = this.ix.keys[7].pubkey;
|
|
2162
|
+
const tokenYMint = this.ix.keys[8].pubkey;
|
|
2163
2163
|
const tokenXMintInfo = AccountCache_1.AccountCache.get(tokenXMint);
|
|
2164
2164
|
const tokenYMintInfo = AccountCache_1.AccountCache.get(tokenYMint);
|
|
2165
2165
|
if (!(!!tokenXMintInfo && !!tokenYMintInfo)) {
|
|
@@ -2171,16 +2171,16 @@ class MeteoraDlmmClaimFee2Automation extends HawksightMeteoraAutomationCpi {
|
|
|
2171
2171
|
// Adjust by token type
|
|
2172
2172
|
const pdaTokenType = (_a = this.opt) === null || _a === void 0 ? void 0 : _a.pdaTokenType;
|
|
2173
2173
|
if (pdaTokenType === types_1.TokenType.LTA) {
|
|
2174
|
-
this.ix.keys[5].pubkey = util.generateLimitToken(this.userPda,
|
|
2175
|
-
this.ix.keys[6].pubkey = util.generateLimitToken(this.userPda,
|
|
2174
|
+
this.ix.keys[5].pubkey = util.generateLimitToken(this.userPda, tokenXMint);
|
|
2175
|
+
this.ix.keys[6].pubkey = util.generateLimitToken(this.userPda, tokenYMint);
|
|
2176
2176
|
}
|
|
2177
2177
|
else if (pdaTokenType === types_1.TokenType.STA) {
|
|
2178
|
-
this.ix.keys[5].pubkey = util.generateUserPdaStorageAccount(this.userPda,
|
|
2179
|
-
this.ix.keys[6].pubkey = util.generateUserPdaStorageAccount(this.userPda,
|
|
2178
|
+
this.ix.keys[5].pubkey = util.generateUserPdaStorageAccount(this.userPda, tokenXMint);
|
|
2179
|
+
this.ix.keys[6].pubkey = util.generateUserPdaStorageAccount(this.userPda, tokenYMint);
|
|
2180
2180
|
}
|
|
2181
2181
|
else {
|
|
2182
|
-
this.ix.keys[5].pubkey = util.generateAta(this.userPda,
|
|
2183
|
-
this.ix.keys[6].pubkey = util.generateAta(this.userPda,
|
|
2182
|
+
this.ix.keys[5].pubkey = util.generateAta(this.userPda, tokenXMint, tokenXMintInfo.info.owner);
|
|
2183
|
+
this.ix.keys[6].pubkey = util.generateAta(this.userPda, tokenYMint, tokenYMintInfo.info.owner);
|
|
2184
2184
|
}
|
|
2185
2185
|
// Generate IX via extension contract
|
|
2186
2186
|
// @ts-ignore
|