From cf4e1844f6deb74133aa5ce4fcce0035b6b1df2e Mon Sep 17 00:00:00 2001 From: Francis Rodriguez Date: Mon, 7 Oct 2024 11:59:59 -0400 Subject: [PATCH] DAO-XXX The treasury strif will show rif price as default --- src/app/treasury/MetricsSection.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/app/treasury/MetricsSection.tsx b/src/app/treasury/MetricsSection.tsx index 023bbae3..1761dfe3 100644 --- a/src/app/treasury/MetricsSection.tsx +++ b/src/app/treasury/MetricsSection.tsx @@ -1,12 +1,20 @@ import { HeaderTitle } from '@/components/Typography' import { Table } from '@/components/Table' import { TokenHoldingsStRIF } from '@/app/treasury/TokenHoldingsStRIF' +import { usePricesContext } from '@/shared/context/PricesContext' +import { formatCurrency } from '@/lib/utils' + +const StRIFPrice = () => { + const { prices } = usePricesContext() + const symbol = 'stRIF' + return formatCurrency(prices[symbol]?.price || 0) +} const tableData = [ { token: 'Staked Rootstock Infrastructure Framework', symbol: 'stRIF', - price: '—', + price: , holdings: , }, ]