This commit is contained in:
Kukks
2024-09-03 11:42:12 +02:00
parent 4cf6f51d29
commit bd882340e6
12 changed files with 11 additions and 49 deletions

View File

@@ -50,15 +50,6 @@ namespace BTCPayServer.Plugins.Wabisabi
nameof(WabisabiStoreSettings));
res ??= new WabisabiStoreSettings();
res.Settings = res.Settings.Where(settings => _ids.Contains(settings.Coordinator)).ToList();
res.Settings.ForEach(settings =>
{
if (settings.RoundWhenEnabled != null &&
string.IsNullOrEmpty(settings.RoundWhenEnabled.PlebsDontPayThreshold))
{
settings.RoundWhenEnabled.PlebsDontPayThreshold = "1000000";
}
});
await EnablePayoutProcessorBasedOnSettings(storeId, res);
return res;
@@ -126,8 +117,6 @@ namespace BTCPayServer.Plugins.Wabisabi
? new LastCoordinatorRoundConfig()
{
CoordinationFeeRate = roundParameters.CoordinationFeeRate.Rate,
PlebsDontPayThreshold = roundParameters.CoordinationFeeRate
.PlebsDontPayThreshold.Satoshi.ToString(),
MinInputCountByRound = roundParameters.MinInputCountByRound,
}
: null;