File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
contracts/src/arbitration Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -664,7 +664,6 @@ contract KlerosCore is IArbitrator {
664664
665665 uint256 start = round.repartitions;
666666 uint256 end = round.repartitions + _iterations;
667- round.repartitions = end;
668667
669668 uint256 penaltiesInRoundCache = round.penalties; // For saving gas.
670669 uint256 numberOfVotesInRound = round.drawnJurors.length ;
@@ -677,6 +676,8 @@ contract KlerosCore is IArbitrator {
677676 // We loop over the votes twice, first to collect penalties, and second to distribute them as rewards along with arbitration fees.
678677 if (end > numberOfVotesInRound * 2 ) end = numberOfVotesInRound * 2 ;
679678 }
679+ round.repartitions = end;
680+
680681 for (uint256 i = start; i < end; i++ ) {
681682 if (i < numberOfVotesInRound) {
682683 penaltiesInRoundCache = _executePenalties (
You can’t perform that action at this time.
0 commit comments