Skip to content

Gate APR liquidity based on idle volume threshold - #610

Merged
Jossec101 merged 1 commit into
mainfrom
fix/refactor-liquidity
Sep 16, 2026
Merged

Jossec101 merged 1 commit into
mainfrom
fix/refactor-liquidity

Conversation

@markettes

Copy link
Copy Markdown
Contributor

The Grafana routing dashboard split its APR denominators on a boolean
"Active Channels Only" toggle, where "active" meant a channel had settled
at least one HTLC in the window — effectively a 1 msat volume gate. That
let barely-used channels count as fully deployed capital, and panel 113
("APR over time by managed node") ignored the toggle entirely while its
sibling panels 206/402 honoured it, so the three disagreed whenever it
was set to No.

Replace the boolean with a three-way $liquidityActivity variable:

0 All channels every channel of the selected nodes
1 Routed in window settled >= 1 HTLC (previous "Yes" behaviour)
2 Above volume gate clears the routing engine's idle threshold

@markettes
markettes requested a review from Jossec101 September 16, 2026 10:45
@Jossec101
Jossec101 merged commit 94474f9 into main Sep 16, 2026
5 checks passed
@Jossec101
Jossec101 deleted the fix/refactor-liquidity branch September 16, 2026 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants