Skip to content

superfluid:set-units

Set a member's share units in a GDA pool (admin only). Units are plain unitless weights: a member with 3 units earns 3x what a member with 1 unit earns. Setting 0 removes the member from future distributions.

⚗️ Experimental — available at next.evmcrispr.com.

Supports runtime fields inside smart blocks. Use explicit @helper! expressions or captured outputs; other fields are evaluated at build time.

superfluid:set-units <units> <to> <member> <in> <pool>
NameTypeEvaluationDescription
unitsnumberRuntime in smart blocksNew unit count for the member (0 removes them)
tocommandBuild timeKeyword to
memberaddressRuntime in smart blocksPool member
incommandBuild timeKeyword in
pooladdressRuntime in smart blocksGDA pool address
# Give a contributor 5 units in a freshly created rewards pool
superfluid:create-pool $rewards xDAIx
superfluid:set-units 5 to 0x8790B75cF2BD36a2502A24e0E16AA1B23eBeBC71 in $rewards