{% extends "base.html" %} {% block title %} {{ block.super }} - Unprofitable Channels{% endblock %} {% block content %} {% load humanize %}

Unprofitable Channels ({{ timeframe_name }})

{% if channels %} {% for channel in channels %} {% endfor %} {% else %} {% endif %}
Channel ID Alias Routed Out (sats) Last Routing Rebalanced Out (sats) Last Rebalance Profit Assisted Revenue Initiator Age (Days) Local Ratio Stuck Index Actions
{{ channel.chan_id }} {% if channel.alias == '' %}---{% else %}{{ channel.alias }}{% endif %} {{ channel.routed_out_sats|add:"0"|intcomma }} {% if channel.last_routing %} {{ channel.last_routing.date|date:"M d, Y" }} ({{ channel.last_routing.amount|intcomma }} sats) {% else %}N/A{% endif %} {{ channel.rebalanced_out_sats|add:"0"|intcomma }} {% if channel.last_rebalance %} {{ channel.last_rebalance.date|date:"M d, Y" }} ({{ channel.last_rebalance.amount|floatformat:0|intcomma }} sats) {% else %}N/A{% endif %} {{ channel.profit|add:"0"|intcomma }} {{ channel.assisted_revenue|add:"0"|intcomma }} {% if channel.initiator %}Local{% else %}Remote{% endif %} {{ channel.age_days }} {{ channel.local_ratio }}% ({{ channel.capacity_millions }}M) 0.8 %}style="color: red;"{% elif channel.stuck_index > 0.4 %}style="color: orange;"{% else %}style="color: green;"{% endif %}>{{ channel.stuck_index }}
No channel data available for the selected timeframe.

Understanding the Metrics:

Note: Channels with negative profit, low assisted revenue, and high stuck index are good candidates for closure.

{% endblock %}