Skip to content

fix(dlmm): remove duplicated instructions in remove liquidity#274

Open
aspnxdd wants to merge 3 commits into
MeteoraAg:mainfrom
aspnxdd:fix/remove-liquidity-deduped-create-ata-ix
Open

fix(dlmm): remove duplicated instructions in remove liquidity#274
aspnxdd wants to merge 3 commits into
MeteoraAg:mainfrom
aspnxdd:fix/remove-liquidity-deduped-create-ata-ix

Conversation

@aspnxdd

@aspnxdd aspnxdd commented Mar 17, 2026

Copy link
Copy Markdown

In the dlmm.removeLiquidity function, the create ATA for the user and fee owner instructions are added to each bin range transaction, so, the instructions are unnecessary duplicated.

In this PR I propose to only add the create ATA ix in the first iteration of the bin range for loop.

Despite the createATA ixs being idempotent, it's taking unnecessary space in the final transaction.

@aspnxdd aspnxdd changed the title (fix):remove duplicated create token ata ixs in remove liquidity fix(dlmm): remove duplicated instructions in remove liquidity Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant