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

handle token decimals generically #106

Open
brenzi opened this issue Jan 4, 2022 · 0 comments · May be fixed by #107
Open

handle token decimals generically #106

brenzi opened this issue Jan 4, 2022 · 0 comments · May be fixed by #107
Assignees

Comments

@brenzi
Copy link
Contributor

brenzi commented Jan 4, 2022

Token decimals can be derived from js/api and should not be hardcoded

The following should be done properly (generic decimals and better typing: this here can overflow?):

amount * Math.pow(10, 12),

And this also

{toUnit(crowdLoan.raised, 12)}<br/>

@anizeani anizeani self-assigned this Jan 5, 2022
@anizeani anizeani linked a pull request Jan 5, 2022 that will close this issue
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.

2 participants