bitkit
bitkit copied to clipboard
[Bug]: Transfer Funds confirmation has >100% spending and <0% savings
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
- With an active LN connection ~(AND with pending LN connection?)~
- Open Transfer Funds page
- Increase spending balance
- Proceed to PLEASE CONFIRM page
- 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
Couldn't reproduce the issue for the moment. Either at the conference.
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.
With new design, we can't have this issue anymore. Closing it.