Skip to content

Commit

Permalink
Re-use variable in IexecPoco2Delegate in contribute(...) function (
Browse files Browse the repository at this point in the history
  • Loading branch information
gfournieriExec authored Dec 18, 2024
2 parents 5ef8455 + 3cd2e22 commit 42c61c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- [x] `IexecPoco2Delegate.sol`

### Features
- Re-use variable in `IexecPoco2Delegate` in `contribute(...)` function. (#168)
- Remove unnecessary back and forth transfers in `IexecPoco2Delegate` happening during `claim(..)`. (#167)
- Remove references to blockscout v5. (#161)
- Migrate integration test files to Typescript & Hardhat:
Expand Down
2 changes: 1 addition & 1 deletion contracts/modules/delegates/IexecPoco2Delegate.sol
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ contract IexecPoco2Delegate is IexecPoco2, DelegateBase, IexecEscrow, SignatureV
uint256 delta = Math.max(group, 1) * weight - group;

contribution.weight = Math.log2(weight);
consensus.group[_resultHash] = consensus.group[_resultHash] + delta;
consensus.group[_resultHash] = group + delta;
consensus.total = consensus.total + delta;

// Check consensus
Expand Down

0 comments on commit 42c61c4

Please sign in to comment.