c-layer / contracts

C-Layer Ethereum monorepo
MIT License
73 stars 14 forks source link

Voting contract should allow the definition of voting rules (quorum, min participants, ...) based on resolution hash. #22

Closed sirhill closed 4 years ago

sirhill commented 4 years ago

Currently exists only one governance rule (duration, minScore, quorum) at a time. The governance rule is stored for each votes.

It is proposed to allow the definition of multiple governance rules which should be automatically selected at the creation of a new proposal based on the resolution hash (and other attributes, if needs were to be identified). The rational is to have a different quorum and other rule attributes depending on the impact of the resolutionHash which will potentially be executed.

sirhill commented 4 years ago

Implementation is covered with the following commit: https://github.com/c-layer/contracts/commit/ec3578785817b9a89614ddc8972fd83528838071