Option to show STX price in Sats
Relaying a user request from Twitter. I agree, it would be nice to be able to see the price in sats instead of dollars.
We could add this as another option besides USD instead of replacing it.
We could add this as another option besides USD instead of replacing it.
Yes, definitely.
Hey @obycode
Can I take this? I'm able to run the project locally.
Can you clarify more on where another option needs to be added?
My personal preference would be to just make it toggle between dollars and sats when you click on that STX price in the corner, but I'm not the decision maker.
@obycode @bharat2913 sorry I missed your messages 🙏
+1 to @obycode suggestion.
Apart from that we should add values in sats when clicking on a value the same way we show historical prices in the tx list and tx id page:
For example: https://explorer.hiro.so/txid/0xf7de2e5bba94eda7db4ac7907b7e16ad2a3b797ae7021eb743a59c8803edacbf?chain=mainnet
Hi @andresgalante I would like to work on this issue if its not assigned to anyone.
Hi @andresgalante happy to pick this one up since there hasn't been an update in a while. This is what I have implemented to toggle between USD and SATS for the STX price. Please let me know if this aligns with what the team had in mind.
https://github.com/hirosystems/explorer/assets/33209733/786b06dc-d6ac-4e94-9ae9-bd4d1be29b9c
Also wanted to clarify what is meant here.
Apart from that we should add values in sats when clicking on a value the same way we show historical prices in the tx list and tx id page:
Did we want the chip to toggle between USD or SATS when the chip is clicked? this would mean it would cycle through the options like so: current STX price in USD -> historical STX price in USD -> current STX price in SATS -> historical STX price in SATS
Or did we want to add an extra chip that displays the SATS value? clicking the SAT chip would also toggle between historical and current prices.
@philosphi I am sorry for taking so long for reply 🙇 I was on vacation.
You are right; a cycle wouldn't be ideal. I like your proposal of showing the SATS value on the side. Please check if the layout doesn't break in smaller viewports and different views where we show these values.
Thanks a lot; this is a great proposal! 🎉
@eugeniadigon What do you think about this one? is it too much to add it, should it a be a global switch from btc to sats?
@eugeniadigon What do you think about this one? is it too much to add it, should it a be a global switch from btc to sats?
Let's do it as a global setting because values are shown in different sections of the UI (and having a switch for each section would be too much). I can include this in the new design if it's not a pressing matter.
Would it be worth exploring the option of showing values in different popular currencies as well?