| 36 | } |
| 37 | |
| 38 | struct channel_apy *new_channel_apy(const tal_t *ctx) |
| 39 | { |
| 40 | struct channel_apy *apy = tal(ctx, struct channel_apy); |
| 41 | |
| 42 | apy->routed_in = AMOUNT_MSAT(0); |
| 43 | apy->routed_out = AMOUNT_MSAT(0); |
| 44 | apy->fees_in = AMOUNT_MSAT(0); |
| 45 | apy->fees_out = AMOUNT_MSAT(0); |
| 46 | apy->push_in = AMOUNT_MSAT(0); |
| 47 | apy->push_out = AMOUNT_MSAT(0); |
| 48 | apy->lease_in = AMOUNT_MSAT(0); |
| 49 | apy->lease_out = AMOUNT_MSAT(0); |
| 50 | return apy; |
| 51 | } |
| 52 | |
| 53 | bool channel_apy_sum(struct channel_apy *sum_apy, |
| 54 | const struct channel_apy *entry) |
no outgoing calls
no test coverage detected