We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As a DAO member, I would like to know how close a vote is to passing.
Currently, from the queries included in the cw3 spec, it's a pain to figure this out (especially if there are a large number of voters).
So let's introduce a Tally { proposal_id: u64 } query, which will return info about the current vote tally. Imagine it would look something like this:
Tally { proposal_id: u64 }
#[derive(Serialize, Deserialize, Clone, PartialEq, JsonSchema, Debug)] pub struct VoteTallyResponse { // Current proposal status pub status: Status, // Required passing criteria pub threshold: ThresholdResponse, // Percentage of turnout pub quorum: Decimal, // Total number of votes pub total_votes: Uint128, // absolute number of votes pub total_weight: Uint128, // Tally's of the different votes pub votes: Votes, }
We should be able to extend the existing proposal implementation in both cw3-dao and cw3-flex-multisig for this.
cw3-dao
cw3-flex-multisig
The text was updated successfully, but these errors were encountered:
Add vote tally query in cw3-flex-multisig
4384a03
Resolves #90
f1dfa9f
Merge pull request #99 from DA0-DA0/zeke/gh-90
9924187
Add a tally query to dao and multisig
0xekez
No branches or pull requests
As a DAO member, I would like to know how close a vote is to passing.
Currently, from the queries included in the cw3 spec, it's a pain to figure this out (especially if there are a large number of voters).
So let's introduce a
Tally { proposal_id: u64 }
query, which will return info about the current vote tally. Imagine it would look something like this:We should be able to extend the existing proposal implementation in both
cw3-dao
andcw3-flex-multisig
for this.The text was updated successfully, but these errors were encountered: