| 1174 | } |
| 1175 | |
| 1176 | static char *option_lease_fee_base(const char *arg, |
| 1177 | struct funder_policy *policy) |
| 1178 | { |
| 1179 | struct amount_sat amt; |
| 1180 | char *err; |
| 1181 | if (!policy->rates) |
| 1182 | policy->rates = default_lease_rates(policy); |
| 1183 | |
| 1184 | err = amount_option(arg, &amt); |
| 1185 | if (err) |
| 1186 | return err; |
| 1187 | |
| 1188 | if (!assign_overflow_u32(&policy->rates->lease_fee_base_sat, |
| 1189 | amt.satoshis)) /* Raw: conversion */ |
| 1190 | return tal_fmt(NULL, "lease_fee_base_sat overflowed"); |
| 1191 | |
| 1192 | return NULL; |
| 1193 | } |
| 1194 | |
| 1195 | static char *option_lease_fee_basis(const char *arg, |
| 1196 | struct funder_policy *policy) |
nothing calls this directly
no test coverage detected