Skip to content

Commit 3ac5d29

Browse files
authored
fix: add transaction fee percentage (#1780)
1 parent b8d2861 commit 3ac5d29

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

frontend/src/components/TransactionItem.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,9 @@ function TransactionItem({ tx }: Props) {
282282
Math.floor(tx.feesPaid / 1000)
283283
)}{" "}
284284
{Math.floor(tx.feesPaid / 1000) == 1 ? "sat" : "sats"}
285+
{tx.feesPaid > 0 && (
286+
<>&nbsp;({((tx.feesPaid / tx.amount) * 100).toFixed(2)}%)</>
287+
)}
285288
</p>
286289
</div>
287290
)}

0 commit comments

Comments
 (0)