def is_active

cswap-bend-cli@0.1.0.0 · daemon/fetch.bend:31

import cswap-bend-cli@0.1.0.0/daemon/fetch.bend as Fetch
import Base

31def is_active(+slot: String, +active: Maybe<&2, String>) -> Bool:
32  match active:
33    case Some{a}:
34      String.eq(slot, a)
35    case None{}:
36      False{}

Uses (4)

Used by (1)