mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-08-25 14:11:09 +00:00
The remove-liquidity sheet burned from a single LP holding the detail page picked. A pool position can span several LP accounts (each add mints a fresh one), so add a "Remove from" account selector above the actions: picking an account repoints the burn and re-prices for its balance, so the percentage, the previewed A/B amounts, and the slippage floors all follow the chosen holding. It defaults to the largest holding. PoolDetailPage passes the pool's LP holdings (encoding-tolerant match) into the dialog; the selector filters them by account type and drives lpHoldingId + lpBalance on selection. Extend the remove-liquidity e2e test to assert the selector renders, preselects a real holding, and that the dialog's burn account tracks it.