MCPcopy Create free account
hub / github.com/ElementsProject/lightning / option_lease_fee_basis

Function option_lease_fee_basis

plugins/funder.c:1652–1666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1650}
1651
1652static 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
1668static char *option_lease_weight_max(struct command *cmd, const char *arg,
1669 bool check_only,

Callers

nothing calls this directly

Calls 2

u16_optionFunction · 0.85
default_lease_ratesFunction · 0.85

Tested by

no test coverage detected