stellar-deprecated / stellar-client

INACTIVE. Browser based client for stellard. This repository is inactive. It points to the stellard network, which is being replaced by stellar-core. Please refer to the replacement repository, interstellar-client, which points to the stellar-core network.
Other
305 stars 75 forks source link

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

Open irisli opened 10 years ago

irisli commented 10 years ago

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.

deckar01 commented 10 years ago

:+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.

irisli commented 10 years ago

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?