From eb5e32a07fa20c22072e7e9e3b5d531768820b61 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Thu, 4 Apr 2019 19:39:37 +0900 Subject: [PATCH] Remove exception thrown by binance provider --- BTCPayServer/Services/Rates/ExchangeSharpRateProvider.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BTCPayServer/Services/Rates/ExchangeSharpRateProvider.cs b/BTCPayServer/Services/Rates/ExchangeSharpRateProvider.cs index ae40e8ec9..fe96643fb 100644 --- a/BTCPayServer/Services/Rates/ExchangeSharpRateProvider.cs +++ b/BTCPayServer/Services/Rates/ExchangeSharpRateProvider.cs @@ -39,7 +39,9 @@ namespace BTCPayServer.Services.Rates lock (notFoundSymbols) { var exchangeRates = - rates.Select(t => CreateExchangeRate(t)) + rates + .Where(t => t.Value.Ask != 0m && t.Value.Bid != 0m) + .Select(t => CreateExchangeRate(t)) .Where(t => t != null) .ToArray(); return new ExchangeRates(exchangeRates);