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

Function option_lease_fee_base

plugins/funder.c:1176–1193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1174}
1175
1176static char *option_lease_fee_base(const char *arg,
1177 struct funder_policy *policy)
1178{
1179 struct amount_sat amt;
1180 char *err;
1181 if (!policy->rates)
1182 policy->rates = default_lease_rates(policy);
1183
1184 err = amount_option(arg, &amt);
1185 if (err)
1186 return err;
1187
1188 if (!assign_overflow_u32(&policy->rates->lease_fee_base_sat,
1189 amt.satoshis)) /* Raw: conversion */
1190 return tal_fmt(NULL, "lease_fee_base_sat overflowed");
1191
1192 return NULL;
1193}
1194
1195static char *option_lease_fee_basis(const char *arg,
1196 struct funder_policy *policy)

Callers

nothing calls this directly

Calls 3

default_lease_ratesFunction · 0.85
amount_optionFunction · 0.85
assign_overflow_u32Function · 0.85

Tested by

no test coverage detected