Skip to content

Commit 59c42af

Browse files
committed
fix: Merge commit from fork
1 parent 8f0a474 commit 59c42af

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

x/group/types.go

+3
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,9 @@ func (p PercentageDecisionPolicy) Allow(tally TallyResult, totalPower string) (D
200200
return DecisionPolicyResult{}, sdkerrors.Wrap(err, "total power")
201201
}
202202

203+
if totalPowerDec.IsZero() {
204+
return DecisionPolicyResult{Allow: false, Final: true}, nil
205+
}
203206
yesPercentage, err := yesCount.Quo(totalPowerDec)
204207
if err != nil {
205208
return DecisionPolicyResult{}, err

0 commit comments

Comments
 (0)