Review balance tile
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/WalletBalanceTileViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/WalletBalanceTileViewModel.cs
@@ -18,7 +18,7 @@ public partial class WalletBalanceTileViewModel : TileViewModel
private readonly IObservable<Unit> _balanceChanged;
private readonly ObservableCollection<HistoryItemViewModelBase> _history;
[AutoNotify(SetterModifier = AccessModifier.Private)] private string? _balanceBtc;
- [AutoNotify(SetterModifier = AccessModifier.Private)] private string? _balanceFiat;
+ [AutoNotify(SetterModifier = AccessModifier.Private)] private decimal _balanceFiat;
[AutoNotify(SetterModifier = AccessModifier.Private)] private string? _balancePrivateBtc;
[AutoNotify(SetterModifier = AccessModifier.Private)] private string? _balanceNonPrivateBtc;
[AutoNotify(SetterModifier = AccessModifier.Private)] private string? _recentTransactionName;
@@ -57,12 +57,8 @@ public partial class WalletBalanceTileViewModel : TileViewModel
BalanceBtc = $"{totalAmount.ToFormattedString()} BTC";
var fiatAmount = _wallet.Coins.TotalAmount().ToDecimal(MoneyUnit.BTC) * _wallet.Synchronizer.UsdExchangeRate;
- var fiatFormat =
- fiatAmount >= 10
- ? "N0"
- : "N2";
- BalanceFiat = fiatAmount.GenerateFiatText("USD", fiatFormat).TrimEnd();
+ BalanceFiat = fiatAmount;
var privateThreshold = _wallet.KeyManager.AnonScoreTarget;
var privateCoins = _wallet.Coins.FilterBy(x => x.HdPubKey.AnonymitySet >= privateThreshold);

Review balance tile