mirror of
https://github.com/lux-tel/session-observer.git
synced 2026-11-07 18:32:01 +00:00
- Show batched payout rewards rather than "16.5" which isn't a particularly relevant value anymore. - Add total batched earnings to the index - Update math for 10 contribution spots - Update to show HF19 registration details - Fix bug where the first tx in a no-payout block was not shown on the block details page
12 lines
778 B
HTML
12 lines
778 B
HTML
{# First three commons columns of SN tables: pubkey, # contributors, and op fee #}
|
|
|
|
{%-set portions_base = 2**64 - 4-%}
|
|
{%-set solo_node = sn.contributors|length == 1 and sn.funded %}
|
|
{%-set max_contributors = 10 if 'hard_fork' in info and info.hard_fork >= 19 else 4 %}
|
|
|
|
<td><a href="/sn/{{sn.service_node_pubkey}}">{{sn.service_node_pubkey}}</a></td>
|
|
<td title="
|
|
{%-for c in sn.contributors%}{%for lc in c.locked_contributions%}{{c.address | truncate(15)}} ({{lc.amount | oxen(decimals=0)}} = {{(lc.amount / sn.staking_requirement * 100) | round(1) | chop0}}%)
|
|
{%endfor%}{%endfor%}"><span class="icon">{{sn.contributors | length}}/{{max_contributors}}</span></td>
|
|
<td>{%if not solo_node%}{{ (sn.portions_for_operator / portions_base * 100) | round(2) | chop0 }}{%endif%}</td>
|