satoshipay / solar

🌞 Stellar wallet. Secure and user-friendly.
https://solarwallet.io
MIT License
191 stars 58 forks source link

Show fiat estimates #744

Open andywer opened 5 years ago

andywer commented 5 years ago

Show fiat estimates in asset details view and send-payment dialog. Ideally in trade dialog and withdrawal dialog, too.

Requires the ability to set a preferred currency in the app settings (EUR, USD, GBP, ...). Use the https://api.satoshipay.io/mainnet/coinmarketcap/v1/cryptocurrency/quotes/latest?convert=EUR&symbol=XLM endpoint to fetch conversion rates, refresh the value once a minute or so.

To Do

andywer commented 4 years ago

Add fiat estimates to balances detail view:

image

Add fiat estimates to payment, trade & withdrawal view (search for PriceInput occurences):

image

Might make sense to create a new component (<FiatEstimate amount="…" /> or so) and use it in the PriceInput component.

Update 2020-02-06

The last screenshot is not up-to-date anymore. For the payment dialog let's implement a UI that allows to select a fiat amount and send the equivalent amount in XLM while still being able to send other assets than XLM.

Move the asset selector down to the end of the dialog, make it a bit more prominent and add a new denomination selector where the asset selector used to be (allowing to set the amount in the token we are about to send or in $, €, …).

Also show the amount of XLM you are about to send (amount field helper text?) if you choose a denomination other than XLM.

The ability to specify the denomination of payments in non-XLM tokens is not mandatory, but might just be a lucky side effect feature.