Add CurrentSatoshiPerByte
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Send/SendFeeViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Send/SendFeeViewModel.cs
@@ -37,6 +37,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
[AutoNotify] private double[]? _satoshiPerByteValues;
[AutoNotify] private string[]? _confirmationTargetLabels;
[AutoNotify] private double _currentConfirmationTarget;
+ [AutoNotify] private decimal _currentSatoshiPerByte;
[AutoNotify(SetterModifier = AccessModifier.Private)] private int _sliderMinimum;
[AutoNotify(SetterModifier = AccessModifier.Private)] private int _sliderMaximum;
[AutoNotify] private int _sliderValue;
@@ -247,6 +248,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
if (_confirmationTargetValues is not null)
{
SliderValue = GetSliderValue(confirmationTarget, _confirmationTargetValues);
+ CurrentSatoshiPerByte = GetSatoshiPerByte(confirmationTarget);
}
_updatingCurrentValue = false;
@@ -305,6 +307,7 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Send
SliderMaximum = confirmationTargetValues.Length - 1;
CurrentConfirmationTarget = Math.Clamp(CurrentConfirmationTarget, ConfirmationTargetValues.Min(), ConfirmationTargetValues.Max());
SliderValue = GetSliderValue(CurrentConfirmationTarget, ConfirmationTargetValues);
+ CurrentSatoshiPerByte = GetSatoshiPerByte(CurrentConfirmationTarget);
_updatingCurrentValue = false;
}

MODIFY
WalletWasabi.Fluent/Views/Wallets/Send/SendFeeView.axaml
WalletWasabi.Fluent/Views/Wallets/Send/SendFeeView.axaml
Value="{Binding SliderValue}">
<Slider.Styles>
<Style Selector="Slider /template/ Thumb">
- <Setter Property="ToolTip.Tip" Value="{Binding $parent[Slider].Value, Mode=OneWay, StringFormat='Value \{0:f\}'}" />
+ <Setter Property="ToolTip.Tip" Value="{Binding CurrentSatoshiPerByte, Mode=OneWay, StringFormat='Value \{0:f\}'}" />
<Setter Property="ToolTip.Placement" Value="Bottom" />
<Setter Property="ToolTip.VerticalOffset" Value="10" />
<Setter Property="ToolTip.HorizontalOffset" Value="-30" />

Add CurrentSatoshiPerByte