🐛 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 {
|
||||
return []Quorum{
|
||||
Simple,
|
||||
Simple, Unanimous,
|
||||
OneFifth, OneQuarter, OneThird, OneHalf,
|
||||
TwoThirds, TwoFifths,
|
||||
ThreeQuarters, ThreeFifths,
|
||||
|
@ -97,7 +97,6 @@ func (q Quorum) IsSatisfied(possibleVotes, totalVotes int) bool {
|
|||
case Unanimous:
|
||||
return totalVotes >= possibleVotes
|
||||
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 {
|
||||
return []Threshold{
|
||||
Simple,
|
||||
Simple, Unanimous,
|
||||
OneFifth, OneQuarter, OneThird, OneHalf,
|
||||
TwoFifths, TwoThirds,
|
||||
ThreeFifths, ThreeQuarters, ThreeFifths,
|
||||
|
|
Loading…
Reference in a new issue