@hawksightco/hawk-sdk 1.3.90 → 1.3.92
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
CHANGED
|
@@ -2361,6 +2361,8 @@ class ClosePositionIfEmptyAutomation extends HawksightMeteoraAutomationCpi {
|
|
|
2361
2361
|
meteoraDlmmProgram: addresses_1.METEORA_DLMM_PROGRAM,
|
|
2362
2362
|
fuelAccount: fuelAccount,
|
|
2363
2363
|
}).instruction();
|
|
2364
|
+
// Make sure sure authority is not signer
|
|
2365
|
+
closePositionIx.keys[1].isSigner = false;
|
|
2364
2366
|
// Instruction via main hawksight contract
|
|
2365
2367
|
// @ts-ignore
|
|
2366
2368
|
const ix = yield anchor_1.Anchor.instance().iyfMain.methods
|
|
@@ -351,7 +351,8 @@ class MeteoraDlmmIxGenerator {
|
|
|
351
351
|
})));
|
|
352
352
|
console.log('Creating extension instruction...');
|
|
353
353
|
const extensionIx = yield anchor_1.Anchor.instance().iyfExtension.methods
|
|
354
|
-
.meteoraDlmmRedepositAutomation2(relativeLowerBinId, relativeUpperBinId,
|
|
354
|
+
.meteoraDlmmRedepositAutomation2(relativeLowerBinId, relativeUpperBinId, strategyType, //strategyParametersStrategyType,
|
|
355
|
+
_checkRange, strategyParametersParameters, remainingAccountsInfo)
|
|
355
356
|
.accounts({
|
|
356
357
|
farm: addresses_1.USDC_FARM,
|
|
357
358
|
userPda,
|