Use case for creating a stream with start & end time in the past #1111
-
I was wondering why does Sablier allow for token streams to be created with a This function doesn't check if startTime is less than the current timestamp. This doesn't have adverse side effects, just a curious why isn't there a check for: require(startTime >= block.timestamp) What use cases are there for creating a stream in the past? Source: v2-core/src/SablierV2LockupLinear.sol Line 163 in 43cf7c9 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @partylikeits1983 thanks for asking the question.
Let me know if this answers your questions. Feel free to ask me if you have more. |
Beta Was this translation helpful? Give feedback.
Hi @partylikeits1983 thanks for asking the question.
startTime
to be in the past: so that you can create backdated vesting streams. There could be a use case such as having prior commitment to an investor but decides to create a stream in the future. This would require start time to be in the past.endTime
to be in the past (this will be enabled in the future release): you can read about it here.Let me know if this answers your questions. Feel free to ask me if you have more.