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

Function amount_msat_mul

common/amount.c:600–606  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

598}
599
600bool amount_msat_mul(struct amount_msat *res, struct amount_msat msat, u64 mul)
601{
602 if (mul_overflows_u64(msat.millisatoshis, mul))
603 return false;
604 res->millisatoshis = msat.millisatoshis * mul;
605 return true;
606}
607
608static bool amount_msat_mul_div(struct amount_msat *res,
609 struct amount_msat msat, u64 mul, u64 div)

Callers 7

runFunction · 0.85
channel_hint_updateFunction · 0.85
routehint_step_cbFunction · 0.85
currencyrate_strFunction · 0.85
substract_flowFunction · 0.85
add_routehintFunction · 0.85
add_blindedpathFunction · 0.85

Calls 1

mul_overflows_u64Function · 0.85

Tested by

no test coverage detected