Fix: Inverse rule was not found in BTCPay with X_X

This commit is contained in:
nicolas.dorier
2018-07-27 18:04:41 +09:00
parent a2b039f983
commit 0dcda0f289
9 changed files with 29 additions and 26 deletions

View File

@@ -162,9 +162,9 @@ namespace BTCPayServer.Controllers
{
cts.CancelAfter(TimeSpan.FromSeconds(5));
var result = await _RateProvider.FetchRate(currencyPair, rateRules).WithCancellation(cts.Token);
if (result.Value != null)
if (result.BidAsk != null)
{
model.Rate = result.Value;
model.Rate = result.BidAsk.Center;
model.Divisibility = _currencyTable.GetNumberFormatInfo(currencyPair.Right, true).CurrencyDecimalDigits;
model.Fiat = currencyPair.Right;
}