def trusted

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

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

192# A decision-grade reading: fresh, and not hidden behind a sentinel.
193def trusted(+u: T.Usage, +now: Nat, +ms: List<&2, String>) -> Bool:
194  match u:
195    case T.Usage{slot, five, fr, seven, sr, ss, fa, bo, +er, nfl, np, pi, ad, hu, cu, +se}:
196      sent.none(se) && fresh.at(fa, now, er, nfl, np, hu, cu, win.soonest(windows(u, ms), None{}))

Uses (11)

Used by (7)