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

Function funder_policy_desc

plugins/funder_policy.c:39–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39const char *funder_policy_desc(const tal_t *ctx,
40 const struct funder_policy *policy)
41{
42 if (policy->opt == FIXED) {
43 struct amount_sat amt = amount_sat(policy->mod);
44 return tal_fmt(ctx, "%s (%s)",
45 funder_opt_name(policy->opt),
46 type_to_string(ctx, struct amount_sat, &amt));
47 } else
48 return tal_fmt(ctx, "%s (%"PRIu64"%%)",
49 funder_opt_name(policy->opt), policy->mod);
50
51 /* FIXME: add in more info? */
52}
53
54static struct funder_policy *
55new_funder_policy(const tal_t *ctx,

Callers 3

listfunds_successFunction · 0.85
json_add_policyFunction · 0.85
mainFunction · 0.85

Calls 3

funder_opt_nameFunction · 0.85
amount_satClass · 0.70
type_to_stringClass · 0.50

Tested by 1

mainFunction · 0.68