decentdao / decent-contracts

Govern at startup speed
https://app.decentdao.org
MIT License
3 stars 3 forks source link

Allow for Proposer threshold and super majority basis #49

Closed herbig closed 1 year ago

herbig commented 1 year ago

Description

From feedback with Bancor folks, one of the things they brought up was the ability to set a super majority for voting strategies.

Currently we only support a simple majority, but this change modifies LinearERC20Voting to have a parameter, basisNumerator, which designates the basis percentage to use when calculating whether a proposal passes.

Additionally while implementing this, I decided to add the ability to set a threshold for how many tokens are required to submit proposals.

Testing

I'll need to flesh out all of these tests to make ensure this works properly.. Opening this up for discussion.