allow decimal
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/SendControlViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/SendControlViewModel.cs
@@ -818,7 +818,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
{
try
{
- if (decimal.TryParse(feeText, NumberStyles.Integer, new CultureInfo("en-US"), out var userFee))
+ if (decimal.TryParse(feeText, NumberStyles.AllowDecimalPoint, new CultureInfo("en-US"), out var userFee))
{
var userFeeRate = new FeeRate(userFee);
userFeeRateAsDecimal = userFeeRate.SatoshiPerByte;

MODIFY
WalletWasabi.Tests/UnitTests/GUI/SendControlViewModelTest.cs
WalletWasabi.Tests/UnitTests/GUI/SendControlViewModelTest.cs
@@ -7,11 +7,11 @@ namespace WalletWasabi.Tests.UnitTests.GUI
{
[Theory]
[InlineData(true, "47")]
+ [InlineData(true, "47.0")]
[InlineData(true, "1")]
[InlineData(true, "2099999997690000")]
- [InlineData(false, "2099999997690001")]
[InlineData(false, "0")]
- [InlineData(false, "47.0")]
+ [InlineData(false, "2099999997690001")]
[InlineData(false, "0.1")]
public void SendControlViewModel_Check_Test_Fees(bool isValid, string feeText)
{

allow decimal