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
Implement Staked Native Token Voting module #310
Comments
Is this implementation secure though? There's no way to query staked native token by height no? |
Should be fine actually! Remember the tokens are bonded and can't be transferred. |
Yeah, you're totally right! Wondering how we should implement the |
This would be the one edge case to worry about... if voting period is longer than unbonding period. Could enforce this via the UI? |
ION DAO has done this here: https://github.com/many-things/ion-dao-contracts/blob/dev/contracts/stake/src/contract.rs |
My main concern here say if someone wanted to use JUNO for a DAO is that we would need to support a mechanism so said user's do not lose their rewards and keep track of staked balances |
Believe this is done right? |
Related to #65.
This is the simple version. Basically, we just implement the
VotingPowerAtHeight
query by querying a user's staked balance. AND THAT'S IT!Now querying a user's staked balance might be a bit tricky, but the
AllDelagations
query should return a list of the user's delegations and you can sum them up.The text was updated successfully, but these errors were encountered: