ADD: LP to update addresses
Summary
LP's can't change or add on-record addresses. To change, need to withdraw then add back, which is cumbersome.
This issue should be considered for the backlog of the "LP User Experience Makeover"
When LPs add, they are saved by asset_address
and rune_address
. Often, they might only have one, but wish to add the other easily. Or they might want to update their addresses.
Implementation
LPs can do UPDATE:POOL:ADDRESS
from either/or their on-record address.
- perform validation it is coming from a valid LP
- perform validation the address is correct for the pool
- do nothing if fails validation
- over-write the desired address
**Bonus, single-sided to dual-sided. **
If the address doesn't already exist, then the LP is actually single-sided, wishing to go to dual-sided. Note, they might be dual-sided already with the same desired addresses.
- if address already entered, then collect LP_units and depositValues and add to dual-sided entry
- then delete the single-sided record.