explorer icon indicating copy to clipboard operation
explorer copied to clipboard

Option to show STX price in Sats

Open obycode opened this issue 2 years ago • 11 comments

Relaying a user request from Twitter. I agree, it would be nice to be able to see the price in sats instead of dollars.

obycode avatar Jun 14 '23 19:06 obycode

We could add this as another option besides USD instead of replacing it.

andresgalante avatar Jun 14 '23 21:06 andresgalante

We could add this as another option besides USD instead of replacing it.

Yes, definitely.

obycode avatar Jun 15 '23 06:06 obycode

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?

bharat2913 avatar Jun 17 '23 12:06 bharat2913

image Hey guys, I'm interested also. Would it be adding a dropdown here to switch coins and show coins in STX instead? I'd love to get specs on this issue.

gabo2192 avatar Jun 19 '23 01:06 gabo2192

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 avatar Jun 20 '23 21:06 obycode

@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 Screenshot 2023-06-21 at 09 27 46 Screenshot 2023-06-21 at 09 27 37

andresgalante avatar Jun 21 '23 12:06 andresgalante

Hi @andresgalante I would like to work on this issue if its not assigned to anyone.

illegalcall avatar Jul 01 '23 06:07 illegalcall

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

Screenshot 2023-07-19 at 8 49 33 AM

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.

Screenshot 2023-07-19 at 8 49 29 AM

philosphi avatar Jul 19 '23 15:07 philosphi

@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! 🎉

andresgalante avatar Aug 02 '23 13:08 andresgalante

@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?

andresgalante avatar Jun 17 '24 18:06 andresgalante

@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?

ginny-d avatar Jun 18 '24 09:06 ginny-d