| 43 | } |
| 44 | |
| 45 | struct channel_apy *new_channel_apy(const tal_t *ctx) |
| 46 | { |
| 47 | struct channel_apy *apy = tal(ctx, struct channel_apy); |
| 48 | |
| 49 | apy->routed_in = AMOUNT_MSAT(0); |
| 50 | apy->routed_out = AMOUNT_MSAT(0); |
| 51 | apy->fees_in = AMOUNT_MSAT(0); |
| 52 | apy->fees_out = AMOUNT_MSAT(0); |
| 53 | apy->push_in = AMOUNT_MSAT(0); |
| 54 | apy->push_out = AMOUNT_MSAT(0); |
| 55 | apy->lease_in = AMOUNT_MSAT(0); |
| 56 | apy->lease_out = AMOUNT_MSAT(0); |
| 57 | return apy; |
| 58 | } |
| 59 | |
| 60 | bool channel_apy_sum(struct channel_apy *sum_apy, |
| 61 | const struct channel_apy *entry) |
no outgoing calls
no test coverage detected