Skip to content

Commit

Permalink
fix-02: reset grace period if is a tie
Browse files Browse the repository at this point in the history
  • Loading branch information
fforbeck committed Mar 1, 2022
1 parent bef1c72 commit b5e51ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/adapters/voting/OffchainVoting.sol
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ contract OffchainVotingContract is
if (
vote.gracePeriodStartingTime == 0 ||
// check whether the new result changes the outcome
vote.nbNo > vote.nbYes != result.nbNo > result.nbYes
vote.nbNo > vote.nbYes != result.nbNo >= result.nbYes
) {
vote.gracePeriodStartingTime = uint64(block.timestamp);
}
Expand Down

0 comments on commit b5e51ce

Please sign in to comment.