Structs§
Enums§
- Active
Threshold - The threshold of tokens that must be staked in order for this
voting module to be active. If this is not reached, this module
will response to
is_activequeries with false and proposal modules which respect active thresholds will not allow the creation of proposals. - Active
Threshold Error - Percentage
Threshold - A percentage of voting power that must vote yes for a proposal to pass. An example of why this is needed:
- Threshold
- The ways a proposal may reach its passing / failing threshold.
- Threshold
Error
Functions§
- assert_
valid_ absolute_ count_ threshold - assert_
valid_ percentage_ threshold - validate_
quorum - Asserts that a quorum <= 1. Quorums may be zero, to enable plurality-style voting.