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

Function amount_msat_ratio

common/amount.c:493–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

491}
492
493double amount_msat_ratio(struct amount_msat a, struct amount_msat b)
494{
495 return (double)a.millisatoshis / b.millisatoshis;
496}
497
498struct amount_msat amount_msat_div(struct amount_msat msat, u64 div)
499{

Callers 5

select_inchanFunction · 0.85
presplit_cbFunction · 0.85
adaptive_splitter_cbFunction · 0.85
calc_apyFunction · 0.85
json_add_channel_apyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected