mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 01:43:50 +01:00
Fix: Kraken rate provider failing due to bid > ask
This commit is contained in:
parent
1506a2738a
commit
fe01e4693f
@ -93,7 +93,7 @@ namespace BTCPayServer.Services.Rates
|
||||
if (ticker != null)
|
||||
{
|
||||
var pair = GetCurrencyPair(symbol);
|
||||
if (pair is not null)
|
||||
if (pair is not null && ticker.Bid <= ticker.Ask)
|
||||
result.Add(new PairRate(pair, new BidAsk(ticker.Bid, ticker.Ask)));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user