bitkit icon indicating copy to clipboard operation
bitkit copied to clipboard

[Bug]: Instant Payments Setup Failed required amount error inconsistency

Open catch-21 opened this issue 10 months ago • 0 comments

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

  1. Go to Spending Balance page (tap Pay instantly suggestion on home page -> Quick Setup)
  2. Try to invoke the"Channel size too small" error (this can be tricky). Try moving the slider around 20-50%, and tapping "Continue".
  3. 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.
  4. 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.
  5. Eventually, with a higher value it will proceed to "Please Confirm" page. Usually this requires a higher-than-expected allocation to spending balance.
  6. Go back to "Spending Balance" page
  7. Lower the spending balance down to a value that was previously causing the error and press "Continue"
  8. 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

catch-21 avatar Apr 17 '24 11:04 catch-21