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.
Syntax
Section titled “Syntax”superfluid:set-units <units> <to> <member> <in> <pool>Arguments
Section titled “Arguments”| Name | Type | Evaluation | Description |
|---|---|---|---|
units | number | Runtime in smart blocks | New unit count for the member (0 removes them) |
to | command | Build time | Keyword to |
member | address | Runtime in smart blocks | Pool member |
in | command | Build time | Keyword in |
pool | address | Runtime in smart blocks | GDA pool address |
Examples
Section titled “Examples”# Give a contributor 5 units in a freshly created rewards poolsuperfluid:create-pool $rewards xDAIxsuperfluid:set-units 5 to 0x8790B75cF2BD36a2502A24e0E16AA1B23eBeBC71 in $rewards