def pct_of
import cswap-bend-cli@0.1.0.0/daemon/rows.bend as Rowsimport Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
import cswap-bend-cli@0.1.0.0/daemon/config.bend as Cfg
45def pct_of(+j: Json.Json) -> Maybe<&2, Nat>:
46 nat_opt(bind_s(num_text(Json.get("pct", j)), t => Cfg.centi(t)))