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

Change Unstaking thaw period to start at the next Reward Era #1706

Closed
shannonwells opened this issue Oct 10, 2023 · 1 comment
Closed

Change Unstaking thaw period to start at the next Reward Era #1706

shannonwells opened this issue Oct 10, 2023 · 1 comment

Comments

@shannonwells
Copy link
Collaborator

shannonwells commented Oct 10, 2023

Description

Per the Design Doc, because unstaking affects rewards, the unstaking thaw period should be updated to begin at the next Reward Era. On an unstake, it should be a simple matter of calculating when that is and then set the thaw_at field of the UnlockChunk to take this into account.

Blocked by

#1578

@shannonwells
Copy link
Collaborator Author

Unstaking adds a new item to staking history, so it obviates the need for changing the thaw period. The staking history is how we know what the last complete staked era with any amount was

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants