diff --git a/CHANGELOG.md b/CHANGELOG.md index f6bd3ca12..440e61ca7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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: diff --git a/contracts/modules/delegates/IexecPoco2Delegate.sol b/contracts/modules/delegates/IexecPoco2Delegate.sol index 893efcc1d..a24e9b632 100644 --- a/contracts/modules/delegates/IexecPoco2Delegate.sol +++ b/contracts/modules/delegates/IexecPoco2Delegate.sol @@ -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