def backoff.zero

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

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

329def backoff.zero(+rl: Bool, +computed: Nat) -> Nat:
330  match rl:
331    case True{}:
332      Nat.min(Nat.max(computed, 300n), 600n)
333    case False{}:
334      computed

Uses (4)

Used by (1)