| 49 | } |
| 50 | |
| 51 | const 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 | |
| 66 | static struct funder_policy * |
| 67 | new_funder_policy(const tal_t *ctx, |