bitkit icon indicating copy to clipboard operation
bitkit copied to clipboard

[Bug]: Transfer Funds confirmation has >100% spending and <0% savings

Open catch-21 opened this issue 1 year ago • 2 comments

Describe the bug

When attempting to transfer funds from savings to spending, on the confirmation page I see spending at 144% and savings at -44%. This might have something to do with my pending LN connection. See screenshots and ldk log for details.

bitkit_ldk_logs_1717499417210.zip

Reproduce

  1. With an active LN connection ~(AND with pending LN connection?)~
  2. Open Transfer Funds page
  3. Increase spending balance
  4. Proceed to PLEASE CONFIRM page
  5. Observe unrealistic percentage values

Screenshots / Recording

https://github.com/synonymdev/bitkit/assets/74595920/762d894e-c7b1-4b7d-8a68-1ecab2fb36f2

Operating system

Android 13 TKQ1.221114.001

Bitkit version

1e714a948f69789cec42936226bfeb43ac8cf5e6

Log output

No response

catch-21 avatar Jun 04 '24 11:06 catch-21

Couldn't reproduce the issue for the moment. Either at the conference.

JeanlChristophe avatar Jun 21 '24 13:06 JeanlChristophe

At the very least, we should handle such a scenario, regardless of the cause. For example, the UI restarts/crashes Bitkit when impossible values occur.

catch-21 avatar Jun 21 '24 13:06 catch-21

With new design, we can't have this issue anymore. Closing it.

JeanlChristophe avatar Sep 03 '24 08:09 JeanlChristophe