Bar.recov.self: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/policy/bar.bend as Bar Lines 63-69 of cswap-bend-cli@0.1.0.0/policy/bar.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/policy/bar.bend&start_line=63&end_line=69 import Base import cswap-bend-cli@0.1.0.0/policy/types.bend as T # Headroom risen three points past the departure baseline. def recov.self(+h: Maybe<&2, Nat>, +lh: Maybe<&2, Nat>) -> Bool: match h lh: case Some{x} Some{l}: Nat.is_ge(x, Nat.min(Nat.add(l, 300n), T.full())) case o _: False{} Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.is_ge https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.min https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/policy/types.bend&name=full