-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[UX/UI] Payment of twice the amount expected warning/error message (Bolt #4) #232
Comments
This is related to your incoming liquidity. If your existing channels don't have the liquidity to accept a incoming amount, a new LN channel will have to be created to receive the payment. However this only happens if the payment is large enough (10k sat at least) otherwise it's not worth it (because there's an on-chain tx under the hood) and payment will just fail. See those entries in the FAQ:
Knowing your incoming liquidity in advance is unfortunately not possible for now so the UX can be poor. Work is being done to fix that. |
Okay, thanks for the info. I believe the wallet had enough inbound capacity without the need for a new channel. We would need to test again to determine the incoming liquidity. The issue resolved immediately without the pending confirmation time that would be associated with an on-chain transaction. So far as I know, there wasn't a new channel created. So what worked:
What did not work:
|
Yep an invoice cannot be overpaid by that much. At most, the protocol (and Phoenix) will let you pay twice the requested amount of an invoice, and that's only for privacy reason See specifications: https://github.com/lightning/bolts/blob/f6c4d7604150986894bcb46d67c5c88680740b12/04-onion-routing.md#L1103 |
Bingo! That explains it. I think this is a UX improvement: If a payer changes the amount of the invoice greater than twice, it could display a warning stating that it is too much for the requested amount. This way it does not seem that the payment failed for another reason. |
Is that something in development or already exists, just not with the Android release? |
For compliance with bolt#11, the wallet should not let the user try to send more than twice the requested amount. Otherwise the payment will most probably be rejected by the receiver anyway, and the error returned by the receiver will be confusing. So UX wise it's better to error early. See #232
Next android release will add an error message. The screen above is the live iOS version which is a bit fancier. At some point the iOS and Android versions will converge. |
Steps to reproduce:
The text was updated successfully, but these errors were encountered: