show even unconfirmed balance to not scare users.
ADD
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/TileViewModel.cs
+namespace WalletWasabi.Fluent.ViewModels.Wallets.Home.Tiles
+{
+ public abstract class TileViewModel : ViewModelBase
+ {
+ }
+}
\ No newline at end of file

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/WalletBalanceChartTileViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/WalletBalanceChartTileViewModel.cs
@@ -11,7 +11,7 @@ using WalletWasabi.Fluent.ViewModels.Wallets.Home.History;
namespace WalletWasabi.Fluent.ViewModels.Wallets.Home.Tiles
{
- public partial class WalletBalanceChartTileViewModel : ViewModelBase
+ public partial class WalletBalanceChartTileViewModel : TileViewModel
{
private readonly ReadOnlyObservableCollection<HistoryItemViewModel> _history;
private readonly ReadOnlyObservableCollection<double> _yValues;

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/WalletBalanceTileViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/WalletBalanceTileViewModel.cs
@@ -6,7 +6,7 @@ using WalletWasabi.Fluent.Helpers;
namespace WalletWasabi.Fluent.ViewModels.Wallets.Home.Tiles
{
- public partial class WalletBalanceTileViewModel : ViewModelBase
+ public partial class WalletBalanceTileViewModel : TileViewModel
{
private readonly Wallet _wallet;
[AutoNotify] private string _balanceBtc;
@@ -23,10 +23,10 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Home.Tiles
private void UpdateBalance()
{
- BalanceBtc = _wallet.Coins.Confirmed().TotalAmount().ToDecimal(MoneyUnit.BTC)
+ BalanceBtc = _wallet.Coins.TotalAmount().ToDecimal(MoneyUnit.BTC)
.FormattedBtc() + " BTC";
- BalanceFiat = _wallet.Coins.Confirmed().TotalAmount().ToDecimal(MoneyUnit.BTC)
+ BalanceFiat = _wallet.Coins.TotalAmount().ToDecimal(MoneyUnit.BTC)
.GenerateFiatText(_wallet.Synchronizer.UsdExchangeRate, "USD");
}
}

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/WalletPieChartTileViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/Tiles/WalletPieChartTileViewModel.cs
@@ -20,7 +20,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Home.Tiles
public double PercentShare { get; }
}
- public partial class WalletPieChartTileViewModel : ViewModelBase
+ public partial class WalletPieChartTileViewModel : TileViewModel
{
[AutoNotify] private IList<(string color, double percentShare)> _testDataPoints;
[AutoNotify] private IList<DataLegend> _testDataPointsLegend;

show even unconfirmed balance to not scare users.