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

Function json_add_lease_rates

common/json_stream.c:642–654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

640}
641
642void json_add_lease_rates(struct json_stream *result,
643 const struct lease_rates *rates)
644{
645 json_add_amount_sat_msat(result, "lease_fee_base_msat",
646 amount_sat(rates->lease_fee_base_sat));
647 json_add_num(result, "lease_fee_basis", rates->lease_fee_basis);
648 json_add_num(result, "funding_weight", rates->funding_weight);
649 json_add_amount_msat_only(result,
650 "channel_fee_max_base_msat",
651 amount_msat(rates->channel_fee_max_base_msat));
652 json_add_num(result, "channel_fee_max_proportional_thousandths",
653 rates->channel_fee_max_proportional_thousandths);
654}
655

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.70
amount_satClass · 0.70
json_add_numFunction · 0.70
amount_msatClass · 0.70

Tested by

no test coverage detected