webui icon indicating copy to clipboard operation
webui copied to clipboard

Form allows me to send more than my balance ... makes a big fuss about it in error report

Open BOR4 opened this issue 4 years ago • 1 comments

Describe the bug

Dialog allowed me to input more than my balance. Error when it broke was quite long and ugly.

Steps to reproduce

Steps to reproduce the behavior:

  1. select Pay
  2. put in amount more than you have available
  3. Send

Expected behavior

Send to be disabled if amount is larger than balance

Screenshots

image image

System:

Linux, Mozilla, RC7

Additional context

Add any other context about the problem here.

BOR4 avatar Apr 16 '20 20:04 BOR4

Thanks for opening this issue! We already had discussions about that. The problem is that if one channel does not have enough balance (less than what you type in the dialog), another channel could have the right amount and it could be send as a mediated transfer to your partner.

So at the moment we could only show an error if you type in a bigger amount than the balance of the channel with the highest deposit.

Btw there won't be a pay button on channel in the redesign anymore, because it is not guaranteed that the channel would be used for the payment.

manuelwedler avatar Apr 17 '20 08:04 manuelwedler