WIP show fees of Lightning transactions
This commit is contained in:
parent
8ce5f9708f
commit
34849b28b0
@ -78,6 +78,7 @@ class WalletController < ApplicationController
|
|||||||
tx["received"] = true
|
tx["received"] = true
|
||||||
else
|
else
|
||||||
tx["amount_sats"] = tx["value"] || tx["amt"]
|
tx["amount_sats"] = tx["value"] || tx["amt"]
|
||||||
|
tx["fee"] = tx["type"] == "paid_invoice" ? tx["fee"] : nil
|
||||||
tx["datetime"] = Time.at(tx["timestamp"].to_i)
|
tx["datetime"] = Time.at(tx["timestamp"].to_i)
|
||||||
tx["title"] = tx["type"] == "paid_invoice" ? "Sent" : "Received"
|
tx["title"] = tx["type"] == "paid_invoice" ? "Sent" : "Received"
|
||||||
tx["description"] = tx["memo"] || tx["description"]
|
tx["description"] = tx["memo"] || tx["description"]
|
||||||
|
@ -35,7 +35,8 @@
|
|||||||
</p>
|
</p>
|
||||||
<p class="col-span-4 md:col-span-1 md:text-right mb-0">
|
<p class="col-span-4 md:col-span-1 md:text-right mb-0">
|
||||||
<span class="col-span-2 md:col-span-1 text-sm text-gray-500">
|
<span class="col-span-2 md:col-span-1 text-sm text-gray-500">
|
||||||
<%= tx["datetime"].strftime("%B %e, %H:%M") %>
|
<%= tx["datetime"].strftime("%B %e, %H:%M") -%>
|
||||||
|
<% if tx["fee"] && (tx["fee"] > 0) %>, Fee: <%= tx["fee"] %> sats<% end %>
|
||||||
</span>
|
</span>
|
||||||
</p>
|
</p>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user