Skip to content

Commit

Permalink
fix: Remove localhost filter
Browse files Browse the repository at this point in the history
  • Loading branch information
quangkeu95 committed Jan 6, 2025
1 parent 042d283 commit 5e39fe0
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/libs/seed_liquidity_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -774,15 +774,13 @@ export async function createSeedLiquidityLfgInstructions(
let cluster = opts?.cluster ?? "mainnet-beta";
// Initialize bin arrays and initialize position account in 1 tx
if (instructions.length > 1) {
if (cluster != "localhost") {
instructions.push(
await getEstimatedComputeUnitIxWithBuffer(
connection,
instructions,
payer,
),
);
}
instructions.push(
await getEstimatedComputeUnitIxWithBuffer(
connection,
instructions,
payer,
),
);

initializeBinArraysAndPositionIxs.push(instructions);
instructions = [];
Expand Down

0 comments on commit 5e39fe0

Please sign in to comment.