Add a const DefaultDustThreshold
MODIFY
WalletWasabi.Gui/Config.cs
WalletWasabi.Gui/Config.cs
@@ -27,7 +27,7 @@ namespace WalletWasabi.Gui
public const int DefaultPrivacyLevelStrong = 50;
public const int DefaultMixUntilAnonymitySet = 50;
public const int DefaultTorSock5Port = 9050;
- public static readonly Money DefaultDustThreshold = Money.Coins(0.00001m);
+ public static readonly Money DefaultDustThreshold = Money.Coins(Constants.DefaultDustThreshold);
[JsonProperty(PropertyName = "Network")]
[JsonConverter(typeof(NetworkJsonConverter))]

MODIFY
WalletWasabi.Tests/IntegrationTests/P2pTests.cs
WalletWasabi.Tests/IntegrationTests/P2pTests.cs
@@ -99,7 +99,7 @@ namespace WalletWasabi.Tests.IntegrationTests
new CoinJoinClient(syncer, network, keyManager, new Uri("http://localhost:12345"), Global.Instance.TorSocks5Endpoint),
nodes,
Global.Instance.DataDir,
- new ServiceConfiguration(50, 2, 21, 50, new IPEndPoint(IPAddress.Loopback, network.DefaultPort), Money.Coins(0.00001m)));
+ new ServiceConfiguration(50, 2, 21, 50, new IPEndPoint(IPAddress.Loopback, network.DefaultPort), Money.Coins(Constants.DefaultDustThreshold)));
Assert.True(Directory.Exists(blocksFolderPath));
try

MODIFY
WalletWasabi.Tests/IntegrationTests/RegTests.cs
WalletWasabi.Tests/IntegrationTests/RegTests.cs
@@ -85,7 +85,7 @@ namespace WalletWasabi.Tests.IntegrationTests
global.Coordinator.UtxoReferee.Clear();
var network = global.RpcClient.Network;
- var serviceConfiguration = new ServiceConfiguration(2, 2, 21, 50, RegTestFixture.BackendRegTestNode.P2pEndPoint, Money.Coins(0.00001m));
+ var serviceConfiguration = new ServiceConfiguration(2, 2, 21, 50, RegTestFixture.BackendRegTestNode.P2pEndPoint, Money.Coins(Constants.DefaultDustThreshold));
var bitcoinStore = new BitcoinStore();
var dir = Path.Combine(Global.Instance.DataDir, caller);
await bitcoinStore.InitializeAsync(dir, network);

MODIFY
WalletWasabi/Helpers/Constants.cs
WalletWasabi/Helpers/Constants.cs
@@ -96,5 +96,7 @@ namespace WalletWasabi.Helpers
public const int DefaultRegTestBitcoinCoreRpcPort = 18443;
public const string Chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
+
+ public const decimal DefaultDustThreshold = 0.00001m;
}
}

Add a const DefaultDustThreshold