From 90bc09fc14606f64f367468e14160b6fe76babce Mon Sep 17 00:00:00 2001 From: katty barroso Date: Thu, 26 Sep 2024 10:25:09 +0200 Subject: [PATCH] remove tvl --- centrifuge-app/src/pages/Pools.tsx | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/centrifuge-app/src/pages/Pools.tsx b/centrifuge-app/src/pages/Pools.tsx index cd7f41d52..08fd0188b 100644 --- a/centrifuge-app/src/pages/Pools.tsx +++ b/centrifuge-app/src/pages/Pools.tsx @@ -1,7 +1,7 @@ import { formatBalance } from '@centrifuge/centrifuge-react' -import { Box, IconArrowDown, IconArrowUpRight, Stack, StatusChip, Text } from '@centrifuge/fabric' +import { Box, Stack, Text } from '@centrifuge/fabric' import * as React from 'react' -import { useListedPools, useYearOverYearGrowth } from '../../src/utils/useListedPools' +import { useListedPools } from '../../src/utils/useListedPools' import { LayoutSection } from '../components/LayoutBase/LayoutSection' import { PoolList } from '../components/PoolList' import { prefetchRoute } from '../components/Root' @@ -10,9 +10,6 @@ import { Dec } from '../utils/Decimal' export default function PoolsPage() { const [, listedTokens] = useListedPools() - const { totalYoyGrowth, isLoading } = useYearOverYearGrowth() - const isPositiveYoy = totalYoyGrowth > 0 - const IconComponent = isPositiveYoy ? IconArrowUpRight : IconArrowDown const totalValueLocked = React.useMemo(() => { return ( @@ -44,16 +41,6 @@ export default function PoolsPage() { Total value locked (TVL) - {!isLoading && ( - - - - - {formatBalance(totalYoyGrowth ?? 0, '', 2)} YoY - - - - )} {formatBalance(totalValueLocked ?? 0, config.baseCurrency)}