@hawksightco/hawk-sdk 1.2.110 → 1.2.112
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.
|
@@ -419,9 +419,9 @@ class IyfExtensionIxGenerator {
|
|
|
419
419
|
const tickArrayUpper = this.pda.raydium.generateRaydiumTickArrayPda(poolState, tickArrayUpperStartIndex);
|
|
420
420
|
const tickArrayBitmapExtension = this.pda.raydium.generateRaydiumTickArrayBitmapExtension(poolState);
|
|
421
421
|
const TICK_ARRAY_SIZE = 60;
|
|
422
|
-
const tickArray_1_index =
|
|
423
|
-
const tickArray_0_index = (0, functions_1.raydiumStartTickIndex)(
|
|
424
|
-
const tickArray_2_index = (0, functions_1.raydiumStartTickIndex)(
|
|
422
|
+
const tickArray_1_index = (0, functions_1.raydiumStartTickIndex)(tickCurrent, tickSpacing);
|
|
423
|
+
const tickArray_0_index = (0, functions_1.raydiumStartTickIndex)(tickArray_1_index - (tickSpacing * TICK_ARRAY_SIZE), tickSpacing);
|
|
424
|
+
const tickArray_2_index = (0, functions_1.raydiumStartTickIndex)(tickArray_1_index + (tickSpacing * TICK_ARRAY_SIZE), tickSpacing);
|
|
425
425
|
const tickArray_0 = this.pda.raydium.generateRaydiumTickArrayPda(poolState, tickArray_0_index);
|
|
426
426
|
const tickArray_1 = this.pda.raydium.generateRaydiumTickArrayPda(poolState, tickArray_1_index);
|
|
427
427
|
const tickArray_2 = this.pda.raydium.generateRaydiumTickArrayPda(poolState, tickArray_2_index);
|
|
@@ -210,8 +210,8 @@ class IyfMainIxGenerator {
|
|
|
210
210
|
})
|
|
211
211
|
.remainingAccounts(ix.keys.slice(2))
|
|
212
212
|
.instruction();
|
|
213
|
-
// Retain the
|
|
214
|
-
wrapIx.keys[1].
|
|
213
|
+
// Retain the mutable status of the authority
|
|
214
|
+
wrapIx.keys[1].isWritable = ix.keys[1].isWritable;
|
|
215
215
|
// Generate iyf extension instruction
|
|
216
216
|
return wrapIx;
|
|
217
217
|
});
|