display aux fee

pull/541/head
jagdeep sidhu 2020-12-21 21:01:59 -08:00
parent 8406812d25
commit a74480b38b
2 changed files with 5 additions and 0 deletions

View File

@ -75,12 +75,14 @@
<th>Asset</th>
<th>Total Input</th>
<th>Total Output</th>
<th>Fee</th>
</tr>
{{- range $tokenTransfer := $tx.TokenTransferSummary -}}{{if $tokenTransfer}}
<tr>
<td class="data ellipsis"><a href="/asset/{{$tokenTransfer.Token}}">{{$tokenTransfer.Token}}</a>&nbsp;<span class="text-muted">{{formatDecodeBase64 $tokenTransfer.Symbol}}</span></td>
<td class="data ellipsis">{{formatAmountWithDecimals $tokenTransfer.ValueIn $tokenTransfer.Decimals}} {{formatDecodeBase64 $tokenTransfer.Symbol}}</td>
<td class="data ellipsis">{{formatAmountWithDecimals $tokenTransfer.Value $tokenTransfer.Decimals}} {{formatDecodeBase64 $tokenTransfer.Symbol}}</td>
<td class="data ellipsis">{{formatAmountWithDecimals $tokenTransfer.Fee $tokenTransfer.Decimals}} {{formatDecodeBase64 $tokenTransfer.Symbol}}</td>
</tr>
{{- end -}}{{- end -}}
</tbody>

View File

@ -80,6 +80,9 @@
{{- if $tx.FeesSat -}}
<span class="txvalues txvalues-default">Fee: {{formatAmount $tx.FeesSat}} {{$cs}}</span>
{{- end -}}
{{- range $tokenTransfer := $tx.TokenTransferSummary -}}{{if $tokenTransfer && $tokenTransfer.Fee > 0}}
<span class="txvalues txvalues-default">Fee: {{formatAmountWithDecimals $tokenTransfer.Fee}} {{formatDecodeBase64 $tokenTransfer.Symbol}}</span>
{{- end -}}{{- end -}}
</div>
<div class="col-xs-6 col-sm-8 col-md-8 text-right">
{{- if $tx.Confirmations -}}