Merge pull request #1184 from bolatovumar/fix-1182

[Wallet] Specify validation range for wallet send amount
This commit is contained in:
Nicolas Dorier
2019-12-02 18:29:45 +09:00
committed by GitHub

View File

@@ -17,8 +17,10 @@ namespace BTCPayServer.Models.WalletViewModels
[Required]
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")]
public bool SubtractFeesFromOutput { get; set; }