Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not error when user is typing send amount #2194

Merged
merged 3 commits into from Mar 8, 2024
Merged

Conversation

luckysori
Copy link
Contributor

@luckysori luckysori commented Mar 8, 2024

Fixes #2190.

When the user is about to send on-chain and is typing the send amount, we dynamically calculate a fee estimate so that we can update the screen as they update the value.

This is nice, but the user will inevitably start by typing in small amounts for which calculating a fee does not make economical sense.

We enhance the library code to handle this case explicitly by using a error enum variant EstimateFeeError::SendAmountBelowDust. We can then leverage this in the app backend to simply ignore this kind of error.

Recording 2024-03-08 at 13 04 36

It's completely unnecessary because a fee estimate is purely
informational.
When the user is about to send on-chain and is typing the send amount,
we dynamically calculate a fee estimate so that we can update the
screen as they update the value.

This is nice, but the user will inevitably start by typing in small
amounts for which calculating a fee does not make economical sense.

We enhance the library code to handle this case explicitly by using a
error enum variant `EstimateFeeError::SendAmountBelowDust`. We can
then leverage this in the app backend to simply ignore this kind of
error.
@luckysori luckysori self-assigned this Mar 8, 2024
@holzeis holzeis changed the title Don not error when user is typing send amount Do not error when user is typing send amount Mar 8, 2024
Copy link
Contributor

@holzeis holzeis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you 👍

@luckysori luckysori added this pull request to the merge queue Mar 8, 2024
Merged via the queue into main with commit 517feda Mar 8, 2024
21 checks passed
@luckysori luckysori deleted the fix/estimate-fee-error branch March 8, 2024 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Send on-chain funds produces multiple OutputBelowDustLimit Errors
2 participants