Skip to content

@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

@superfluid:connected(pool member)
NameTypeDescription
pooladdressGDA pool address
memberaddressPool member
# Check pool membership before and after connecting
load 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)
)

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.