-
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
Round token supply number in token list #703
Conversation
Deployed to Cloudflare Pages
|
@@ -129,7 +130,7 @@ export const TokenList = (props: TokensProps) => { | |||
align: TableCellAlign.Right, | |||
}, | |||
{ | |||
content: token.total_supply, | |||
content: <RoundedBalance value={token.total_supply} ticker={token.symbol} />, |
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.
Actually I prefer this way of formatting the supply: https://github.com/oasisprotocol/explorer/blob/master/src/locales/en/translation.json#L215
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.
But I also understand that it is not great with decimals.
I think we need a way that satisfies both criteria.
Can we have the same grouping in RoundedBalance?
(Also, maybe we could consider to resurrect #333?)
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.
Looking at task for now we care about decimals only. Prob Don will revisit it all later. i18n does not match logic in RoundedDecimals.
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.
Ok, I think we are good here. As discussed during meeting, RoundedBalance logic will be adjusted in another PR.
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.
Reviewed. LGTM
Token supply has too many decimal points