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

Function amount_msat_deduct

common/amount.c:285–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

283}
284
285WARN_UNUSED_RESULT bool amount_msat_deduct(struct amount_msat *a,
286 struct amount_msat b)
287{
288 return amount_msat_sub(a, *a, b);
289}
290
291WARN_UNUSED_RESULT bool amount_msat_deduct_sat(struct amount_msat *a,
292 struct amount_sat b)

Callers 15

htlc_dustFunction · 0.85
subtract_offered_htlcsFunction · 0.85
subtract_received_htlcsFunction · 0.85
remove_htlc_outFunction · 0.85
calc_capacityFunction · 0.85
insert_chain_fees_diffFunction · 0.85
fillin_apy_acct_detailsFunction · 0.85
reserve_subFunction · 0.85

Calls 1

amount_msat_subFunction · 0.85

Tested by

no test coverage detected