@superfluid:netFlow
Net flow rate of an account (all incoming minus all outgoing streams, CFA plus GDA), in wei per second. Negative means the balance is draining.
⚗️ Experimental — available at next.evmcrispr.com.
Returns: number
Syntax
Section titled “Syntax”@superfluid:netFlow(token account)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
token | supertoken | SuperToken symbol or address |
account | address | Account to inspect |
Examples
Section titled “Examples”# Assert your xDAIx balance is not draining before ending the scriptprint "Net flow:" @superfluid:netFlow(xDAIx @me)See Also
Section titled “See Also”On-chain face (@netFlow!)
Section titled “On-chain face (@netFlow!)”Read getAccountFlowrate() on the CFA forwarder and getNetFlow() on the GDA forwarder at assertion time, then add them on-chain: neither agreement knows the other half. The result is signed, so a draining account reads negative and an ordering comparison picks the int256 overload.