Skip to content

Commit 4e6076b

Browse files
committed
fix: round.repartitions
1 parent 76fb562 commit 4e6076b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contracts/src/arbitration/KlerosCore.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)