show insurance fund status

This commit is contained in:
tjs 2023-05-02 13:41:55 -04:00
parent 1afb2fe36c
commit b866c5454b
3 changed files with 12 additions and 13 deletions

View File

@ -45,8 +45,7 @@ const TokenSettingsTable = () => {
<Th className="text-right">{t('borrow-fee')}</Th> <Th className="text-right">{t('borrow-fee')}</Th>
<Th className="text-right">{t('activity:liquidation-fee')}</Th> <Th className="text-right">{t('activity:liquidation-fee')}</Th>
<Th className="text-right">{t('trade:oracle')}</Th> <Th className="text-right">{t('trade:oracle')}</Th>
{/* Uncomment when insurance fund is ready */} <Th className="text-right">
{/* <Th className="text-right">
<Tooltip <Tooltip
content={t('trade:tooltip-insured', { tokenOrMarket: '' })} content={t('trade:tooltip-insured', { tokenOrMarket: '' })}
> >
@ -54,7 +53,7 @@ const TokenSettingsTable = () => {
{t('trade:insured', { token: '' })} {t('trade:insured', { token: '' })}
</span> </span>
</Tooltip> </Tooltip>
</Th> */} </Th>
</TrHead> </TrHead>
</thead> </thead>
<tbody> <tbody>
@ -70,9 +69,9 @@ const TokenSettingsTable = () => {
const [oracleProvider, oracleLinkPath] = getOracleProvider(bank) const [oracleProvider, oracleLinkPath] = getOracleProvider(bank)
// const mintInfo = group.mintInfosMapByMint.get( const mintInfo = group.mintInfosMapByMint.get(
// bank.mint.toString() bank.mint.toString()
// ) )
return ( return (
<TrBody key={bank.name}> <TrBody key={bank.name}>
@ -130,11 +129,11 @@ const TokenSettingsTable = () => {
<p className="text-right font-body">{oracleProvider}</p> <p className="text-right font-body">{oracleProvider}</p>
)} )}
</Td> </Td>
{/* <Td> <Td>
<p className="text-right"> <p className="text-right">
{mintInfo?.groupInsuranceFund ? t('yes') : t('no')} {mintInfo?.groupInsuranceFund ? t('yes') : t('no')}
</p> </p>
</Td> */} </Td>
</TrBody> </TrBody>
) )
})} })}

View File

@ -2,8 +2,8 @@ import { useEffect, useState } from 'react'
import mangoStore from '@store/mangoStore' import mangoStore from '@store/mangoStore'
import useMangoAccount from 'hooks/useMangoAccount' import useMangoAccount from 'hooks/useMangoAccount'
import SecondaryTabBar from '@components/shared/SecondaryTabBar' import SecondaryTabBar from '@components/shared/SecondaryTabBar'
import TokenMarketInfoTable from './TokenMarketInfoTable' import TokenOverviewTable from './TokenOverviewTable'
import TokenSettingsTable from './TokenSettingsTable' import TokenDetailsTable from './TokenDetailsTable'
import { TABS } from './PerpStats' import { TABS } from './PerpStats'
const TokenStats = () => { const TokenStats = () => {
@ -32,11 +32,11 @@ const TokenStats = () => {
const TabContent = ({ activeTab }: { activeTab: string }) => { const TabContent = ({ activeTab }: { activeTab: string }) => {
switch (activeTab) { switch (activeTab) {
case TABS[0]: case TABS[0]:
return <TokenMarketInfoTable /> return <TokenOverviewTable />
case TABS[1]: case TABS[1]:
return <TokenSettingsTable /> return <TokenDetailsTable />
default: default:
return <TokenMarketInfoTable /> return <TokenOverviewTable />
} }
} }