Skip to content

Releases: vechain-energy/use-vechain

0.12.0

09 Oct 09:27
5ddd0ca
Compare
Choose a tag to compare

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