Skip to content

Commit

Permalink
DAO-XXX The treasury strif will show rif price as default
Browse files Browse the repository at this point in the history
  • Loading branch information
Freshenext committed Oct 7, 2024
1 parent c58f2ee commit cf4e184
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/app/treasury/MetricsSection.tsx
Original file line number Diff line number Diff line change
@@ -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: <StRIFPrice />,
holdings: <TokenHoldingsStRIF />,
},
]
Expand Down

0 comments on commit cf4e184

Please sign in to comment.