stellar-client icon indicating copy to clipboard operation
stellar-client copied to clipboard

One click option to put in all of a single currency in trading form

Open irisli opened this issue 11 years ago • 2 comments

Some Bitcoin clients and exchanges have a great feature where the user can click the current balance and the input field is filled with the user's current balance.

irisli avatar Sep 23 '14 20:09 irisli

:+1: This is important, because we round balances and liquidating the balance of a currency is a common use case. Copy and pasting would be off by a small fraction.

deckar01 avatar Sep 29 '14 22:09 deckar01

Significant figures edgecase

Lets say I have 0.1234567890123 of a credit. How do I liquidate every single last bit. If I click on my balance, should it

I see two different ways of approaching this:

  1. One way is to round up so that an order bigger than the amount is shown.
  2. Show all significant figures in a trade amount (usually won't work because you cant make an offer with a fraction of a stroop).

It seems like the first method is the only one that will create an offer able to liquidate the whole balance (and the trade order will still remain after it is completely gone).

UI

Some Bitcoin clients and exchanges have a dotted underline in the balance (in our case in the trading balance widget) in which when clicked would auto populate the amount.

Others have an (all) button.

@wynlim: thoughts?

irisli avatar Sep 29 '14 22:09 irisli