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

Function ratefactor

plugins/bkpr/bookkeeper.c:65–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65static u64 ratefactor(const struct iso4217_name_and_divisor *currency)
66{
67 u64 mul = 1;
68 for (u32 i = 0; i < currency->minor_unit; i++)
69 mul *= 10;
70 return mul;
71}
72
73const char *currencyrate_str(const tal_t *ctx,
74 const struct bkpr *bkpr,

Callers 2

currencyrate_strFunction · 0.85
currency_doneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected