import './home.scss'; import { gql, useQuery } from '@apollo/client'; import React from 'react'; import { Trans, useTranslation } from 'react-i18next'; import { Link } from 'react-router-dom'; import { Heading } from '../../components/heading'; import { Links } from '../../config'; import { useAppState } from '../../contexts/app-state/app-state-context'; import { useDocumentTitle } from '../../hooks/use-document-title'; import { BigNumber } from '../../lib/bignumber'; import type { RouteChildProps } from '..'; import { Routes } from '../router-config'; import type { NodeData } from './__generated__/NodeData'; import { TokenDetails } from './token-details'; import { Button } from '@vegaprotocol/ui-toolkit'; export const TOTAL_STAKED_QUERY = gql` query NodeData { nodeData { stakedTotal stakedTotalFormatted @client } } `; const Home = ({ name }: RouteChildProps) => { useDocumentTitle(name); const { t } = useTranslation(); const { appState } = useAppState(); const { data } = useQuery(TOTAL_STAKED_QUERY); const totalStaked = React.useMemo(() => { return new BigNumber(data?.nodeData?.stakedTotalFormatted || '0'); }, [data]); return ( <>

{t('Token Vesting')}

{t( 'The vesting contract holds VEGA tokens until they have become unlocked.' )}

, }} />

{t( 'Once unlocked they can be redeemed from the contract so that you can transfer them between wallets.' )}

{t('USE YOUR VEGA TOKENS')}

{t( 'To use your tokens on the Vega network they need to be associated with a Vega wallet/key.' )}

{t( 'This can happen both while held in the vesting contract as well as when redeemed.' )}

{t('Get a Vega wallet')}

{t('Associate VEGA tokens')}

{t('Staking')}

{t( 'VEGA token holders can nominate a validator node and receive staking rewards.' )}

{t('Governance')}

{t( 'VEGA token holders can vote on proposed changes to the network and create proposals.' )}

); }; export default Home;