From e25e800b506060deb715903b9ac643404509a15f Mon Sep 17 00:00:00 2001 From: Jason Rhinelander Date: Wed, 24 Mar 2021 21:59:04 -0300 Subject: [PATCH] 100% fee display, part 2 Previous commit missed some things. --- templates/include/sn_kcf.html | 4 ++-- templates/sn.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/include/sn_kcf.html b/templates/include/sn_kcf.html index a395725..5e9d0bf 100644 --- a/templates/include/sn_kcf.html +++ b/templates/include/sn_kcf.html @@ -1,10 +1,10 @@ {# 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 %} {{sn.service_node_pubkey}} {{sn.contributors | length}}/4 -{%if sn.portions_for_operator != portions_base or sn.contributors|length > 1 or not sn.funded-%} - {{ (sn.portions_for_operator / portions_base * 100) | round(3) | chop0 }}{%endif%} +{%if not solo_node%}{{ (sn.portions_for_operator / portions_base * 100) | round(3) | chop0 }}{%endif%} diff --git a/templates/sn.html b/templates/sn.html index 2092821..1e4eb4f 100644 --- a/templates/sn.html +++ b/templates/sn.html @@ -3,7 +3,7 @@ {% block content %} {%-set portions_base = 2**64 - 4 %} -{%-set solo_node = sn.portions_for_operator == portions_base %} +{%-set solo_node = sn.contributors|length == 1 and sn.funded %} {%-set decommed = sn.funded and not sn.active %}