bitkit icon indicating copy to clipboard operation
bitkit copied to clipboard

[Feature]: Improve accuracy of "You will receive" amount in CJIT receive flow

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

Describe the problem

During receive via CJIT flow, the "You will receive" value is now just an estimate due to recent changes preventing the correct amount being calculated. This is because Blocktank needs to know the LSP balance and client balance to calculate the fees, but the client balance is the amount minus the fees.

image

Describe the solution

Ideally, we show an accurate value in advance. If this is truly impossible then we could display a pessimistic value and hope no one cares enough about the inaccuracy because they got more than expected. Perhaps Blocktank can provide a worse-case yet still realistic value to use. Could also consider changing the text to "You will receive at least".

Additional context

No response

catch-21 avatar Dec 10 '24 16:12 catch-21