bitkit
bitkit copied to clipboard
[Bug]: Instant Payments Setup Failed required amount error inconsistency
Describe the bug
When setting up a LN channel on the Instant Payments Spending Balance screen, the amount required to overcome the following message is inconsistent and sometimes shows when selecting a particular value and other times allows proceeding to next screen.
"Instant Payments Setup Failed" "Failed to create order. "Channel size too small. Minimum size is 133100sat."
Reproduce
- Go to Spending Balance page (tap Pay instantly suggestion on home page -> Quick Setup)
- Try to invoke the"Channel size too small" error (this can be tricky). Try moving the slider around 20-50%, and tapping "Continue".
- If it proceeded to "Please Confirm" page then go back and try again with a different approach, e.g. via "Enter amount" page, toggling unit amount and retrying. It can be produced with perseverance but I'm unsure of the exact conditions.
- Once error has been produced it tends to persist even if spending amount is changed. Try moving the spending amount a bit higher and tap "Continue" to attempt to address the problem.
- Eventually, with a higher value it will proceed to "Please Confirm" page. Usually this requires a higher-than-expected allocation to spending balance.
- Go back to "Spending Balance" page
- Lower the spending balance down to a value that was previously causing the error and press "Continue"
- There's a good chance it will proceed to "Spending Balance" page even though it previously showed the error and prevented this.
Screenshots / Recording
https://github.com/synonymdev/bitkit/assets/74595920/ed7ec0ce-90c0-452f-ab43-dbb63d97904b
Operating system
Android 13 TKQ1.220829.002
Bitkit version
v1.0.0-beta.113
Log output
No response