Giter Site home page Giter Site logo

mquad's Introduction

mquad

This is a submission for the quadratic funding hackathon.

precondition

Use any up-to-date browser with metamask installed.

usage

Import private keys into metamask. There are 3 types of accounts:

  • administrators - can start/finish the QF voting round, approve funders and projects
  • projects - will receive tokens after funding is completed
  • funders - M+C holders who can vote for projects

Open the app, select kovan testnet and connect with metamask. The app has different interfaces for administrators and for any other account, depending on which account is currently open.

  1. Start QF round.

A QF round can be started by administrator, if the previous round is completed. QF round has a duration.

  1. Add funds.

Any M+C token holder can add funds to the QF pool. These tokens will be distributed among projects based on the results of voting. During voting, tokens are placed in the contract. Tokens cannot be added after the end of the QF round.

  1. Add projects.

Anyone can add a new project during the QF round. The entered address will receive tokens after voting.

  1. Approve projects.

The administrator approve projects.

  1. Funding.

Any approved address can QF-vote for any approved project utill the end of the QF round. One vote for each project is available. M+C tokens sent for voting are placed in the contract.

  1. Finish.

Administrator can finish current QF-round at any time. This is the most gas-consuming operation. All funded tokens are distributed between projects using QF math. If there are no voted projects, all tokens remain in the contract for the next QF round. It is possible that some small number of tokens remain in the contract as a result of rounding errors.

I used wtfisqf.com to check the correctness of qf calculations.

Watch or download the demo video.

Contract is deployed in the kovan testnet.

contacts

Feel free to communicate.

[email protected]

t.me/aqoleg

mquad's People

Contributors

aqoleg avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.