mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-13 19:37:37 +01:00
Fix: Exchangerate.host falsly appear as Yadio in the UI (Fix #5347)
This commit is contained in:
parent
66a064e78b
commit
75396f491b
2 changed files with 4 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
using System;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
using System.Threading;
|
||||
|
@ -11,7 +11,7 @@ namespace BTCPayServer.Services.Rates;
|
|||
|
||||
public class ExchangeRateHostRateProvider : IRateProvider
|
||||
{
|
||||
public RateSourceInfo RateSourceInfo => new("exchangeratehost", "Yadio", "https://api.exchangerate.host/latest?base=BTC");
|
||||
public RateSourceInfo RateSourceInfo => new("exchangeratehost", "Exchangerate.host", "https://api.exchangerate.host/latest?base=BTC");
|
||||
private readonly HttpClient _httpClient;
|
||||
public ExchangeRateHostRateProvider(HttpClient httpClient)
|
||||
{
|
||||
|
|
|
@ -862,8 +862,8 @@ namespace BTCPayServer.Controllers
|
|||
private IEnumerable<AvailableRateProvider> GetSupportedExchanges()
|
||||
{
|
||||
return _RateFactory.RateProviderFactory.AvailableRateProviders
|
||||
.Where(r => !string.IsNullOrWhiteSpace(r.Name))
|
||||
.OrderBy(s => s.Id, StringComparer.OrdinalIgnoreCase);
|
||||
.Where(r => !string.IsNullOrWhiteSpace(r.DisplayName))
|
||||
.OrderBy(s => s.DisplayName, StringComparer.OrdinalIgnoreCase);
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue