Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
LABS
Glossary

Instant Distribution Agreement (IDA)

An Instant Distribution Agreement (IDA) is a Superfluid smart contract for distributing tokens to a dynamic set of receivers proportionally in a single transaction.
Chainscore © 2026
definition
SUPERFLUID PROTOCOL

What is an Instant Distribution Agreement (IDA)?

An Instant Distribution Agreement (IDA) is a programmable primitive within the Superfluid protocol that enables the continuous, real-time streaming of tokens to multiple recipients from a single on-chain transaction.

An Instant Distribution Agreement (IDA) is a smart contract primitive on the Superfluid protocol that allows a publisher to create a distribution stream of any ERC-20 token to an unlimited number of subscribers simultaneously. Unlike batch airdrops or periodic transfers, an IDA enables real-time, per-second distribution of value, where the token flow to each recipient updates continuously based on a predefined distribution unit and their allocated share. This creates a persistent, gas-efficient settlement layer for recurring payments, revenue sharing, and rewards distribution.

The core mechanism involves the publisher indexing a token, which creates a unique distribution channel. Subscribers then approve the IDA contract and subscribe to this index, receiving a proportional share of the total distribution. When the publisher calls distribute, the total amount is split according to each subscriber's units—a number representing their claim on the stream. This architecture allows for dynamic, on-the-fly adjustments: subscribers can be added or removed, and their unit allocations can be updated, with changes reflected in the very next second of the stream.

Key applications of IDAs include real-time salary streaming to employees, revenue sharing for DAOs and content platforms, and dynamic reward distribution for DeFi stakers or gamers. For example, a DAO treasury could use an IDA to stream governance tokens to contributors based on real-time metrics, or a subscription service could stream revenue to creators the instant a user's payment stream is received. This moves beyond periodic payroll or quarterly dividends to a model of continuous settlement.

From a technical perspective, IDAs leverage Superfluid's constant flow agreement framework and its Super Tokens (wrapped, upgradable ERC-20s with streaming capabilities). The gas efficiency is revolutionary; distributing to 10,000 recipients costs roughly the same as distributing to one, as the heavy computation of splitting is handled off-chain, with only a single on-chain transaction to update the distribution state. This makes mass, granular distributions economically feasible on-chain.

The IDA is fundamentally different from Superfluid's Constant Flow Agreement (CFA), which manages a persistent stream from one sender to one receiver. The IDA is a one-to-many distribution tool. It is often used in conjunction with CFAs; for instance, incoming revenue streams from many customers (via CFAs) can be aggregated and then instantly redistributed to stakeholders using an IDA, creating complex, automated financial ecosystems.

In summary, the Instant Distribution Agreement transforms static, batch-based disbursements into dynamic, living distributions. It is a core building block for real-time finance (RTF), enabling programmable cash flows that are as fluid and instantaneous as data packets on the internet, thereby unlocking new models for compensation, community funding, and value distribution in web3.

how-it-works
SUPERFLUID PROTOCOL MECHANIC

How Does an Instant Distribution Agreement (IDA) Work?

An Instant Distribution Agreement (IDA) is a programmable primitive within the Superfluid protocol that enables the continuous, real-time distribution of value to a dynamic set of recipients based on on-chain logic.

An Instant Distribution Agreement (IDA) is a smart contract framework that facilitates the continuous and automatic distribution of a token stream to multiple, updatable recipients. Unlike a simple transfer, an IDA does not send a lump sum; instead, it allocates a portion of a persistent money stream—a Super Token flow—to each subscriber in real-time. The distribution shares are defined by units, which represent a recipient's proportional claim to the total outflow. This mechanism is foundational for building applications that require recurring, granular payouts without manual intervention.

The operational flow begins when an entity, the publisher, creates an Index. This index is the smart contract that manages the distribution logic and the list of subscribers. Recipients, or subscribers, must approve the index and can then receive their allocated stream. The publisher can update unit allocations for any subscriber at any time, and these changes are reflected instantly in the flow of funds. This allows for dynamic adjustments to payroll, revenue sharing, or reward distributions based on real-time metrics or governance decisions, all executed on-chain.

A key technical feature is the distribution operation. When the publisher calls distribute on the index, it calculates the amount owed to each subscriber based on their units and the total amount being distributed. The protocol then creates or updates individual Constant Flow Agreements (CFAs) from the publisher to each subscriber, ensuring the value flows per second according to the new allocation. This separation of allocation (units) and execution (distribution) provides gas efficiency, as updating units is cheap, and the actual streaming is handled by the optimized Superfluid money streaming engine.

Common use cases for IDAs include real-time payroll for DAOs or gig platforms, where an employee's share can be adjusted instantly upon task completion; revenue-sharing models for content platforms or protocols, distributing fees to contributors as they are earned; and dynamic reward pools in DeFi or gaming, where user rewards are streamed based on staking weight or in-game actions. By moving from batch payments to continuous flows, IDAs enable more fluid, transparent, and composable financial relationships on the blockchain.

From a developer's perspective, integrating an IDA involves interacting with the Superfluid SDK or directly with the protocol's smart contracts. The primary actions are: creating an index, updating subscriber units, and triggering distributions. It is crucial to manage the total units allocated, as the sum defines the denominator for calculating each subscriber's share. Furthermore, because IDAs create continuous flows, publishers must ensure their Super Token balance and flow rates are sufficient to cover all concurrent outgoing streams to avoid transaction reverts.

key-features
MECHANICS

Key Features of an IDA

An Instant Distribution Agreement (IDA) is a programmable cash flow primitive on the Superfluid Protocol that enables real-time, continuous token distributions to multiple recipients.

01

Continuous & Real-Time Streaming

Unlike batch-based airdrops or periodic transfers, an IDA distributes tokens in a continuous stream based on a per-second rate. This creates a real-time financial relationship where recipients see their balance update with each new block, enabling use cases like real-time revenue sharing and per-second payroll.

02

Gasless Subscriptions for Recipients

Recipients can subscribe to an IDA index without paying gas fees. The gas cost for the distribution transaction is paid once by the publisher (the entity creating the stream). This removes a major UX barrier, allowing for permissionless, large-scale distribution to any number of wallets.

03

Dynamic Unit Allocation

The core mechanism is the distribution of units, not a fixed token amount. The publisher allocates units to subscriber addresses. The total distributed tokens are calculated as: Tokens = (Subscriber Units / Total Units) * Total Tokens Distributed

  • This allows for pro-rata, weight-based distributions.
  • Units can be updated dynamically to reflect changing stakes or contributions.
04

Publisher-Controlled Parameters

The entity deploying the IDA (the publisher) has full control over key parameters:

  • Distribution Token: The ERC-20 token being streamed (e.g., USDC, DAI).
  • Distribution Rate: The per-second flow rate of tokens into the index.
  • Unit Allocation: Who gets units and how many.
  • This makes IDAs ideal for DAO treasuries, protocol revenue models, and founder/team vesting.
05

On-Chain Settlement & Composability

Every distribution is a settled on-chain transaction, providing a transparent and verifiable audit trail. Because IDAs are native smart contract primitives, they are highly composable. They can be integrated into other DeFi protocols, DAO tooling, and smart contract logic to automate complex financial workflows.

06

Comparison to Constant Flow Agreements (CFAs)

While both are streaming primitives on Superfluid, they serve different purposes:

  • IDA (1-to-Many): One publisher streams to many subscribers. The rate is set by the publisher.
  • CFA (1-to-1): A direct, agreed-upon stream between two parties (e.g., employer/employee).
  • IDAs are for broadcast distributions; CFAs are for directed payments.
examples
INSTANT DISTRIBUTION AGREEMENT (IDA)

Real-World Use Cases & Examples

The Instant Distribution Agreement (IDA) is a programmable primitive for distributing tokens to a dynamic list of subscribers. These examples illustrate its practical applications across DeFi and Web3.

04

Liquidity Mining & Incentives

Protocols deploy IDAs for targeted, real-time liquidity mining. Instead of airdropping a lump sum, incentives are streamed directly to wallets providing liquidity in specific pools. This allows for:

  • Dynamic Adjustments: Emission rates can be updated based on pool metrics.
  • Precise Targeting: Rewards are directed only to desired behaviors (e.g., lending on a specific market).
  • Continuous Engagement: Users are incentivized to maintain their position to keep the stream active.
05

On-Chain Royalties & Revenue Sharing

Artists and creators can use IDAs to automate royalty distribution. When an NFT is sold on a secondary market with an on-chain royalty enforcement mechanism, the proceeds can be instantly split via an IDA. The agreement can distribute to multiple parties:

  • Primary creator (e.g., 90% of the fee).
  • Collaborators or co-creators.
  • A DAO treasury for community projects. This ensures transparent and immediate payout upon each sale.
06

Index or Fund Token Distributions

DeFi index funds or tokenized baskets use IDAs to distribute underlying asset yields to token holders. For instance, an index token representing a basket of yield-generating assets (like staked ETH, LP positions) accrues rewards. An IDA automatically calculates and streams each holder's share of the aggregated yield from all underlying assets, proportional to their index token balance, without requiring manual redemption.

ecosystem-usage
SUPERFLUID PROTOCOL

Ecosystem Usage & Protocols

The Instant Distribution Agreement (IDA) is a core primitive of the Superfluid Protocol, enabling real-time, programmable, and continuous token streaming for complex distribution logic.

01

Core Mechanism: Real-Time Splitting

An IDA is a smart contract that allows a publisher to create a distribution index for a specific token. Subscribers can then receive a continuous, real-time stream of that token proportional to their allocated units in the index. This enables automated, gas-efficient distribution without manual claims or batch transactions.

  • Publisher: The entity creating and funding the distribution.
  • Subscriber: An address receiving a share of the stream.
  • Units: The number of shares a subscriber holds, determining their flow rate.
02

Key Use Cases & Examples

IDAs facilitate complex, automated value distribution patterns that are impractical with traditional transfers.

  • Revenue Sharing: A DAO streams treasury revenue to token holders in real-time.
  • Salary & Rewards: A protocol distributes fees to contributors based on ongoing participation.
  • Royalty Payments: An NFT platform streams sales revenue to artists and co-creators instantly.
  • Subscription Pools: A service splits subscription fees between infrastructure providers and content creators.
03

Technical Operation & Units

Distribution is governed by the allocation of units, which are non-transferrable on-chain entitlements.

  • The publisher defines a Distribution Index (e.g., DISTRIBUTION_ID).
  • Subscribers are approved to receive units for that index.
  • The publisher updates units per subscriber (e.g., based on performance).
  • When the publisher distributes tokens, the amount sent to each subscriber is: (subscriberUnits / totalUnits) * amountDistributed.
  • Funds stream continuously until the distribution is stopped or units are revoked.
04

Comparison to Constant Flow Agreements

Superfluid has two core primitives. Understanding the difference is key:

  • Constant Flow Agreement (CFA): Establishes a fixed, per-second flow rate (flowRate) between exactly two parties (sender and receiver). Ideal for salaries, subscriptions, or rentals.
  • Instant Distribution Agreement (IDA): Distributes tokens from one publisher to many subscribers based on dynamic unit allocations. Ideal for revenue sharing, rewards, and any one-to-many distribution where shares change.

A CFA is a pipe; an IDA is a splitting manifold.

06

Security & Permission Model

IDAs implement a clear permission structure to control fund flows.

  • Publisher Control: The publisher exclusively controls the creation of the index, unit allocations, and the execution of distributions.
  • Subscriber Consent: A subscriber must approve the publisher's super token before they can receive units, preventing unwanted distributions.
  • Unit Management: Only the publisher can update a subscriber's units. Units are specific to the distribution index and are not ERC-20 tokens.
  • Fund Safety: Distributed tokens are pulled from the publisher's Super Token balance in real-time via Superfluid's constant balance accounting.
COMPARISON

IDA vs. Traditional Batch Payments

Key differences between Superfluid's streaming payments and conventional batch settlement methods.

FeatureInstant Distribution Agreement (IDA)Traditional Batch Payment

Payment Model

Continuous real-time streams

Discrete, one-time transfers

Settlement Finality

Per-second (continuous)

Per-transaction (discrete)

Gas Efficiency

High (amortized over stream duration)

Low (per transaction)

Capital Lockup

Minimal (streams from current balance)

High (funds escrowed upfront)

Automation & Composability

Native, programmable logic

Manual or scripted execution

Fee Structure

Protocol fee on streamed value

Network gas fee per transaction

Example Use Case

Real-time revenue sharing, salaries

Monthly payroll, vendor payouts

INSTANT DISTRIBUTION AGREEMENT

Technical Deep Dive

A detailed examination of the Instant Distribution Agreement (IDA), a core Superfluid protocol primitive for programmable, continuous, and real-time value streams on-chain.

An Instant Distribution Agreement (IDA) is a smart contract primitive on the Superfluid protocol that enables the continuous, real-time, and proportional distribution of a token to a dynamic set of receivers. It works by establishing a distribution index for a specific token (the superToken). The publisher (the entity funding the stream) approves the IDA contract to create a new index. Subscribers (receivers) then approve the index, linking their accounts to the distribution. When the publisher distributes tokens to the index, the amount is instantly and gas-efficiently split among all current subscribers based on their individual units of allocation, which represent their proportional share. This allows for one-to-many value distribution without requiring individual transactions per receiver.

INSTANT DISTRIBUTION AGREEMENT (IDA)

Common Misconceptions

The Instant Distribution Agreement (IDA) is a core primitive of the Superfluid protocol for programmable cash flows. This section clarifies frequent misunderstandings about its operation, security, and relationship to underlying tokens.

An Instant Distribution Agreement (IDA) is a smart contract primitive on the Superfluid protocol that enables the real-time, gas-efficient distribution of value (like ERC-20 tokens) from a sender (or "publisher") to an unlimited number of receivers (or "subscribers") based on predefined units. It works by establishing an on-chain agreement where the sender approves a token for distribution and receivers subscribe by accepting the agreement and specifying their allocated units. When the sender triggers a distribution, the total distributed amount is split pro-rata to each subscriber's units, and funds are transferred instantly and atomically in a single transaction, without requiring individual approvals for each transfer.

Key Mechanism: The IDA uses a distribution index to track each subscriber's claimable share over time, ensuring accurate accounting even for dynamic subscriber lists. This makes it ideal for use cases like salary distributions, revenue sharing, and DAO rewards.

INSTANT DISTRIBUTION AGREEMENT

Frequently Asked Questions (FAQ)

Common questions about the Instant Distribution Agreement (IDA), a core Superfluid protocol primitive for real-time, on-chain value distribution.

An Instant Distribution Agreement (IDA) is a programmable Superfluid primitive that enables the continuous, real-time distribution of a token from a publisher to multiple subscribers based on predefined units. It works by establishing a distribution index for a specific token. The publisher allocates units to subscriber addresses, and whenever new tokens are distributed to the index, they are split among all active subscribers proportionally to their units in real-time. This eliminates the need for manual, batch transactions for recurring payments like salaries, royalties, or rewards.

Key Mechanism:

  • A publisher creates an IDA index for a token (e.g., USDC).
  • Subscribers approve the subscription and are allocated units (e.g., 100 units for a contributor).
  • The publisher distributes tokens to the index (e.g., 1000 USDC).
  • Each subscriber can instantly claim their share: (their units / total units) * distributed amount.
ENQUIRY

Get In Touch
today.

Our experts will offer a free quote and a 30min call to discuss your project.

NDA Protected
24h Response
Directly to Engineering Team
10+
Protocols Shipped
$20M+
TVL Overall
NDA Protected Directly to Engineering Team
Instant Distribution Agreement (IDA) - Web3 Glossary | ChainScore Glossary