mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 05:54:26 +01:00
Decouple DefaultRates from BTCPayNetwork (#5974)
This commit is contained in:
@@ -382,7 +382,7 @@ namespace BTCPayServer.Controllers
|
||||
var paidCurrency = Math.Round(cryptoPaid * paymentMethod.Rate, cdCurrency.Divisibility);
|
||||
model.CryptoAmountThen = cryptoPaid.RoundToSignificant(paymentMethod.Divisibility);
|
||||
model.RateThenText = _displayFormatter.Currency(model.CryptoAmountThen, paymentMethodCurrency);
|
||||
rules = store.GetStoreBlob().GetRateRules(_NetworkProvider);
|
||||
rules = store.GetStoreBlob().GetRateRules(_defaultRates);
|
||||
rateResult = await _RateProvider.FetchRate(
|
||||
new CurrencyPair(paymentMethodCurrency, invoice.Currency), rules, new StoreIdRateContext(store.Id),
|
||||
cancellationToken);
|
||||
@@ -491,7 +491,7 @@ namespace BTCPayServer.Controllers
|
||||
return View("_RefundModal", model);
|
||||
}
|
||||
|
||||
rules = store.GetStoreBlob().GetRateRules(_NetworkProvider);
|
||||
rules = store.GetStoreBlob().GetRateRules(_defaultRates);
|
||||
rateResult = await _RateProvider.FetchRate(
|
||||
new CurrencyPair(paymentMethodCurrency, model.CustomCurrency), rules, new StoreIdRateContext(store.Id),
|
||||
cancellationToken);
|
||||
|
||||
Reference in New Issue
Block a user