| 707 | } |
| 708 | |
| 709 | bool amount_feerate(u32 *feerate, struct amount_sat fee, size_t weight) |
| 710 | { |
| 711 | assert(weight); |
| 712 | |
| 713 | if (!amount_sat_mul(&fee, fee, 1000)) |
| 714 | return false; |
| 715 | |
| 716 | return assign_overflow_u32(feerate, fee.satoshis / weight); |
| 717 | } |
| 718 | |
| 719 | bool amount_asset_is_main(struct amount_asset *amount) |
| 720 | { |
no test coverage detected