Content pfp
Content
@
0 reply
0 recast
2 reactions

greg pfp
greg
@gregfromstl
What do you think each of the following functions do? toTokens fromWei toDecimals formatUnits
3 replies
0 recast
4 reactions

jon pfp
jon
@greatwhite.eth
converting units toTokens - convert underlying value to number of tokens fromWei - input(amount wei) -> expectedValue toDecimals - convert value to format with certain # decimals formatUnits - input (amount, decimals) -> human readable value
1 reply
0 recast
1 reaction

greg pfp
greg
@gregfromstl
For toTokens, what would you expect the input/underlying value to be?
1 reply
0 recast
1 reaction