[Wallet] Specify validation range for wallet send amount

fix #1182
This commit is contained in:
Umar Bolatov
2019-11-21 18:47:10 -08:00
parent a324e2aeaf
commit 84bbbcbe10

View File

@@ -17,8 +17,10 @@ namespace BTCPayServer.Models.WalletViewModels
[Required] [Required]
public string DestinationAddress { get; set; } public string DestinationAddress { get; set; }
[Display(Name = "Amount")] [Required] [Range(0.0, double.MaxValue)]public decimal? Amount { get; set; } [Display(Name = "Amount")]
[Required]
[Range(1E-08, 21E6)]
public decimal? Amount { get; set; }
[Display(Name = "Subtract fees from amount")] [Display(Name = "Subtract fees from amount")]
public bool SubtractFeesFromOutput { get; set; } public bool SubtractFeesFromOutput { get; set; }