Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pcli: tx lp withdraw <position> #5069

Open
Tracked by #5010
erwanor opened this issue Feb 6, 2025 · 0 comments
Open
Tracked by #5010

pcli: tx lp withdraw <position> #5069

erwanor opened this issue Feb 6, 2025 · 0 comments
Assignees

Comments

@erwanor
Copy link
Member

erwanor commented Feb 6, 2025

We can withdraw a position multiple times using pcli.

Each time, the sequence number of the position increases.

We query the remote RPC to fetch the latest for the position so that we always compute an accurate balance commitment. This is important to do because the funding component will deposit rewards into that position, and our state might be stale.

@erwanor erwanor mentioned this issue Feb 6, 2025
30 tasks
@TalDerei TalDerei assigned erwanor and unassigned TalDerei Feb 6, 2025
conorsch pushed a commit that referenced this issue Feb 21, 2025
## Describe your changes

Now we can use `pcli tx withdraw <id>` to withdraw a position multiple
times, increasing its sequence. We fetch the reserves on every try so
that the balance commitment is always accurate.

To view the output, use `pcli v balance --by-note` this is unfortunate
but wontfix now.

## Issue ticket number and link
#5069 

## Checklist before requesting a review

- [ ] I have added guiding text to explain how a reviewer should test
these changes.

- [ ] If this code contains consensus-breaking changes, I have added the
"consensus-breaking" label. Otherwise, I declare my belief that there
are not consensus-breaking changes, for the following reason:

  > REPLACE THIS TEXT WITH RATIONALE (CAN BE BRIEF)

---------

Co-authored-by: Lucas Meier <[email protected]>
conorsch pushed a commit that referenced this issue Feb 21, 2025
## Describe your changes

Now we can use `pcli tx withdraw <id>` to withdraw a position multiple
times, increasing its sequence. We fetch the reserves on every try so
that the balance commitment is always accurate.

To view the output, use `pcli v balance --by-note` this is unfortunate
but wontfix now.

## Issue ticket number and link
#5069 

## Checklist before requesting a review

- [ ] I have added guiding text to explain how a reviewer should test
these changes.

- [ ] If this code contains consensus-breaking changes, I have added the
"consensus-breaking" label. Otherwise, I declare my belief that there
are not consensus-breaking changes, for the following reason:

  > REPLACE THIS TEXT WITH RATIONALE (CAN BE BRIEF)

---------

Co-authored-by: Lucas Meier <[email protected]>
cronokirby added a commit that referenced this issue Feb 27, 2025
## Describe your changes

Now we can use `pcli tx withdraw <id>` to withdraw a position multiple
times, increasing its sequence. We fetch the reserves on every try so
that the balance commitment is always accurate.

To view the output, use `pcli v balance --by-note` this is unfortunate
but wontfix now.

## Issue ticket number and link
#5069 

## Checklist before requesting a review

- [ ] I have added guiding text to explain how a reviewer should test
these changes.

- [ ] If this code contains consensus-breaking changes, I have added the
"consensus-breaking" label. Otherwise, I declare my belief that there
are not consensus-breaking changes, for the following reason:

  > REPLACE THIS TEXT WITH RATIONALE (CAN BE BRIEF)

---------

Co-authored-by: Lucas Meier <[email protected]>
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

No branches or pull requests

2 participants