def poll_text2
import cswap-bend-cli@0.1.0.0/daemon/events.bend as Eventsimport Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
212def poll_text2(+active: Json.Json, +e: Json.Json) -> String:
213 match active:
214 case Json.JNull{}:
215 "poll: no active account"
216 case _:
217 "poll: " ++ ref_text(active) ++ " (switch at " ++ f_of(e, "threshold") ++ "%)"