@hawksightco/hawk-sdk 1.3.131 → 1.3.133
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 -2
- package/dist/src/meteora.js +3 -3
- package/package.json +1 -1
package/dist/src/hsToMeteora.js
CHANGED
|
@@ -2290,7 +2290,7 @@ class MeteoraDlmmClaimReward2Automation extends HawksightMeteoraAutomationCpi {
|
|
|
2290
2290
|
})
|
|
2291
2291
|
.remainingAccounts(this.ix.keys.slice(10))
|
|
2292
2292
|
.instruction();
|
|
2293
|
-
console.log(`claimReward
|
|
2293
|
+
console.log(`meteoraDlmmProgram1`, claimReward.keys[10].pubkey.toString());
|
|
2294
2294
|
const sighash = util.sighash("meteora_dlmm_claim_reward_2_automation");
|
|
2295
2295
|
claimReward.data.set(sighash, 0);
|
|
2296
2296
|
// Instruction via main hawksight contract
|
|
@@ -2304,7 +2304,7 @@ class MeteoraDlmmClaimReward2Automation extends HawksightMeteoraAutomationCpi {
|
|
|
2304
2304
|
})
|
|
2305
2305
|
.remainingAccounts(claimReward.keys.slice(2))
|
|
2306
2306
|
.instruction();
|
|
2307
|
-
console.log(`
|
|
2307
|
+
console.log(`meteoraDlmmProgram2`, ix.keys[11].pubkey.toString());
|
|
2308
2308
|
// Override the instruction
|
|
2309
2309
|
this._ix = ix;
|
|
2310
2310
|
});
|
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;
|