Skip to content

Commit 7b3cba5

Browse files
committed
use already compute var group
1 parent d443cc4 commit 7b3cba5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contracts/modules/delegates/IexecPoco2Delegate.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ contract IexecPoco2Delegate is IexecPoco2, DelegateBase, IexecEscrow, SignatureV
161161
uint256 delta = Math.max(group, 1) * weight - group;
162162

163163
contribution.weight = Math.log2(weight);
164-
consensus.group[_resultHash] = consensus.group[_resultHash] + delta;
164+
consensus.group[_resultHash] = group + delta;
165165
consensus.total = consensus.total + delta;
166166

167167
// Check consensus

0 commit comments

Comments
 (0)