Remove some useless intermediary type from Rate Source (#5351)

This commit is contained in:
Nicolas Dorier
2023-09-26 16:37:40 +09:00
committed by GitHub
parent 75396f491b
commit 0a956fdc73
7 changed files with 24 additions and 71 deletions

View File

@@ -859,10 +859,9 @@ namespace BTCPayServer.Controllers
return RedirectToAction(nameof(UIHomeController.Index), "UIHome");
}
private IEnumerable<AvailableRateProvider> GetSupportedExchanges()
private IEnumerable<RateSourceInfo> GetSupportedExchanges()
{
return _RateFactory.RateProviderFactory.AvailableRateProviders
.Where(r => !string.IsNullOrWhiteSpace(r.DisplayName))
.OrderBy(s => s.DisplayName, StringComparer.OrdinalIgnoreCase);
}