Updates to LiquidityPositionsResponse
#4861
Labels
needs-refinement
unclear, incomplete, or stub issue that needs work
LiquidityPositionsResponse
#4861
After attempting a UI for LP positions in penumbra-zone/web#1786, there are some changes to LiquidityPositionsResponse that would make it easier to create LP-related UI's.
Proposal
Reasons for the additions:
position_id
prevents the need for consumers to match the index in the request with the responsenote_record
allows the response to contain the associated LP NFT. This allows subsequent requests to close/withdraw to know which source account to use for fees. Otherwise, the consumer needs to request all balances and do the matching themselves (an expensive operation). This would quite likely require database work to associate position ID's with base denoms.The text was updated successfully, but these errors were encountered: