mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-15 20:30:25 +01:00
Fix: Kraken rate provider failing due to bid > ask
This commit is contained in:
parent
209f84e67b
commit
9ea1f48fa1
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ namespace BTCPayServer.Services.Rates
|
||||||
if (ticker != null)
|
if (ticker != null)
|
||||||
{
|
{
|
||||||
var pair = GetCurrencyPair(symbol);
|
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)));
|
result.Add(new PairRate(pair, new BidAsk(ticker.Bid, ticker.Ask)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue