mirror of
https://github.com/lux-tel/session-observer.git
synced 2026-11-07 18:32:01 +00:00
13 lines
510 B
HTML
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 %}
|