Review TransactionSummaryViewModel
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/TransactionSummaryViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/TransactionSummaryViewModel.cs
@@ -56,12 +56,13 @@ public partial class TransactionSummaryViewModel : ViewModelBase
var destinationAmount = _transaction.CalculateDestinationAmount();
var btcAmountText = $"{destinationAmount.ToFormattedString()} BTC";
- var fiatAmountText = destinationAmount.ToDecimal(MoneyUnit.BTC).GenerateFiatText(_wallet.Synchronizer.UsdExchangeRate, "USD");
+ var exchangeRate = _wallet.Synchronizer.UsdExchangeRate;
+ var fiatAmountText = destinationAmount.BtcToUsd(exchangeRate).ToUsdAprox();
AmountText = $"{btcAmountText} {fiatAmountText}";
var fee = _transaction.Fee;
var feeText = fee.ToFeeDisplayUnitString();
- var fiatFeeText = fee.ToDecimal(MoneyUnit.BTC).GenerateFiatText(_wallet.Synchronizer.UsdExchangeRate, "USD");
+ var fiatFeeText = fee.BtcToUsd(exchangeRate).ToUsdAprox();
FeeText = $"{feeText} {fiatFeeText}";
TransactionHasChange =

Review TransactionSummaryViewModel