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

Function json_add_currencyrate

plugins/bkpr/bookkeeper.c:111–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111void json_add_currencyrate(struct json_stream *result,
112 const char *fieldname,
113 const struct bkpr *bkpr,
114 u64 timestamp)
115{
116 const char *str = currencyrate_str(NULL, bkpr, timestamp, NULL);
117
118 if (str)
119 json_add_primitive(result, fieldname, take(str));
120}
121
122struct refresh_cb {
123 struct command *cmd;

Callers 3

json_add_channel_eventFunction · 0.70
json_add_onchain_feeFunction · 0.70
json_add_chain_eventFunction · 0.70

Calls 2

json_add_primitiveFunction · 0.85
currencyrate_strFunction · 0.70

Tested by

no test coverage detected