mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
Keep coinaverage compatibility, improve UX, hardcode feed provider supported exchanges
This commit is contained in:
@@ -215,8 +215,8 @@ namespace BTCPayServer.Tests
|
||||
coinAverageMock.ExchangeRates.Add(new Rating.ExchangeRate()
|
||||
{
|
||||
Exchange = "coingecko",
|
||||
CurrencyPair = CurrencyPair.Parse("LTC_BTC"),
|
||||
BidAsk = new BidAsk(0.001m)
|
||||
CurrencyPair = CurrencyPair.Parse("BTC_LTC"),
|
||||
BidAsk = new BidAsk(162m)
|
||||
});
|
||||
coinAverageMock.ExchangeRates.Add(new Rating.ExchangeRate()
|
||||
{
|
||||
@@ -262,15 +262,6 @@ namespace BTCPayServer.Tests
|
||||
BidAsk = new BidAsk(0.000136m)
|
||||
});
|
||||
rateProvider.Providers.Add("bitfinex", bitfinex);
|
||||
|
||||
|
||||
coinAverageMock.AvailableRateProviders.AddRange(new []
|
||||
{
|
||||
new AvailableRateProvider("bitflyer", "bitflyer", "bitflyer"),
|
||||
new AvailableRateProvider("quadrigacx", "quadrigacx", "quadrigacx"),
|
||||
new AvailableRateProvider("bittrex", "bittrex", "bittrex"),
|
||||
new AvailableRateProvider("bitfinex", "bitfinex", "bitfinex"),
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user