{"id":17246551,"url":"https://github.com/andreid/qv_voting","last_synced_at":"2025-10-11T06:32:44.256Z","repository":{"id":48013569,"uuid":"189062919","full_name":"AndreiD/qv_voting","owner":"AndreiD","description":"Quadratic voting system with smart contract help","archived":false,"fork":false,"pushed_at":"2024-10-09T09:11:58.000Z","size":929,"stargazers_count":27,"open_issues_count":7,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-03T08:54:02.025Z","etag":null,"topics":["ballot","blockchain","dapp","ethereum","solidity","voting"],"latest_commit_sha":null,"homepage":null,"language":"Solidity","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AndreiD.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-05-28T16:15:35.000Z","updated_at":"2024-10-09T09:11:56.000Z","dependencies_parsed_at":"2025-04-14T05:32:11.655Z","dependency_job_id":"795fd395-1b53-4a72-bfc3-3d02f516461c","html_url":"https://github.com/AndreiD/qv_voting","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AndreiD/qv_voting","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiD%2Fqv_voting","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiD%2Fqv_voting/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiD%2Fqv_voting/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiD%2Fqv_voting/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndreiD","download_url":"https://codeload.github.com/AndreiD/qv_voting/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiD%2Fqv_voting/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006453,"owners_count":26084108,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ballot","blockchain","dapp","ethereum","solidity","voting"],"created_at":"2024-10-15T06:34:24.678Z","updated_at":"2025-10-11T06:32:44.221Z","avatar_url":"https://github.com/AndreiD.png","language":"Solidity","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Quadratic Voting with Smart Contracts\n\n# Outdated, use with care!\n\n### QV Voting on the Ethereum Blockchain via a Smart Contract\n\nFell free to use this repository for anything you want. The code is free as in beer, and I require no attribution. I highly appreciate suggestions and you can contact me via the \u003ca href=\"https://github.com/AndreiD/qv_voting/issues\"\u003eissues page\u003c/a\u003e.\n\n### Quick Overview\n\nNotice in the picture below that to cast 5 votes you have to spend 25 Credits.\n\n\u003cimg alt=\"Quadratic Voting with Smart Contracts Overview Image\" src=\"https://raw.githubusercontent.com/AndreiD/qv_voting/master/assets/qv_1.jpeg\"/\u003e\n\nfrom Radical Markets: Uprooting Capitalism and Democracy for a Just Society!\n\nSo 1 credit gives you 1 vote, 4 credits gives you 2 votes, 9 credits - 3 votes and so on.\nWhy is this important ? Checkout the \u003ca href=\"https://github.com/AndreiD/qv_voting#learn-more-about-qv-voting\"\u003eexplanation section\u003c/a\u003e\n\n### Process\n\nUsually a KYC (or by using some electronic SSN, employees id etc), each person is give PERIODICALLY a number of tokens. They can keep it, or spend it to vote for the issues they care about.\nEverything is tracked at blockchain level (usually a private one).\n\n\u003cimg alt=\"Quadratic Voting with Smart Contracts Overview Image 2\" src=\"https://raw.githubusercontent.com/AndreiD/qv_voting/master/assets/qv_2.jpeg\"/\u003e Picture by https://twitter.com/eximchainexc?lang=en\n\n### Learn more about QV Voting\n\nCollective decision making using a majority rule of 50+1 is a standard procedure used by many firms and countries to decide whether a policy should be implemented. However, this\nmechanism is subject to the “tiranny of the majority” and therefore may give rise to situations that deviate the collective decision-making process from optimality (Posner and Weyl, 2014).\nConsider for instance a minority that care much more intensely about getting a public good\n(e.g. a road or a anti-discrimination law) than the majority does for the opposite outcome.\nWith the use of a simple majoritarian rule it might be the case that the losses caused to the\nmajority are greater than the benefits provided to the majority, an inefficient outcome from an\nutilitarian point of view. More generally, take a binary collective decision with a distribution of\npreferences such that preferring one of the choices is represented by a positive valuation whereas\npreferring the complementary choice is represented by a negative valuation. A majority voting\nsystem will lead to an inefficient outcome when the expected value and the median value are\non opposite sides of the valuation space.\n\nThe Quadratic Voting mechanism (henceforth QV) proposed by Weyl (2013) is a novel\nelectoral design which can yield more efficient outcomes than a majority voting system in\nthese situations. Under the QV mechanism individuals buy votes at a quadratic unit cost\nand receive a reimbursement equal to the average of the others’ expenditures in votes. Hence,\nthe marginal cost of an additional vote is proportional to the votes already purchased, and\nthe marginal benefit of an additional vote is proportional to the cardinal value of changing\nthe policy. Furthermore, because individuals receive a reimbursement equal to the average of\nothers’ payment, the mechanism is budget balanced. In addition, QV tries to resolve other\nproblems of mechanism design such as the collusion problem of the Vickrey-Clarke-Groves\n(VCG) mechanism, and the information problems of the Expected Externality mechanism,\nwhere a social planner needs to know the distribution of the valuations that agents have.\n\nyou can read more here: https://pdfs.semanticscholar.org/974c/ee1137b4a56372af58772a88361b3ff4b9d6.pdf\n\n\nAccording to its authors Steven P. Lalley and E. Glen Weyl, Quadratic voting is claimed to achieve the greatest possible good for the greatest number of group members, although other proponents of Quadratic Voting state that this is only true approximately. It addresses issues of voting paradox and majority-rule.\n\nBased on market principles, each voter is endowed with a budget of “voice credits” that they may spend influencing the outcome of a range of decisions. If a participant has a strong preference for or against a particular decision, additional votes can be allocated. A vote pricing rule determines the cost of additional votes, whereby each vote increasingly becomes more expensive.\n\nThe quadratic nature of the voting means that a voter can use his or her votes more efficiently spread across many issues. For example, a voter with a budget of 16 vote credits can apply 1 vote credit to each of 16 issues. However, if they feel strongly about a single issue, they can apply 4 votes at the cost of 16 credits to a single issue. This will use their entire budget. This also means there is a large incentive to buy and sell votes, although using a strictly secret ballot gives some protection against vote buying as the purchase cannot be verified.\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.\n\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreid%2Fqv_voting","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreid%2Fqv_voting","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreid%2Fqv_voting/lists"}