Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hackathon: GitxChange Polish, Test And Deploy A Quadratic Voting DAO #4

Merged
merged 1 commit into from
Jun 17, 2020

Conversation

keviinfoes
Copy link

Based on the hackathon performed the following steps:

  1. fixed compile errors.
  2. fixed no opcode errors (after deploy).
  3. efficiency adjustments in moloch.sol contract.
  4. logic adjustments in moloch.sol contract, main adjustments:
    • submitVote() -> removed the option to add new candidates based on new votes. Because of potential bugs in the current implementation and the fact that adding a new candidate during the vote gives a disadventage for the new candidate (less time).
    • submitVote() -> changed calculation of total quadratic votes. Previous was square root of total votes. New is add square root of votes per voter (minus old square root).
    • processProposal() -> check for equal amount of votes, returns no outcome.
  5. Added test for the quadratic funding changes.

The contract is deployed to the ropsten test network at address: 0x3f3B0f3EF096d893DCba8F9841F12120737C77E9

Constructor variables:
address for summoner: 0xEEFC1b0EC2C8609f93580f5CdeDF29997C351f39,
approved token: 0xb603cea165119701b58d56d10d2060fbfb3efad8 (WETH Ropsten),
period duration: 17280,
voting period: 35,
grace period: 35,
abort window: 5,
proposal deposit: 10,
dilution bond: 3,
processing reward: 1,
quadratic mode: 1(bool) (true)

Note that these adjustments DO NOT guarentee that there are no bugs. I would advise further testing, a detailed check of the code and an audit before deployment to mainnet.

Based on the hackathon performed the following steps:
1. fixed compile errors.
2. fixed no opcode errors (after deploy).
3. efficiency adjustments in moloch.sol contract.
4. logic adjustments in moloch.sol contract, main adjustments:
    - submitVote() -> removed the option to add new candidates based on new votes. Because of potential bugs in the current implementation and the fact that adding a new candidate during the vote gives a disadventage for the new candidate (less time).
    - submitVote() -> changed calculation of total quadratic votes. Previous was square root of total votes. New is add square root of votes per voter (minus old square root).
   - processProposal() -> check for equal amount of votes, returns no outcome.
@santisiri santisiri merged commit c7a4caf into DemocracyEarth:master Jun 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants