const amountIn = ethers.utils.parseUnits('0.01', 'ether') gives amountIn = 10000000000000000
iamasoliddev opened this issue · comments
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!
OK I got it ... :)
1 Ether = 1,000,000,000,000,000,000 wei