mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-02-06 14:54:38 +01:00
Fix: Kraken rate provider failing due to bid > ask
This commit is contained in:
@@ -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)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user