| 1691 | } |
| 1692 | |
| 1693 | static char *option_lease_fee_basis(struct command *cmd, const char *arg, |
| 1694 | bool check_only, |
| 1695 | struct funder_policy *policy) |
| 1696 | { |
| 1697 | u16 lfb; |
| 1698 | char *problem = u16_option(cmd, arg, false, &lfb); |
| 1699 | |
| 1700 | if (problem || check_only) |
| 1701 | return problem; |
| 1702 | |
| 1703 | if (!policy->rates) |
| 1704 | policy->rates = default_lease_rates(policy); |
| 1705 | policy->rates->lease_fee_basis = lfb; |
| 1706 | return NULL; |
| 1707 | } |
| 1708 | |
| 1709 | static char *option_lease_weight_max(struct command *cmd, const char *arg, |
| 1710 | bool check_only, |
nothing calls this directly
no test coverage detected