def headroom

cswap-bend-cli@0.1.0.0 · policy/usage.bend:205

import cswap-bend-cli@0.1.0.0/policy/usage.bend as Usage
import Base
import cswap-bend-cli@0.1.0.0/policy/types.bend as T

205# The decision value of an account: None when there is no trusted reading or
206# the reading carries no relevant window.
207def headroom(+u: T.Usage, +now: Nat, +ms: List<&2, String>) -> Maybe<&2, Nat>:
208  head.if(trusted(u, now, ms), headroom.raw(u, ms))

Uses (8)

Used by (6)