mirror of
https://github.com/aljazceru/BTCPayServerPlugins.git
synced 2025-12-17 07:34:24 +01:00
quick fix
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
<PropertyGroup>
|
||||
<Product>Wabisabi Coinjoin</Product>
|
||||
<Description>Allows you to integrate your btcpayserver store with coinjoins.</Description>
|
||||
<Version>1.0.13</Version>
|
||||
<Version>1.0.14</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Plugin development properties -->
|
||||
|
||||
@@ -169,13 +169,18 @@ public class BTCPayWallet : IWallet, IDestinationProvider
|
||||
}
|
||||
public static bool IsRoundOk(RoundParameters roundParameters, WabisabiStoreCoordinatorSettings coordSettings)
|
||||
{
|
||||
if (coordSettings.RoundWhenEnabled is null)
|
||||
try
|
||||
{
|
||||
return coordSettings.RoundWhenEnabled is not null &&
|
||||
roundParameters.CoordinationFeeRate.Rate <= coordSettings.RoundWhenEnabled.CoordinationFeeRate &&
|
||||
roundParameters.CoordinationFeeRate.PlebsDontPayThreshold <=
|
||||
coordSettings.RoundWhenEnabled.PlebsDontPayThreshold &&
|
||||
roundParameters.MinInputCountByRound <= coordSettings.RoundWhenEnabled.MinInputCountByRound;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return roundParameters.CoordinationFeeRate.Rate <= coordSettings.RoundWhenEnabled.CoordinationFeeRate &&
|
||||
roundParameters.CoordinationFeeRate.PlebsDontPayThreshold <= coordSettings.RoundWhenEnabled.PlebsDontPayThreshold &&
|
||||
roundParameters.MinInputCountByRound <= coordSettings.RoundWhenEnabled.MinInputCountByRound;
|
||||
}
|
||||
public async Task<IEnumerable<SmartCoin>> GetCoinjoinCoinCandidatesAsync(string coordinatorName)
|
||||
{
|
||||
|
||||
Submodule submodules/walletwasabi updated: b455e12d81...509c1bd772
Reference in New Issue
Block a user