Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions contracts/GraphTokenLock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ abstract contract GraphTokenLock is Ownable, IGraphTokenLock {
require(_startTime < _endTime, "Start time > end time");
require(_periods >= MIN_PERIOD, "Periods cannot be below minimum");
require(_revocable != Revocability.NotSet, "Must set a revocability option");
require(
_revocable == Revocability.Enabled || _revocable == Revocability.Disabled,
"Must set a valid revocability option"
);
require(_releaseStartTime < _endTime, "Release start time must be before end time");
require(_vestingCliffTime < _endTime, "Cliff time must be before end time");

Expand Down