stellar-client
stellar-client copied to clipboard
One click option to put in all of a single currency in trading form
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.
:+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.
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:
- One way is to round up so that an order bigger than the amount is shown.
- 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?