Skip to content

Commit

Permalink
remove tvl
Browse files Browse the repository at this point in the history
  • Loading branch information
kattylucy committed Sep 26, 2024
1 parent 358530f commit 90bc09f
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions centrifuge-app/src/pages/Pools.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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 (
Expand Down Expand Up @@ -44,16 +41,6 @@ export default function PoolsPage() {
<Text color="textDisabled" variant="body2" style={{ marginRight: 8 }}>
Total value locked (TVL)
</Text>
{!isLoading && (
<StatusChip status={isPositiveYoy ? 'ok' : 'critical'}>
<Box display="flex" alignItems="center" pt="2px">
<IconComponent size={16} color="ok" />
<Text variant="body3" color={isPositiveYoy ? 'ok' : 'warning'}>
{formatBalance(totalYoyGrowth ?? 0, '', 2)} YoY
</Text>
</Box>
</StatusChip>
)}
</Box>
<Text as="h1" variant="heading1" style={{ fontSize: 36 }}>
{formatBalance(totalValueLocked ?? 0, config.baseCurrency)}
Expand Down

0 comments on commit 90bc09f

Please sign in to comment.