What’s the Stream Scheduler?

The Stream Scheduler allows you to:

  1. Schedule when an existing stream is to be closed
  2. Schedule when to start a new stream
  3. Schedule when to start a new stream and when that new stream is to be closed

This can be soon performed on the Superfluid Dashboard or by making use of the underlying contracts in conjunction with off-chain automations (detailed in documentation here).

Why Schedule Streams?

If you have an intended end date and/or start date for a stream, instead of having to manually trigger the action, you could use the Stream Scheduler to automatically trigger the action at the desired time. This is especially useful in the case of streaming payroll, subscriptions and token vesting.

Superfluid streams are perpetual by default - they run until you cancel them or you run out of balance. If you want to be streaming someone tokens for a fixed duration and not have to deal with automatically triggering the creation or deletion of the stream, the Stream Scheduler is the solution.

Example:

(view these Miro diagrams here)

  1. It’s January 1st. You give the Stream Scheduler contract operator permissions and then schedule a stream with the below details:
    1. Flow Rate: 100 DAIx/mo.
    2. To: Alice’s account
    3. Start: March 1st, 2023 at 12:00am
    4. End: March 20th, 2023 at 12:00am

Untitled

  1. March 1st comes and the stream is initiated from you to Alice.

Untitled

  1. March 20th comes and the stream from you to Alice is cancelled.