@hawksightco/hawk-sdk 1.3.132 → 1.3.134
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 +2 -4
- package/dist/src/meteora.js +3 -3
- package/package.json +1 -1
package/dist/src/hsToMeteora.js
CHANGED
|
@@ -2262,8 +2262,8 @@ class MeteoraDlmmClaimReward2Automation extends HawksightMeteoraAutomationCpi {
|
|
|
2262
2262
|
const authority = this.authority;
|
|
2263
2263
|
const hawksightAuthority = addresses_1.HS_AUTHORITY;
|
|
2264
2264
|
// New meteora parameters
|
|
2265
|
-
const minBinId = this.ix.data.readInt32LE(
|
|
2266
|
-
const maxBinId = this.ix.data.readInt32LE(
|
|
2265
|
+
const minBinId = this.ix.data.readInt32LE(16);
|
|
2266
|
+
const maxBinId = this.ix.data.readInt32LE(20);
|
|
2267
2267
|
const remainingAccountsInfo = this.ix.data.subarray(24);
|
|
2268
2268
|
const rewardMint = this.ix.keys[4].pubkey;
|
|
2269
2269
|
const rewardMintInfo = AccountCache_1.AccountCache.get(rewardMint);
|
|
@@ -2290,7 +2290,6 @@ class MeteoraDlmmClaimReward2Automation extends HawksightMeteoraAutomationCpi {
|
|
|
2290
2290
|
})
|
|
2291
2291
|
.remainingAccounts(this.ix.keys.slice(10))
|
|
2292
2292
|
.instruction();
|
|
2293
|
-
console.log(`meteoraDlmmProgram1`, claimReward.keys[10].pubkey.toString());
|
|
2294
2293
|
const sighash = util.sighash("meteora_dlmm_claim_reward_2_automation");
|
|
2295
2294
|
claimReward.data.set(sighash, 0);
|
|
2296
2295
|
// Instruction via main hawksight contract
|
|
@@ -2304,7 +2303,6 @@ class MeteoraDlmmClaimReward2Automation extends HawksightMeteoraAutomationCpi {
|
|
|
2304
2303
|
})
|
|
2305
2304
|
.remainingAccounts(claimReward.keys.slice(2))
|
|
2306
2305
|
.instruction();
|
|
2307
|
-
console.log(`meteoraDlmmProgram2`, ix.keys[11].pubkey.toString());
|
|
2308
2306
|
// Override the instruction
|
|
2309
2307
|
this._ix = ix;
|
|
2310
2308
|
});
|
package/dist/src/meteora.js
CHANGED
|
@@ -1459,10 +1459,10 @@ class RemoveLiquidityBuilder {
|
|
|
1459
1459
|
console.warn(`Warn: Reward instruction not found! This may happen if pool has no rewards`);
|
|
1460
1460
|
return;
|
|
1461
1461
|
}
|
|
1462
|
-
const userPda = this.mainIxs[index].keys[
|
|
1463
|
-
const tokenMint = this.mainIxs[index].keys[
|
|
1462
|
+
const userPda = this.mainIxs[index].keys[0].pubkey;
|
|
1463
|
+
const tokenMint = this.mainIxs[index].keys[6].pubkey;
|
|
1464
1464
|
const ataToken = (0, functions_1.generateAta)(userPda, tokenMint);
|
|
1465
|
-
this.mainIxs[index].keys[
|
|
1465
|
+
this.mainIxs[index].keys[7].pubkey = ataToken;
|
|
1466
1466
|
}
|
|
1467
1467
|
}
|
|
1468
1468
|
exports.RemoveLiquidityBuilder = RemoveLiquidityBuilder;
|