| 516 | } |
| 517 | |
| 518 | bool amount_msat_mul(struct amount_msat *res, struct amount_msat msat, u64 mul) |
| 519 | { |
| 520 | if ( mul_overflows_u64(msat.millisatoshis, mul)) |
| 521 | return false; |
| 522 | res->millisatoshis = msat.millisatoshis * mul; |
| 523 | return true; |
| 524 | } |
| 525 | |
| 526 | bool amount_msat_fee(struct amount_msat *fee, |
| 527 | struct amount_msat amt, |
nothing calls this directly
no test coverage detected