Skip to content

Commit 42c61c4

Browse files
authored
Re-use variable in IexecPoco2Delegate in contribute(...) function (#168)
2 parents 5ef8455 + 3cd2e22 commit 42c61c4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- [x] `IexecPoco2Delegate.sol`
77

88
### Features
9+
- Re-use variable in `IexecPoco2Delegate` in `contribute(...)` function. (#168)
910
- Remove unnecessary back and forth transfers in `IexecPoco2Delegate` happening during `claim(..)`. (#167)
1011
- Remove references to blockscout v5. (#161)
1112
- Migrate integration test files to Typescript & Hardhat:

contracts/modules/delegates/IexecPoco2Delegate.sol

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

170170
contribution.weight = Math.log2(weight);
171-
consensus.group[_resultHash] = consensus.group[_resultHash] + delta;
171+
consensus.group[_resultHash] = group + delta;
172172
consensus.total = consensus.total + delta;
173173

174174
// Check consensus

0 commit comments

Comments
 (0)