Money Streaming in Superfluid
Money Streaming, previously known as Constant Flow Agreement (CFA), revolutionizes the movement of tokens with a by-the-second transfer mechanism. This page provides an in-depth overview of Money Streaming and the unique aspects of Flow NFTs in the Superfluid ecosystem.
What is Money Streaming?
Money Streaming allows for continuous, per-second token transfers between accounts, offering a dynamic and flexible approach to token distribution.
Key Characteristics
- Perpetual Transfers: Streams continue until canceled by the sender or the sender's balance depletes.
- Flexible Management: Streams can be created, updated, or deleted at any time by the sender.
For a more conceptual breakdown, refer to the detailed Money Streaming overview.
Flows and Flow Rates
Money Streaming in Superfluid introduces the concepts of flows and flow rates, key elements for managing the continuous movement of tokens. This section defines these concepts and explains how to calculate flow rates accurately.
Flows in Superfluid represent the continuous, per-second movement of tokens between accounts. They are defined by their flow rate and can be dynamically managed by the sender.
You may have a hard time seeing the difference between "Flows" and "Streams". This is a feature, not a bug. The key difference is the following: Flows can be equal to 0, while Streams need to be strictly positive.
Flows have the following Characteristics:
- Perpetual: Flows continue until the sender decides to cancel or the balance depletes.
- Flexible: Flows can be created, updated, or stopped at any time.
Calculating Flow Rates
Flow rates dictate the speed at which tokens are transferred per second. Superfluid requires these rates to be specified in wei per second.
It's crucial to translate your desired flow rate into wei per second accurately. Incorrect calculations can lead to discrepancies between expected and actual flow rates as displayed on the Superfluid Dashboard and Explorer.
Flow rates can be reframed from larger time denominations like months or years into wei per second. Understand the conversion process to accurately determine the wei/second rate for your flows.
Calculation Examples
From Month to Wei/Second
- Monthly Rate: 10 DAIx/month.
- Calculation: 10 DAIx / ((365/12) * 24 * 60 * 60) = 3805175038052 wei/second.
From Year to Wei/Second
- Yearly Rate: 100 DAIx/year.
- Calculation: 100 DAIx / (365 * 24 * 60 * 60) = 3170979198376 wei/second.
Using an approximate number of days in a month (like 30 days) for calculations can lead to slightly inaccurate wei/second rates, affecting how the rate appears on Superfluid interfaces.
This section provides a clear understanding of flows and flow rates within the Superfluid Money Streaming, enabling users to accurately manage and interpret their token streams.