feat: introduce feeFormattedValue and feeFormatted to remove string parsing in view model (#2366)

Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
This commit is contained in:
cyan
2025-07-11 03:31:12 +03:00
committed by GitHub
co-authored by Omar Hatem
parent 342269a496
commit 0e23138040
13 changed files with 47 additions and 15 deletions
@@ -59,7 +59,10 @@ class PendingBitcoinTransaction with PendingTransaction {
String get amountFormatted => bitcoinAmountToString(amount: amount);
@override
String get feeFormatted => bitcoinAmountToString(amount: fee);
String get feeFormatted => "$feeFormattedValue BTC";
@override
String get feeFormattedValue => bitcoinAmountToString(amount: fee);
@override
int? get outputCount => _tx.outputs.length;