@superfluid:connected
Whether a member is connected to a GDA pool (connected members see pool earnings in their balance automatically).
⚗️ Experimental — available at next.evmcrispr.com.
Returns: bool
Syntax
Section titled “Syntax”@superfluid:connected(pool member)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
pool | address | GDA pool address |
member | address | Pool member |
Examples
Section titled “Examples”# Check pool membership before and after connectingload sim
sim:fork --using anvil ( sim:set-balance @me 100e18 superfluid:create-pool $pool xDAIx sim:expect @bool(@superfluid:connected($pool @me) == false) superfluid:connect-pool $pool sim:expect @superfluid:connected($pool @me))See Also
Section titled “See Also”On-chain face (@connected!)
Section titled “On-chain face (@connected!)”Read isMemberConnected(pool, member) at assertion time. Both operands travel as calldata to the GDA forwarder rather than addressing it, so either may be a live value: a batch can connect a member and assert the connection afterwards, in the same batch.