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

Return token decimals in queries that include token balances #1075

Closed
tinker-michaelj opened this issue Feb 10, 2021 · 0 comments · Fixed by #1078
Closed

Return token decimals in queries that include token balances #1075

tinker-michaelj opened this issue Feb 10, 2021 · 0 comments · Fixed by #1078
Assignees
Milestone

Comments

@tinker-michaelj
Copy link
Collaborator

Summary
When a user receives a token balance in a GetAccountBalance, GetAccountInfo, or GetContractInfo query response, they should also get the decimals field of the corresponding token.

This lets them interpret the balance in terms of whole tokens; e.g. 123.456 when decimals=3 instead of just 123456.

Possible resolution
Add decimals information in each query response that includes token balances.

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 a pull request may close this issue.

1 participant