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

Delegation query fixes #32

Merged
merged 4 commits into from
Apr 6, 2023
Merged

Conversation

chipshort
Copy link
Contributor

fixes #31

As mentioned in the issue, the unbondings actually do not count towards the Delegation and AllDelegations query.
I also double-checked this on a testnet.

While I was at it, I also checked some of the edge cases (like 0 amounts) and changed most of the error messages to the ones in the sdk.

@chipshort chipshort requested review from hashedone and ueco-jb April 5, 2023 08:22
Copy link
Contributor

@ueco-jb ueco-jb left a comment

Choose a reason for hiding this comment

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

LGTM
And I very much like the idea of commenting every error.

@ueco-jb
Copy link
Contributor

ueco-jb commented Apr 5, 2023

Some tests got removed and coverage decreased.
After that, I think it's a good idea to cut a new version.

@chipshort chipshort merged commit d5927d9 into main Apr 6, 2023
@chipshort chipshort deleted the 31-revert-unbonding-in-delegations branch April 6, 2023 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Staking / Undelegation calculation issue
2 participants