Change copied content
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/TransactionSummaryViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/TransactionSummaryViewModel.cs
using System.Linq;
+using NBitcoin;
using ReactiveUI;
using WalletWasabi.Blockchain.Analysis.Clustering;
using WalletWasabi.Blockchain.TransactionBuilding;
@@ -22,6 +23,8 @@ public partial class TransactionSummaryViewModel : ViewModelBase
[AutoNotify] private bool _isOtherPocketSelectionPossible;
[AutoNotify] private SmartLabel _labels = SmartLabel.Empty;
[AutoNotify] private SmartLabel _recipient = SmartLabel.Empty;
+ [AutoNotify] private decimal _fee;
+ [AutoNotify] private decimal _amount;
public TransactionSummaryViewModel(TransactionPreviewViewModel parent, Wallet wallet, TransactionInfo info, bool isPreview = false)
{
@@ -55,9 +58,11 @@ public partial class TransactionSummaryViewModel : ViewModelBase
var destinationAmount = _transaction.CalculateDestinationAmount();
AmountText = $"{destinationAmount.ToFormattedString()} BTC";
+ Amount = destinationAmount.ToDecimal(MoneyUnit.BTC);
var fee = _transaction.Fee;
FeeText = fee.ToFeeDisplayUnitFormattedString();
+ Fee = _transaction.Fee.ToDecimal(MoneyUnit.BTC);
var exchangeRate = _wallet.Synchronizer.UsdExchangeRate;
if (exchangeRate != 0)

Change copied content