-
Notifications
You must be signed in to change notification settings - Fork 955
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
PoS: re-usable bonds and unbonds query #1518
Conversation
405cb92
to
8d4af14
Compare
I might be missing some way to call the function, but do the new functions need to be added to |
ah sry, my misunderstanding - I'll move it there instead |
moved the new function and types in 2c5f461 |
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
2c5f461
to
7b74871
Compare
* tomas/pos-bonds-query-reuse: changelog: add #1518 app/client/rpc: use enriched bonds and unbonds query shared/rpc: add bonds and unbonds details query enriched with extras
* origin/tomas/pos-bonds-query-reuse: changelog: add #1518 app/client/rpc: use enriched bonds and unbonds query shared/rpc: add bonds and unbonds details query enriched with extras
based on 0.17.0
The bonds and unbonds query calculations performed for the CLI are moved to the shared crate
fn enriched_bonds_and_unbonds
to allow re-use.Additionally, the withdrawable amounts didn't respect the current epoch (it was just a sum of unbonds) which is now checked properly.