🐛 Fix missing unanimous quorum/threshold
This commit is contained in:
parent
c2d2df3254
commit
53ad7ed03d
2 changed files with 3 additions and 4 deletions
|
@ -23,7 +23,7 @@ const (
|
||||||
|
|
||||||
func ValidQuorums() []Quorum {
|
func ValidQuorums() []Quorum {
|
||||||
return []Quorum{
|
return []Quorum{
|
||||||
Simple,
|
Simple, Unanimous,
|
||||||
OneFifth, OneQuarter, OneThird, OneHalf,
|
OneFifth, OneQuarter, OneThird, OneHalf,
|
||||||
TwoThirds, TwoFifths,
|
TwoThirds, TwoFifths,
|
||||||
ThreeQuarters, ThreeFifths,
|
ThreeQuarters, ThreeFifths,
|
||||||
|
@ -97,7 +97,6 @@ func (q Quorum) IsSatisfied(possibleVotes, totalVotes int) bool {
|
||||||
case Unanimous:
|
case Unanimous:
|
||||||
return totalVotes >= possibleVotes
|
return totalVotes >= possibleVotes
|
||||||
default:
|
default:
|
||||||
panic("this code should never be reached⚜️")
|
panic("this code should never be reached")
|
||||||
}
|
}
|
||||||
return false
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@ const (
|
||||||
|
|
||||||
func ValidThresholds() []Threshold {
|
func ValidThresholds() []Threshold {
|
||||||
return []Threshold{
|
return []Threshold{
|
||||||
Simple,
|
Simple, Unanimous,
|
||||||
OneFifth, OneQuarter, OneThird, OneHalf,
|
OneFifth, OneQuarter, OneThird, OneHalf,
|
||||||
TwoFifths, TwoThirds,
|
TwoFifths, TwoThirds,
|
||||||
ThreeFifths, ThreeQuarters, ThreeFifths,
|
ThreeFifths, ThreeQuarters, ThreeFifths,
|
||||||
|
|
Loading…
Reference in a new issue