Skip to content

Commit

Permalink
fixed DPX-08
Browse files Browse the repository at this point in the history
  • Loading branch information
0xbeny committed May 6, 2024
1 parent 68c1f86 commit 5955b03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/contracts/src/DaofinPlugin.sol
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ contract DaofinPlugin is BaseDaofinPlugin {
uint64 _now = block.timestamp.toUint64();

for (uint i = 0; i < _electionPeriods.length; i++) {
if (_electionPeriods[i].startDate < _now && _electionPeriods[i].endDate > _now) {
if (_electionPeriods[i].startDate <= _now && _electionPeriods[i].endDate >= _now) {
return true;
}
}
Expand Down

0 comments on commit 5955b03

Please sign in to comment.