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: Use useCanFastUnstake query #2377

Merged
merged 4 commits into from
Jan 2, 2025
Merged

feat: Use useCanFastUnstake query #2377

merged 4 commits into from
Jan 2, 2025

Conversation

rossbulat
Copy link
Collaborator

@rossbulat rossbulat commented Jan 1, 2025

Determines whether nominators can fast unstake via Staking API call canFastUnstake, and discontinues legacy era stakers scraping from the node.

  • Replace local era stakers checking with Staking API call
  • Retrieve lastExposed from Staking API and use in FastUnstake context
  • Only enable Fast Unstake button if Staking API is enabled
  • Tests and polish

@rossbulat rossbulat marked this pull request as ready for review January 2, 2025 02:59
@rossbulat rossbulat merged commit 0d99cbb into main Jan 2, 2025
7 checks passed
@rossbulat rossbulat deleted the rb-can-fast-unstake-api branch January 2, 2025 03:00
@rossbulat rossbulat mentioned this pull request Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

1 participant