breezmobile icon indicating copy to clipboard operation
breezmobile copied to clipboard

Suggestion: currency conversion dialog should use existing input as default value

Open bitcoinuser opened this issue 4 years ago • 1 comments

Hi, here are the steps:

1- Go to receive via invoice window and insert 100 sats on (Amounts in Sats) field. 2- Then click on "convert currency" icon on the right side of the field.

What should appear:

1- The Enter amount in field should be automatically filled with the USD value that represent 100 sats. The way it works now the Enter amount field is empty.

2- Above the 1 btc = value of bitcoin in USD, should show 100 sats. Now appear 0 sat.

Obs. Why this is necessary: The way it works now is impossible to me to know the value in USD of an exact amount of sats.

bitcoinuser avatar Mar 14 '20 02:03 bitcoinuser

While it makes sense, this is not straightforward to implement since the conversation rate is dynamic. Consider the following use case: user input 10000 sat. When the dialog appears, she sees 0.53 USD. During that time the conversation rate changes. Product definition and implementation is tricky: we can decide to dynamically change the input in the dialog, but then if the user change the input, we can't, and it leads to inconsistent behavior. We can decide to keep the value, but then then the original input changes, which not necessarily the desired behavior.

kingonly avatar Mar 14 '20 16:03 kingonly