Skip to content

0.12.0

Latest
Compare
Choose a tag to compare
@ifavo ifavo released this 09 Oct 09:27
· 2 commits to main since this release
5ddd0ca

useTokens() now accepts options as object::

{
  "usdPrice": "(bool): fetch usd price information and extend the token listing with it"
}

Example: https://use-vechain.tools.vechain.energy/?path=/docs/hooks-usetokens--price

 const { tokens  } = useTokens({ usdPrice: true });

Tokens contain a new attribute usdPrice with pricing provided by https://vexchange.io/

big thanks to https://github.com/Yukark for providing the update