@superfluid:memberFlowrate
The slice of a GDA pool's distribution flow currently streaming to a member, in wei per second.
Returns: number
Syntax
Section titled “Syntax”@superfluid:memberFlowrate(pool member)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
pool | address | GDA pool address |
member | address | Pool member |
Examples
Section titled “Examples”# The slice of a streaming distribution a member currently receivesload sim
sim:fork --using anvil ( sim:set-balance @me 20000e18 superfluid:wrap 10000e18 into xDAIx superfluid:create-pool $pool xDAIx superfluid:set-units 1 to 0x8790B75cF2BD36a2502A24e0E16AA1B23eBeBC71 in $pool superfluid:distribute-flow 1000e18/mo xDAIx to $pool sim:expect @bool(@superfluid:memberFlowrate($pool 0x8790B75cF2BD36a2502A24e0E16AA1B23eBeBC71) > 0))