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

Function funder_policy_desc

plugins/funder_policy.c:51–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51const char *funder_policy_desc(const tal_t *ctx,
52 const struct funder_policy *policy)
53{
54 if (policy->opt == FIXED) {
55 struct amount_sat amt = amount_sat(policy->mod);
56 return tal_fmt(ctx, "%s (%s)",
57 funder_opt_name(policy->opt),
58 fmt_amount_sat(ctx, amt));
59 } else
60 return tal_fmt(ctx, "%s (%"PRIu64"%%)",
61 funder_opt_name(policy->opt), policy->mod);
62
63 /* FIXME: add in more info? */
64}
65
66static struct funder_policy *
67new_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
fmt_amount_satFunction · 0.50

Tested by 1

mainFunction · 0.68