type Decision

cswap-bend-cli@0.1.0.0 · policy/types.bend:119

import cswap-bend-cli@0.1.0.0/policy/types.bend as Types
import Base

119# `Switch.rec` is the winner's ranking time (reset or recovery) when the mode
120# ranks by one; `bar` is the no-return bar that applied to this pick.
121type Decision is Data:
122  NoSwitch{reason: Reason, detail: String}
123  Switch{to: Nat, trigger: Trigger, reason: String, headroom: Nat, mode: Mode, rec: Maybe<&2, Nat>, bar: Maybe<&2, Nat>}

Uses (6)

Used by (51)