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

@@ -44,9 +44,9 @@ namespace BTCPayServer.Models.StoreViewModels
public string ScriptTest { get; set; }
public CoinAverageExchange[] AvailableExchanges { get; set; }
[Display(Name = "Multiply the rate by... (Setting to 1.01 would apply a discount of 1% to the purchase)")]
[Range(0.01, 10.0)]
public double RateMultiplier
[Display(Name = "Add a spread on exchange rate of ... %")]
[Range(0.0, 100.0)]
public double Spread
{
get;
set;