| 590 | } |
| 591 | |
| 592 | bool 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 | |
| 600 | bool amount_msat_mul(struct amount_msat *res, struct amount_msat msat, u64 mul) |
| 601 | { |
no test coverage detected