@hawksightco/hawk-sdk 1.3.37 → 1.3.39
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 +3 -3
- package/package.json +1 -1
package/dist/src/hsToMeteora.js
CHANGED
|
@@ -2242,8 +2242,8 @@ class MeteoraDlmmDeposit2Automation extends HawksightMeteoraAutomationCpi {
|
|
|
2242
2242
|
* Modifies transaction keys for the purpose of depositing liquidity.
|
|
2243
2243
|
*/
|
|
2244
2244
|
replace() {
|
|
2245
|
-
this.
|
|
2246
|
-
this.
|
|
2245
|
+
this.ix.keys[9].pubkey = this.userPda;
|
|
2246
|
+
this.ix.keys[9].isSigner = false;
|
|
2247
2247
|
}
|
|
2248
2248
|
/**
|
|
2249
2249
|
* Replaces Meteora CPI with Hawksight CPI that calls the target Meteora CPI.
|
|
@@ -2323,7 +2323,7 @@ class MeteoraDlmmDeposit2Automation extends HawksightMeteoraAutomationCpi {
|
|
|
2323
2323
|
tokenYProgram: this.ix.keys[11].pubkey,
|
|
2324
2324
|
eventAuthority: this.ix.keys[12].pubkey,
|
|
2325
2325
|
meteoraDlmmProgram: this.ix.keys[13].pubkey,
|
|
2326
|
-
}).instruction();
|
|
2326
|
+
}).remainingAccounts(this.ix.keys.slice(14)).instruction();
|
|
2327
2327
|
const sighash = util.sighash("meteora_dlmm_deposit_2_automation");
|
|
2328
2328
|
depositIx.data.set(sighash, 0);
|
|
2329
2329
|
// Instruction via main hawksight contract
|