def mem_after

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

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

149# The engine's counters after this tick: a known headroom or an unexpired-
150# sentinel unknown resets them; an expired token starts the idle hold and,
151# once it ran out, counts unhealthy ticks. Unmanaged and API-key actives
152# return before touching them.
153def mem_after(+active: Nat, +accounts: List<&2, T.Account>, +usage: List<&2, T.Usage>, +now: Nat, +cfg: T.Config, +mem: T.Mem) -> T.Mem:
154  mem.acct(U.account.of(active, accounts), active, usage, now, cfg, mem)

Uses (8)

Used by (1)