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

Function amount_msat_ratio

common/amount.c:558–561  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

556}
557
558double amount_msat_ratio(struct amount_msat a, struct amount_msat b)
559{
560 return (double)a.millisatoshis / b.millisatoshis;
561}
562
563u64 amount_msat_ratio_floor(struct amount_msat a, struct amount_msat b)
564{

Callers 13

select_inchanFunction · 0.85
runFunction · 0.85
adaptive_splitter_cbFunction · 0.85
calc_apyFunction · 0.85
json_add_channel_apyFunction · 0.85
remove_excessFunction · 0.85
refine_flowsFunction · 0.85
linearize_channelFunction · 0.85
linear_routesFunction · 0.85
edge_probabilityFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected