cleanup (remove sats rate provider and just use rate scripting)

This commit is contained in:
Kukks
2019-09-23 12:09:08 +02:00
parent 27a61b7afd
commit f8139a9156
2 changed files with 1 additions and 7 deletions

View File

@@ -24,7 +24,7 @@ namespace BTCPayServer
DefaultRateRules = new[]
{
"SATS_X = SATS_BTC * BTC_X",
"BTC_SATS = sats(BTC_SATS);",
"SATS_BTC = 0.00000001"
},
DefaultSettings = BTCPayDefaultSettings.GetDefaultSettings(NetworkType),
CoinType = NetworkType == NetworkType.Mainnet ? new KeyPath("0'") : new KeyPath("1'"),

View File

@@ -2702,12 +2702,6 @@ noninventoryitem:
Assert.Contains(exchangeRates.ByExchange[result.ExpectedName],
e => e.CurrencyPair == new CurrencyPair("BTC", "JPY") && e.BidAsk.Bid > 100m); // 1BTC will always be more than 100JPY
}
else if (result.ExpectedName == "sats")
{
Assert.Contains(exchangeRates.ByExchange[result.ExpectedName],
e => e.CurrencyPair == new CurrencyPair("SATS", "BTC") &&
e.BidAsk.Bid == 0.00000001m);
}
else
{
// This check if the currency pair is using right currency pair