Important
This repository is archived and no longer maintained. The latest version of Sablier Flow lives in the evm-monorepo.
EVM smart contracts for Sablier Flow, a debt-tracking protocol for open-ended ERC-20 token streaming. Each stream accrues debt linearly at a fixed rate per second (rps), with no upfront deposit and no fixed end date.
- Documentation
- Maintained version (evm-monorepo)
- Deployment addresses
- Audits
- Package on npm
- Releases
- Changelog
Sablier Flow is a debt tracking protocol that tracks tokens owed between two parties, enabling open-ended token streaming. A Flow stream is characterized by its rate per second (rps). The relationship between the amount owed and time elapsed is linear and defined as:
Sablier Flow can be used in several areas of everyday finance, such as payroll, subscriptions, grant distributions, insurance premiums, loans interest, token ESOPs etc. If you are looking for vesting and airdrops, please refer to our Lockup protocol.
- Open-ended: A stream can be created with no specific end time. It runs indefinitely until it is paused or voided.
- Top-ups: No upfront deposit requirements. A stream can be funded with any amount, at any time, by anyone, in full or partially.
- Pause: A stream can be paused by the sender and can later be restarted without losing track of previously accrued debt.
- Void: A voided stream cannot be restarted anymore. Voiding an insolvent stream forfeits the uncovered debt. Either the sender or the recipient can void a stream at any time.
- Refund: Unstreamed amount can be refunded back to the sender at any time.
- Withdraw: A publicly callable function as long as
tois set to the recipient. A stream's recipient is allowed to withdraw funds to any address.
The codebase has undergone rigorous audits by leading security experts from Cantina, as well as independent auditors. For a comprehensive list of all audits conducted, please click here.
For any security-related concerns, please refer to the SECURITY policy.
Contributions are welcome. See AGENTS.md for the development workflow, commands, and conventions.
Sablier Flow is licensed under the Business Source License 1.1 (BUSL-1.1) and the GNU General Public License v3.0 or later (GPL-3.0-or-later). See LICENSE.md for details.