2020-08-18 18:42:24 +02:00
|
|
|
{# First three commons columns of SN tables: pubkey, # contributors, and op fee #}
|
2020-08-20 00:41:22 +02:00
|
|
|
|
|
|
|
{%-set portions_base = 2**64 - 4-%}
|
2021-03-25 01:59:04 +01:00
|
|
|
{%-set solo_node = sn.contributors|length == 1 and sn.funded %}
|
2020-08-20 00:41:22 +02:00
|
|
|
|
2020-08-31 18:51:28 +02:00
|
|
|
<td><a href="/sn/{{sn.service_node_pubkey}}">{{sn.service_node_pubkey}}</a></td>
|
2020-08-18 18:42:24 +02:00
|
|
|
<td title="
|
2021-01-07 23:04:00 +01:00
|
|
|
{%-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}}%)
|
2020-08-18 18:42:24 +02:00
|
|
|
{%endfor%}{%endfor%}"><span class="icon">{{sn.contributors | length}}/4</span></td>
|
2021-03-25 01:59:04 +01:00
|
|
|
<td>{%if not solo_node%}{{ (sn.portions_for_operator / portions_base * 100) | round(3) | chop0 }}{%endif%}</td>
|