Page cover image

πŸ—³οΈVote Counter

Evaluate governance results from questions with 2+ options

Summary

These smart contracts extend Agoric’s governance capabilities to allow using a VoteCounter that correctly evaluates election results from questions with more than two options.

Details

The code includes two separate VoteCounters:

  1. VoteCounter evaluates votes for an arbitrary number of options and determines the single winner (plurality of direct votes with a rule for tiebreak)

  2. VoteCounter evaluates votes for an arbitrary number of options and determines the top N winners (based on number of direct votes with a rule for tiebreak)

Explore on GitHub

https://github.com/Agoric/agoric-sdk/pull/6515

Last updated