@superfluid:units
Share units a member holds in a GDA pool.
⚗️ Experimental — available at next.evmcrispr.com.
Returns: number
Syntax
Section titled “Syntax”@superfluid:units(pool member)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
pool | address | GDA pool address |
member | address | Pool member |
Examples
Section titled “Examples”# Check a member's units after setting themload sim
sim:fork --using anvil ( sim:set-balance @me 100e18 superfluid:create-pool $pool xDAIx superfluid:set-units 5 to 0x8790B75cF2BD36a2502A24e0E16AA1B23eBeBC71 in $pool sim:expect @bool(@superfluid:units($pool 0x8790B75cF2BD36a2502A24e0E16AA1B23eBeBC71) == 5))See Also
Section titled “See Also”On-chain face (@units!)
Section titled “On-chain face (@units!)”Read getUnits(member) at assertion time (the pool still resolves at composition time, since it is the call target).