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

Properly Account for slash_query_in_progress in Unbondings #981

Merged
merged 2 commits into from
Dec 5, 2023

Conversation

shellvish
Copy link
Contributor

@shellvish shellvish commented Nov 15, 2023

The unbonding algorithm currently doesn't properly account for slash_query_in_progress. It effectively assumes we want to re-distribute those validators stake to others before finding the "optimal" delegations after rebalancing.

This PR removes any delegations to slash_query_in_progress validators when considering stake to be distributed

Copy link

This pull request has been automatically marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. Thank you!

@github-actions github-actions bot added the Stale label Nov 30, 2023
Copy link
Collaborator

@sampocs sampocs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry for the delay! This looks great, thanks for doing this!

x/stakeibc/keeper/unbonding_records.go Show resolved Hide resolved
@github-actions github-actions bot removed the Stale label Dec 1, 2023
@shellvish shellvish merged commit 5a7b105 into main Dec 5, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants