Files
2021-01-07 18:04:00 -04:00

13 lines
510 B
HTML

{% macro display(tx, show_zero=false) -%}
{% set fee =
(tx.info.rct_signatures.txnFee if 'rct_signatures' in tx.info and 'txnFee' in tx.info.rct_signatures else 0)
-%}
{% if fee > 0 or show_zero -%}
{{ fee | oxen(tag=False, fixed=True, decimals=4) }}
{%- if 'burn_amount' in tx.extra %}
<span class="icon" title="= {{(fee - tx.extra.burn_amount) | oxen}} TX fee
+ {{tx.extra.burn_amount | oxen}} burned">🔥</span>
{%-endif-%}
{%endif-%}
{% endmacro %}