def none.exh.at
cswap-bend-cli@0.1.0.0 · policy/decide.bend:158
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/exhaust.bend as E
158def none.exh.at(+ex: Bool, +e: E.Er) -> T.Decision:
159 match ex:
160 case True{}:
161 T.NoSwitch{T.AllExhausted{E.er.out(e)}, ""}
162 case False{}:
163 T.NoSwitch{T.NoQualifyingCandidate{}, "no candidate is below the threshold and better than the active account by the hysteresis margin, or usage is unreadable this tick"}