Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Commit

Permalink
Update delegateIsValid to check envTime is strictly smaller than exp.…
Browse files Browse the repository at this point in the history
… date
  • Loading branch information
0xNeshi committed Aug 2, 2023
1 parent 1ecd1d5 commit 4158d8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/core/validator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ library Validator {
) internal pure returns (bool) {
return (delegate.addr != address(0) &&
sender == delegate.addr &&
(delegate.expires == 0 || envTime <= delegate.expires));
(delegate.expires == 0 || envTime < delegate.expires));
}

function canChange(
Expand Down

0 comments on commit 4158d8c

Please sign in to comment.