mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 14:04:26 +01:00
Register rate providers in DI, so it can be accessed by plugins (#4551)
This commit is contained in:
@@ -98,7 +98,7 @@ namespace BTCPayServer.Controllers
|
||||
private SelectList GetExchangesSelectList(string selected)
|
||||
{
|
||||
var exchanges = _rateFactory.RateProviderFactory
|
||||
.GetSupportedExchanges()
|
||||
.AvailableRateProviders
|
||||
.Where(r => !string.IsNullOrWhiteSpace(r.Name))
|
||||
.OrderBy(s => s.Id, StringComparer.OrdinalIgnoreCase)
|
||||
.ToList();
|
||||
|
||||
Reference in New Issue
Block a user