Module threshold

Source

Structs§

ActiveThresholdResponse

Enums§

ActiveThreshold
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_active queries with false and proposal modules which respect active thresholds will not allow the creation of proposals.
ActiveThresholdError
PercentageThreshold
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.
ThresholdError

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.