Remove the concept of "Rate multiplier" and replace it with the concept of "Spread"

This commit is contained in:
nicolas.dorier
2018-08-01 18:38:46 +09:00
parent 5c8e03dcbf
commit 83304de1c6
11 changed files with 85 additions and 51 deletions

View File

@@ -150,7 +150,7 @@ namespace BTCPayServer.Controllers
var storeData = store.GetStoreBlob();
var rateRules = store.GetStoreBlob().GetRateRules(_NetworkProvider);
rateRules.GlobalMultiplier = 1.0m;
rateRules.Spread = 0.0m;
var currencyPair = new Rating.CurrencyPair(paymentMethod.PaymentId.CryptoCode, GetCurrencyCode(storeData.DefaultLang) ?? "USD");
WalletModel model = new WalletModel();
model.ServerUrl = GetLedgerWebsocketUrl(this.HttpContext, walletId.CryptoCode, paymentMethod.DerivationStrategyBase);