oxen-observer/templates/include/tx_fee.html
Jason Rhinelander 4b27018965 Initial commit
Basic working prototype of most of the first pages (templates brought in
from the old explorer but updated for jinja).
2020-08-17 22:17:06 -03:00

578 B

{% 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) + (tx.extra.burn_amount if 'burn_amount' in tx.info else 0) -%} {% if fee > 0 or show_zero -%} {{ fee | loki(tag=False, fixed=True, decimals=4) }} {%- if 'burn_amount' in tx.extra %} 🔥 {%-endif-%} {%endif-%} {% endmacro %}