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

Fixed user voting power query #106

Merged
merged 2 commits into from
Sep 16, 2024

Conversation

dusan-maksimovic
Copy link
Contributor

query_user_voting_power() was just scaling the locked tokens without considering the validator power ratio for the current round.

@p-offtermatt
Copy link
Member

I think we should try to extract a common function here that we call from both, to avoid these discrepancies

@dusan-maksimovic
Copy link
Contributor Author

I think we should try to extract a common function here that we call from both, to avoid these discrepancies

Good point will do it.

Copy link
Member

@p-offtermatt p-offtermatt left a comment

Choose a reason for hiding this comment

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

LGTM!

@dusan-maksimovic dusan-maksimovic merged commit 93dc1d2 into main Sep 16, 2024
5 checks passed
@dusan-maksimovic dusan-maksimovic deleted the dusan/fix-query-user-voting-power branch September 16, 2024 09:42
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.

2 participants