Skip to content

Commit

Permalink
fix #1716 (#1717)
Browse files Browse the repository at this point in the history
  • Loading branch information
brenzi authored Dec 3, 2024
1 parent 7de861b commit eba8eb8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/lib/page-encointer/democracy/helpers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ bool isInVotingCindexes(
}

bool isPassing(Tally tally, BigInt electorateSize, DemocracyParams params) {
if (tally.turnout < params.minTurnout) {
// minTurnout is in perThousands
if ((tally.turnout < BigInt.from(1)) | (tally.turnout < params.minTurnout * electorateSize ~/ BigInt.from(1000))) {
return false;
}

Expand Down

0 comments on commit eba8eb8

Please sign in to comment.