| 37 | } |
| 38 | |
| 39 | const 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 | |
| 54 | static struct funder_policy * |
| 55 | new_funder_policy(const tal_t *ctx, |