MCPcopy Create free account
hub / github.com/ElementsProject/lightning / json_add_lease_rates

Function json_add_lease_rates

common/json_stream.c:671–683  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

669}
670
671void json_add_lease_rates(struct json_stream *result,
672 const struct lease_rates *rates)
673{
674 json_add_amount_sat_msat(result, "lease_fee_base_msat",
675 amount_sat(rates->lease_fee_base_sat));
676 json_add_num(result, "lease_fee_basis", rates->lease_fee_basis);
677 json_add_num(result, "funding_weight", rates->funding_weight);
678 json_add_amount_msat(result,
679 "channel_fee_max_base_msat",
680 amount_msat(rates->channel_fee_max_base_msat));
681 json_add_num(result, "channel_fee_max_proportional_thousandths",
682 rates->channel_fee_max_proportional_thousandths);
683}
684
685void json_add_id(struct json_stream *result, const char *id)
686{

Callers 5

handle_dry_run_finishedFunction · 0.85
json_add_nodeFunction · 0.85
psbt_fundedFunction · 0.85
json_add_policyFunction · 0.85
json_funderupdateFunction · 0.85

Calls 5

json_add_amount_sat_msatFunction · 0.85
json_add_numFunction · 0.85
json_add_amount_msatFunction · 0.85
amount_satClass · 0.70
amount_msatClass · 0.70

Tested by

no test coverage detected