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

Function option_lease_fee_basis

plugins/funder.c:1693–1707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1691}
1692
1693static 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
1709static char *option_lease_weight_max(struct command *cmd, const char *arg,
1710 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