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

Feat/unstake all at once #2584

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

aesedepece
Copy link
Member

Allow unstaking all the available stake at once, at a protocol level, by using a special constant that signals this intent.

drcpu-github and others added 13 commits January 23, 2025 20:55
This deprecates the old behavior to where nonces where purely
sequential, and instead adopts a monotonic non-sequential system
based on the epoch of the block that performed the latest user-
initiated action on the stake entry, i.e. the most recent stake or
unstake transaction.
Namely, apply a protocol-level "rule of convenience", where an
amount to unstake of u64::MAX actually means "unstake all my stake"
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

Successfully merging this pull request may close these issues.

2 participants