@superfluid:buffer
Buffer deposit locked when opening a stream at the given flow rate (typically a few hours of streaming; Ethereum mainnet enforces per-token minimums).
⚗️ Experimental — available at next.evmcrispr.com.
Returns: number
Syntax
Section titled “Syntax”@superfluid:buffer(token flowrate)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
token | supertoken | SuperToken symbol or address |
flowrate | number | Flow rate in wei per second, e.g. 1000e18/mo |
Examples
Section titled “Examples”# Print the deposit that opening a 1000 xDAIx/month stream would lockprint "Buffer:" @superfluid:buffer(xDAIx 1000e18/mo)See Also
Section titled “See Also”On-chain face (@buffer!)
Section titled “On-chain face (@buffer!)”Read getBufferAmountByFlowrate(token, rate) at assertion time, so a governance change to the deposit parameters between build and execution is caught. The rate literal is still an exact rational floored to wei/second at composition time.