You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to render a token value back to a human-readable amount
Specification
fromape_tokensimporttokensweth=tokens["WETH"]
# Look up conversion factor by symbolasserttokens.render(weth.balanceOf(acct), "WETH") =="1.27 WETH"# OR allow using any token contract (which has `.symbol()` and `.decimals()` methods)asserttokens.render(weth.balanceOf(acct), weth) =="1.27 WETH"
The text was updated successfully, but these errors were encountered:
vany365
changed the title
Make an easy function for converting token balance integers to decimal token values
Make an easy function for converting token balance integers to decimal token values [APE-1114]
Jun 20, 2023
Overview
It would be nice to render a token value back to a human-readable amount
Specification
The text was updated successfully, but these errors were encountered: