ethers.utils.parseUnits('0.1', 'ether') = 100000000000000000 (wETH or WEI?)
iamasoliddev opened this issue · comments
iamasoliddev commented
Hey,
can someone explain how should it work,
ethers.utils.parseUnits('0.1', 'ether');
So then we have:
tokenIn: 100000000000000000 (WETH)
I don't get it.
iamasoliddev commented
I mean:
Shouldn't it say 100000000000000000 WEI
instead of wETH
?
1 ETH = 1 wETH
100000000000000000 wETH is a lot of money :)
Shelden Shi commented
so it is 100000000000000000 WEI of WETH which makes sense. ETH is always in the unit of WEI