Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consensus account details cards #1261

Merged
merged 13 commits into from
Mar 8, 2024
Merged

Consensus account details cards #1261

merged 13 commits into from
Mar 8, 2024

Conversation

buberdds
Copy link
Contributor

@buberdds buberdds commented Feb 15, 2024

  • Balance distribution card
  • Staking card

@buberdds buberdds force-pushed the mz/consensusAccCards branch 3 times, most recently from aa44ca9 to d558a38 Compare February 16, 2024 12:48
@buberdds buberdds marked this pull request as ready for review February 16, 2024 12:50
Base automatically changed from mz/consensusAcc to master February 19, 2024 07:44
@buberdds buberdds force-pushed the mz/consensusAccCards branch from cf063df to 9c5edb1 Compare February 19, 2024 09:06
Copy link

github-actions bot commented Feb 19, 2024

Deployed to Cloudflare Pages

Latest commit: b81651ac5f3a72d8061df1c4349376020ce46640
Status:✅ Deploy successful!
Preview URL: https://00f605f8.oasis-explorer.pages.dev

@buberdds buberdds force-pushed the mz/consensusAccCards branch 3 times, most recently from ccd341f to f0a9006 Compare February 19, 2024 10:12
@buberdds buberdds force-pushed the mz/consensusAccCards branch 2 times, most recently from 87243aa to cdd39b9 Compare March 5, 2024 14:13
delegations: data.delegations.map(delegation => {
return {
...delegation,
shares: fromBaseUnits(delegation.shares, consensusDecimals),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shares don't have decimals like this. I don't know if we want to convert them and use "gigashares" throughout the app

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now I will merge as is to avoid conflicts in PR and will address this in a next PR if needed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Notes from discussion:

Out of

  • 213456546455 shares
  • 213.456546455 gigashares
  • 213.45... B shares
  • 213B shares

"213B shares" is probably nicest

We could reuse the code from token supply display https://explorer.dev.oasis.io/mainnet/sapphire/token ; decimals are not very important
image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

relates to #1310

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@buberdds buberdds force-pushed the mz/consensusAccCards branch from 4edb01f to cac4db8 Compare March 8, 2024 08:43
@buberdds buberdds merged commit 0593cea into master Mar 8, 2024
8 checks passed
@buberdds buberdds deleted the mz/consensusAccCards branch March 8, 2024 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants