Skip to content

superfluid:create-pool

Create a GDA distribution pool for a SuperToken and bind the predicted pool address to . Members hold units and every distribution splits pro-rata to units. The prediction reads the pool factory's account nonce, so it assumes no other pool is created on the chain between planning and execution.

⚗️ 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:create-pool <variable> <token>
NameTypeEvaluationDescription
variablevariableBuild timeVariable to bind the new pool's address to
tokensupertokenBuild timeSuperToken symbol (e.g. USDCx) or address the pool distributes
NameTypeEvaluationDescription
--adminaddressRuntime in smart blocksPool admin, the only account that can update member units (defaults to the connected account)
--transferable-unitsboolRuntime in smart blocksLet members transfer their units (default false)
--open-distributionboolRuntime in smart blocksLet anyone distribute through the pool, not just the admin (default false)
# Create a rewards pool, weight two members 3:1 and distribute 400 xDAIx (alice receives 300, bob 100)
set $alice 0x8790B75cF2BD36a2502A24e0E16AA1B23eBeBC71
set $bob 0x4F2083f5fBede34C2714aFfb3105539775f7FE64
superfluid:create-pool $rewards xDAIx
superfluid:set-units 3 to $alice in $rewards
superfluid:set-units 1 to $bob in $rewards
superfluid:distribute 400e18 xDAIx to $rewards