Shadow.headroom_of: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/daemon/shadow.bend as Shadow Lines 42-47 of cswap-bend-cli@0.1.0.0/daemon/shadow.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/daemon/shadow.bend&start_line=42&end_line=47 import Base import cswap-bend-cli@0.1.0.0/json.bend as Json def headroom_of(+evs: List<&2, Json.Json>) -> Json.Json: match evs: case Nil{}: Json.JObj{Json.JNil{}} case Con{e, t}: field("headroomPct", e) Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/daemon/shadow.bend&name=field https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/json.bend&name=Json