mirror of
https://github.com/logos-blockchain/lez-programs.git
synced 2026-08-25 22:21:16 +00:00
Add per-side account selectors to the create-pool form, sourced from the wallet's token holdings, so a user holding a token in several accounts chooses which funds each deposit. A single holding auto-selects. Mirrors the swap card: the selector lives inside the token input card, below the token button. AmmTokenAmountSurface gains an optional footer slot (unchanged when unset, so add-liquidity renders as before); TokenAmountInput fills it with a ProgramAccountSelector filtered on the token's base58 definitionId. - LiquidityPage fetches backend.tokenHoldings(), refetching when the wallet opens - NewPositionForm routes the chosen holdings into submissionSnapshot's createPool call; canConfirm now requires both holdings when creating a pool (add-liquidity is untouched — it enumerates holdings server-side) - create-pool.mjs selects the funding account for each side before submitting