| 508 | } |
| 509 | |
| 510 | bool amount_sat_mul(struct amount_sat *res, struct amount_sat sat, u64 mul) |
| 511 | { |
| 512 | if ( mul_overflows_u64(sat.satoshis, mul)) |
| 513 | return false; |
| 514 | res->satoshis = sat.satoshis * mul; |
| 515 | return true; |
| 516 | } |
| 517 | |
| 518 | bool amount_msat_mul(struct amount_msat *res, struct amount_msat msat, u64 mul) |
| 519 | { |
no test coverage detected