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

Miscalculation Total HDX Balance #1348

Open
filippoweb3 opened this issue Jan 23, 2025 · 3 comments
Open

Miscalculation Total HDX Balance #1348

filippoweb3 opened this issue Jan 23, 2025 · 3 comments

Comments

@filippoweb3
Copy link

filippoweb3 commented Jan 23, 2025

In the total and transferable balance, one of the governance locks (OpenGov and Gov1) is subtracted.

Example:

9000 HDX total
8000 HDX transferable
1000 HDX locked in both gov systems

The account has 10000 HDX in total and should have 9000 HDX transferable. These numbers are correct on subscan and hydration app.

@ERussel
Copy link
Collaborator

ERussel commented Jan 23, 2025

Hey Fillipo! Thank you for raising the issue. We will investigate. It would be helpful to have an address on which the issue can be reproduced.

@ERussel
Copy link
Collaborator

ERussel commented Jan 23, 2025

We have found an address with similar (voting both in democracy and open gov) usecase but couldn't reproduce the issue

@filippoweb3
Copy link
Author

The problem seems to be related to the OpenGov lock cause removing OpenGov votes and unlock solved the issue. So basically:

  • Staking lock -> fine
  • Reuse staking lock for Gov1 -> fine
  • Reuse lock for OpenGov -> not fine, the amount is subtracted from Total and Transferrable

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

No branches or pull requests

3 participants
@ERussel @filippoweb3 and others