-
Notifications
You must be signed in to change notification settings - Fork 9
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
Conversation
buberdds
commented
Feb 15, 2024
•
edited
Loading
edited
- Balance distribution card
- Staking card
aa44ca9
to
d558a38
Compare
96f2db6
to
fe3c0f3
Compare
cf063df
to
9c5edb1
Compare
Deployed to Cloudflare Pages
|
ccd341f
to
f0a9006
Compare
87243aa
to
cdd39b9
Compare
delegations: data.delegations.map(delegation => { | ||
return { | ||
...delegation, | ||
shares: fromBaseUnits(delegation.shares, consensusDecimals), |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
relates to #1310
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you verify this in #1310 please?
sample acc: https://0a9444e9.oasis-explorer.pages.dev/mainnet/consensus/address/oasis1qqnk4au603zs94k0d0n7c0hkx8t4p6r87s60axru
sample validator (with hardcoded GoStaking entity) https://0a9444e9.oasis-explorer.pages.dev/mainnet/consensus/validators/oasis1qpqz2ut6a6prfcjm64xnpnjhsnqny6jqfyav829v/delegators#delegators
4edb01f
to
cac4db8
Compare