galacticcouncil / galacticcouncil/hydration-node

Opengov locks

Open
#979 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
208
Forks
109
Avg merge
6d 3h
Merged PRs (30d)
3

Description

User had a warning that they are unable to pay for transaction fees despite showing `40,880.4714` HDX as transferrable.

User had:
- `400,000` HDX locked in Council elections
- `444,444` HDX locked in democracy (gov 1)
- `500,000` HDX locked as a decision deposit in opengov
- `1,000,000` HDX locked in an opengov referendum

In our UI, this gave a balance of `-461,339` HDX.

Address: `7Hsq5RH9xUtPWFZMGXtoVWNd4CEjpJWsidf7bcGwNwdxp9Ha`

![telegram-cloud-photo-size-2-5438588843952564518-x](https://github.com/user-attachments/assets/085a9bc6-319d-4fc0-b70b-92323386b109)

![telegram-cloud-photo-size-4-6014941771102012124-y](https://github.com/user-attachments/assets/85ddec91-272a-41b0-beec-a54a86de6c7d)

On Polkadot OpenGov, it is not possible to vote in referenda using tokens that are used for DD - so it should not have been possible for the user to vote with `1,000,000` HDX.

polkadot.js apps and our UI then did not overlap the locked and reserved balances, meaning that the user was unable to pay transaction fees and became "bricked".

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.