def exhausted
import cswap-bend-cli@0.1.0.0/policy/safe.bend as Safeimport Base
36def exhausted(+m: Maybe<&2, Nat>) -> Bool:
37 match m:
38 case None{}:
39 False{}
40 case Some{x}:
41 Nat.is_eq(x, 0n)
import cswap-bend-cli@0.1.0.0/policy/safe.bend as Safeimport Base
36def exhausted(+m: Maybe<&2, Nat>) -> Bool:
37 match m:
38 case None{}:
39 False{}
40 case Some{x}:
41 Nat.is_eq(x, 0n)