| 1650 | } |
| 1651 | |
| 1652 | static char *option_lease_fee_basis(struct command *cmd, const char *arg, |
| 1653 | bool check_only, |
| 1654 | struct funder_policy *policy) |
| 1655 | { |
| 1656 | u16 lfb; |
| 1657 | char *problem = u16_option(cmd, arg, false, &lfb); |
| 1658 | |
| 1659 | if (problem || check_only) |
| 1660 | return problem; |
| 1661 | |
| 1662 | if (!policy->rates) |
| 1663 | policy->rates = default_lease_rates(policy); |
| 1664 | policy->rates->lease_fee_basis = lfb; |
| 1665 | return NULL; |
| 1666 | } |
| 1667 | |
| 1668 | static char *option_lease_weight_max(struct command *cmd, const char *arg, |
| 1669 | bool check_only, |
nothing calls this directly
no test coverage detected