Skip to content

Commit

Permalink
test: fix broken Governance property definition
Browse files Browse the repository at this point in the history
  • Loading branch information
danielattilasimon committed Dec 13, 2024
1 parent abe3550 commit 882a082
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/recon/properties/GovernanceProperties.sol
Original file line number Diff line number Diff line change
Expand Up @@ -233,12 +233,11 @@ abstract contract GovernanceProperties is BeforeAfter {
for (uint256 i; i < deployedInitiatives.length; i++) {
uint256 userWeightAccumulatorForInitiative;
for (uint256 j; j < users.length; j++) {
(uint256 userVoteLQTY,,,,) =
(uint256 userVoteLQTY, uint256 userVoteOffset,,,) =
governance.lqtyAllocatedByUserToInitiative(users[j], deployedInitiatives[i]);
(,, uint256 allocatedOffset,) = governance.userStates(users[j]);
// add the weight calculated for each user's allocation to the accumulator
userWeightAccumulatorForInitiative +=
governance.lqtyToVotes(userVoteLQTY, uint256(block.timestamp), allocatedOffset);
governance.lqtyToVotes(userVoteLQTY, uint256(block.timestamp), userVoteOffset);
}

(uint256 initiativeVoteLQTY, uint256 initiativeVoteOffset,,,) =
Expand Down

0 comments on commit 882a082

Please sign in to comment.