def env.ah

cswap-bend-cli@0.1.0.0 · policy/decide.bend:298

import cswap-bend-cli@0.1.0.0/policy/decide.bend as Decide
import Base
import cswap-bend-cli@0.1.0.0/policy/usage.bend as U

298# The active account's headroom, as this tick reads it.
299def env.ah(+e: Env) -> Maybe<&2, Nat>:
300  match e:
301    case Env{active, as, us, now, cfg, st, mem}:
302      U.head.row(U.usage.of(active, us), now, cfg.models(cfg))

Uses (6)

Used by (5)