We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
I'm trying to understand what's happening here...
when I declare a variable and call parseUnits:
const amountIn = ethers.utils.parseUnits('0.01', 'ether')
the result is:
tokenIn: 10000000000000000
Do you know why it is 10000000000000000 ?
10000000000000000
Please help.
Thanks!
The text was updated successfully, but these errors were encountered:
OK I got it ... :) 1 Ether = 1,000,000,000,000,000,000 wei
1 Ether = 1,000,000,000,000,000,000 wei
Sorry, something went wrong.
No branches or pull requests
Hello,
I'm trying to understand what's happening here...
when I declare a variable and call parseUnits:
const amountIn = ethers.utils.parseUnits('0.01', 'ether')
the result is:
tokenIn: 10000000000000000
Do you know why it is
10000000000000000
?Please help.
Thanks!
The text was updated successfully, but these errors were encountered: