galleon-superfluid-streams
Superfluid flows and distribution
Produce a funded, permission-aware flow plan and verify its resulting state. A created flow is a recurring transfer rate; it is not proof that a whole future subscription has been paid.
Resolve token and agreement
Read chain, deployment, Host/forwarder, exact Super Token and underlying relationship, decimals, sender, receiver or GDA pool, and actual caller/operator. Use current SDK and agreement references; new integrations use @sfpro/sdk rather than archived SDKs. Names and symbols cannot identify a wrapper or agreement.
Choose CFA for one-to-one rates and GDA for pool distribution. A pool's units and connected member claims differ from a fixed per-recipient stream. Schedulers, AutoWrap and macros add separately configured authority and automation. Load only the selected track; an old IDA example does not establish current GDA semantics.
Read the current exact flow/aggregate net rate, real-time available balance, locked deposit/buffer, underlying wallet balance and operator permissions at a recorded block/time. Indexed balances can lag time-dependent settlement. An incoming flow may stop; evaluate funding with and without that dependency.
Bound the recurring commitment
Resolve user rate, unit/time period, proposed end or monitoring obligation, maximum economic budget, acceptable funding horizon, wrapping amount and current approval limits. Convert human rates using the Super Token's 18 decimals (not the underlying token's) and seconds with explicit rounding. Monthly billing needs a defined calendar/fixed-period interpretation; never assume every month is 30 days.
Calculate projected exhaustion from spendable real-time funding and aggregate outgoing obligations. Do not spend the liquidation/deposit buffer twice or subtract it twice from a balance already reported as available. Use actual contract read semantics, current required buffer and conservative incoming assumptions. Show missing buffer/rate reads rather than inferring a deadline from an ERC20 balanceOf snapshot.
Inspect old and proposed operator permissions: permitted create/update/delete operations, token/sender scope, rate allowance, caller and expiry if the chosen permission layer supports it. A CFA operator permission is different from ERC20 allowance and smart-wallet session limits. A unlimited flow allowance or automatic replenishment can outlive the user's one-time budget.