| 1140 | }; |
| 1141 | |
| 1142 | static char *option_channel_base(const char *arg, struct funder_policy *policy) |
| 1143 | { |
| 1144 | struct amount_msat amt; |
| 1145 | |
| 1146 | if (!parse_amount_msat(&amt, arg, strlen(arg))) |
| 1147 | return tal_fmt(NULL, "Unable to parse amount '%s'", arg); |
| 1148 | |
| 1149 | if (!policy->rates) |
| 1150 | policy->rates = default_lease_rates(policy); |
| 1151 | |
| 1152 | if (!assign_overflow_u32(&policy->rates->channel_fee_max_base_msat, |
| 1153 | amt.millisatoshis)) /* Raw: conversion */ |
| 1154 | return tal_fmt(NULL, "channel_fee_max_base_msat overflowed"); |
| 1155 | |
| 1156 | return NULL; |
| 1157 | } |
| 1158 | |
| 1159 | static char * |
| 1160 | option_channel_fee_proportional_thousandths_max(const char *arg, |
nothing calls this directly
no test coverage detected