def minat
import cswap-bend-cli@0.1.0.0/policy/pick.bend as Pickimport Base
import cswap-bend-cli@0.1.0.0/policy/types.bend as T
319# The earliest time among the family's candidates with headroom h0.
320def minat(+as: List<&2, T.Account>, +rk: Rk, +f: Fam, +h0: Nat, +m: Mn) -> Mn:
321 match as:
322 case Nil{}:
323 m
324 case Con{a, t}:
325 minat(t, rk, f, h0, minat.step(cdn(a, rk, f), h0, m))