Agoric Components Library
  • Welcome!
    • πŸ‡Getting Started
  • Smart Contracts
    • DeFi
      • 🀝Lending Protocol
      • πŸ€–Arbitrage Bot
      • πŸ’§LP Stop Loss
      • πŸ“ˆLike-peg Swap AMM
    • NFTs
      • 🎴NFT Marketplace
      • πŸ•ΉοΈNFT Character Builder
      • πŸ–ΌοΈNFT Drop
      • βš–οΈAuction Mechanism
    • Governance
      • πŸ—³οΈVote Counter
      • πŸ‘«Governance Committee
    • Cross-chain
      • πŸ’²Price Feed Oracle
      • πŸ“ƒAkash Lease Management
      • πŸŒ‰Axelar Transfer
      • βš›οΈCosmos Hub ICA
      • ⏩IST & PSM Forwarder
  • Bounties
    • Open Bounties(none at this time)
    • Assigned Bounties
    • πŸ”ŽAgoric Swingset Contract Explorer
    • πŸ€–Inter Protocol Liquidation Bidding Bot
    • πŸ’»Contract Manages Akash-hosted Front End
  • πŸ“œLEGAL
    • Disclaimer
Powered by GitBook
On this page
  • Summary
  • Details
  • Explore on GitHub
  1. Smart Contracts
  2. Governance

Vote Counter

Evaluate governance results from questions with 2+ options

PreviousGovernanceNextGovernance Committee

Last updated 1 year ago

Limited Developer Support

All assets represented in this library are community built, which means limited support from the Agoric OpCo development team. Please use components, APIs, and front-ends with caution.

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
πŸ—³οΈ
Page cover image