johnson86tw / quadratic-voting-contracts

Ethereum smart contracts for building QV applications on MACI.
GNU General Public License v3.0
7 stars 1 forks source link

Quadratic Voting Contracts

This project is about Ethereum smart contracts for running quadratic voting (QV). It can also be used as a starter to build more complicated QV applications on the minimal anti-collusion infrastructure (MACI).

Getting started

Run tests

Run scripts

How to design a QV application?

Quadratic voting is a way of making collective decisions, a tool to elicit individual preferences over a given set of options, and also called the demand-revealing process for public goods. See "Efficient collective decision-making, marginal cost pricing, and quadratic voting" for more details.

The idea is to associate a cost with a vote. Voters buy as many votes as they wish by paying the square of the number of votes they want to cast using some currency which is called “voice credit”. Each voter pays some voice credits for her votes, and a vote pricing rule is a quadratic function:

Cost to the voter = (Number of votes)^2

The cost to the voter, which is the payment for votes, may be through either an artificial currency or real money. So our degree of freedom is the design of the voice credit and the way of applying the voting results to the app.

There are two main considerations in designing a QV app:

  1. What's a unit of voice credit, how to distribute voice credits to the voters, and whether voters can retain voice credits for future votes?
  2. What functions do you want to execute according to the voting results?

Applications

Credits

This project is supported by the Ethereum Foundation ESP Grants and powered by the Privacy & Scaling Explorations team, thanks a lot!