Added network fee
MODIFY
WalletWasabi.Gui/Controls/TransactionDetails/ViewModels/TransactionDetailsViewModel.cs
WalletWasabi.Gui/Controls/TransactionDetails/ViewModels/TransactionDetailsViewModel.cs
@@ -88,6 +88,8 @@ namespace WalletWasabi.Gui.Controls.TransactionDetails.ViewModels
set => this.RaiseAndSetIfChanged(ref _outputCount, value);
}
+ public Money NetworkFee => TotalOutputValue - TotalInputValue;
+
public static TransactionDetailsViewModel FromBuildTxnResult(BitcoinStore store, PSBT psbt)
{
AddressAmountTuple FromTxOutput(TxOut output) =>

MODIFY
WalletWasabi.Gui/Controls/TransactionDetails/Views/TransactionDetails.xaml
WalletWasabi.Gui/Controls/TransactionDetails/Views/TransactionDetails.xaml
<TextBlock Classes="monospaceFont" Text="Output Amount (BTC):" />
<controls:ExtendedTextBox Grid.Column="1" Classes="selectableTextBlock monospaceFont Transparent" Text="{Binding TotalOutputValue, Mode=OneWay, Converter={StaticResource MoneyStringConverter}}" Foreground="{Binding TotalOutputValue, Converter={StaticResource MoneyBrushConverter}}" />
</Grid>
+ <Grid ColumnDefinitions="170, *">
+ <TextBlock Classes="monospaceFont" Text="Network Fee (BTC):" />
+ <controls:ExtendedTextBox Grid.Column="1" Classes="selectableTextBlock monospaceFont Transparent" Text="{Binding NetworkFee, Mode=OneWay, Converter={StaticResource MoneyStringConverter}}" Foreground="{Binding NetworkFee, Converter={StaticResource MoneyBrushConverter}}" />
+ </Grid>
<Grid ColumnDefinitions="170, *">
<TextBlock Classes="monospaceFont" Text="Input Count:" />
<controls:ExtendedTextBox Grid.Column="1" Classes="selectableTextBlock monospaceFont Transparent" Text="{Binding Path=InputCount, Mode=OneWay, StringFormat=\{0\} Input(s)}" />

MODIFY
WalletWasabi.Gui/Converters/MoneyBrushConverter.cs
WalletWasabi.Gui/Converters/MoneyBrushConverter.cs
@@ -23,7 +23,7 @@ namespace WalletWasabi.Gui.Converters
}
else if (value is Money inMoney)
{
- money = decimal.Parse(inMoney.ToString());
+ money = inMoney.ToDecimal(MoneyUnit.BTC);
}
else
{

Added network fee