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

Manu pfp
Manu
@mmatila
toTokens: not sure tbh fromWei: takes two args, the amount of wei and the target format eg. gwei toDecimals: takes two args, an integer value and the decimal precision to convert it to formatUnits: takes three args, the "target" unit eg. ether, the amount and the "starting" unit eg. wei that's what my intuition said :p
0 reply
0 recast
0 reaction