This PR adds support for fetching the T network staking data.
What's changed:
add useQuery hook- a wrapper for fetching data using graphql-request lib,
implement the hook that fetches the weekly/monthly/yearly staking stats from the T network subgraph,
create a TokenPriceContext- store the token prices in context and add this context to AppLayoutWrapper component. Thanks to this, the prices of tokens are available in each component,
display:
-- the staking stats in a chart,
-- min stake amount,
-- total value staked
-- total value staked in USD.
This PR adds support for fetching the T network staking data.
What's changed:
useQuery
hook- a wrapper for fetching data usinggraphql-request
lib,TokenPriceContext
- store the token prices in context and add this context toAppLayoutWrapper
component. Thanks to this, the prices of tokens are available in each component,