-
Notifications
You must be signed in to change notification settings - Fork 143
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
fix: tweaks to thawing pool management #1048
Conversation
Signed-off-by: Tomás Migone <[email protected]>
fix: tweaks to thawing pool management
🚨 Report Summary
For more details view the full report in OpenZeppelin Code Inspector |
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 🥇
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
Signed-off-by: Tomás Migone <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎸
A few notes:
Provision
tokensThawing == 0
(empty pool)sharesThawing
is set to 0Delegation Pool
tokens ==0 && shares ==0
(empty pool) ortokens == thawingTokens
(pool fully thawing)sharesThawing
is set totokens == 0 && shares != 0
as a result of a delegation pool being fully slashedaddTokensToDelegationPool()
. This is the only delegation pool action that can be performed on invalid state pools