diff --git a/pages/token/[id].tsx b/pages/token/[id].tsx index 4bd44a70d..f2d9c310a 100644 --- a/pages/token/[id].tsx +++ b/pages/token/[id].tsx @@ -8,6 +8,7 @@ import { gql } from 'graphql-request' import dayjs from 'dayjs' import { Skeleton } from '@mui/material' import { ConnectorAlreadyConnectedError, useConnect, UserRejectedRequestError } from 'wagmi' +import BigNumber from 'bignumber.js' import SubpageHead from 'components/SubpageHead' import PageTitle from 'components/PageTitle' import Tabs from 'components/Tabs' @@ -244,7 +245,9 @@ const Token: React.FC = () => { content: token ? (
- {token.token_exchange_rate?.exchange_rate ? `$${token.token_exchange_rate?.exchange_rate}` : '-'} + {token.token_exchange_rate?.exchange_rate + ? `$${new BigNumber(token.token_exchange_rate?.exchange_rate).precision(4)}` + : '-'}