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

Function amount_sat_mul

common/amount.c:592–598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

590}
591
592bool amount_sat_mul(struct amount_sat *res, struct amount_sat sat, u64 mul)
593{
594 if (mul_overflows_u64(sat.satoshis, mul))
595 return false;
596 res->satoshis = sat.satoshis * mul;
597 return true;
598}
599
600bool amount_msat_mul(struct amount_msat *res, struct amount_msat msat, u64 mul)
601{

Callers 6

runFunction · 0.85
amount_feerateFunction · 0.85
calc_in_ppm_and_feeFunction · 0.85
handle_fee_and_ppmFunction · 0.85
adjust_pending_out_ppmFunction · 0.85
funder_channel_startFunction · 0.85

Calls 1

mul_overflows_u64Function · 0.85

Tested by

no test coverage detected