make usd price whole number
MODIFY
WalletWasabi.Fluent/Helpers/CurrencyUtils.cs
WalletWasabi.Fluent/Helpers/CurrencyUtils.cs
@@ -42,8 +42,8 @@ public static class CurrencyUtils
return string.Format(FormatInfo, "{0:### ### ### ##0.#### ####}", amount).Trim();
}
- public static string FormattedFiat(this decimal amount)
+ public static string FormattedFiat(this decimal amount, string format = "N2")
{
- return string.Format(FormatInfo, "{0:N2}", amount).Trim();
+ return amount.ToString(format, FormatInfo).Trim();
}
}

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/BtcPriceTileViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/BtcPriceTileViewModel.cs
@@ -23,7 +23,7 @@ public partial class BtcPriceTileViewModel : TileViewModel
_wallet.Synchronizer.WhenAnyValue(x => x.UsdExchangeRate)
.ObserveOn(RxApp.MainThreadScheduler)
- .Subscribe(usd => BtcPrice = usd.FormattedFiat() + " USD")
+ .Subscribe(usd => BtcPrice = usd.FormattedFiat(format: "N0") + " USD")
.DisposeWith(disposables);
}
}

make usd price whole number