show insurance fund status
This commit is contained in:
parent
1afb2fe36c
commit
b866c5454b
|
@ -45,8 +45,7 @@ const TokenSettingsTable = () => {
|
|||
<Th className="text-right">{t('borrow-fee')}</Th>
|
||||
<Th className="text-right">{t('activity:liquidation-fee')}</Th>
|
||||
<Th className="text-right">{t('trade:oracle')}</Th>
|
||||
{/* Uncomment when insurance fund is ready */}
|
||||
{/* <Th className="text-right">
|
||||
<Th className="text-right">
|
||||
<Tooltip
|
||||
content={t('trade:tooltip-insured', { tokenOrMarket: '' })}
|
||||
>
|
||||
|
@ -54,7 +53,7 @@ const TokenSettingsTable = () => {
|
|||
{t('trade:insured', { token: '' })}
|
||||
</span>
|
||||
</Tooltip>
|
||||
</Th> */}
|
||||
</Th>
|
||||
</TrHead>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -70,9 +69,9 @@ const TokenSettingsTable = () => {
|
|||
|
||||
const [oracleProvider, oracleLinkPath] = getOracleProvider(bank)
|
||||
|
||||
// const mintInfo = group.mintInfosMapByMint.get(
|
||||
// bank.mint.toString()
|
||||
// )
|
||||
const mintInfo = group.mintInfosMapByMint.get(
|
||||
bank.mint.toString()
|
||||
)
|
||||
|
||||
return (
|
||||
<TrBody key={bank.name}>
|
||||
|
@ -130,11 +129,11 @@ const TokenSettingsTable = () => {
|
|||
<p className="text-right font-body">{oracleProvider}</p>
|
||||
)}
|
||||
</Td>
|
||||
{/* <Td>
|
||||
<Td>
|
||||
<p className="text-right">
|
||||
{mintInfo?.groupInsuranceFund ? t('yes') : t('no')}
|
||||
</p>
|
||||
</Td> */}
|
||||
</Td>
|
||||
</TrBody>
|
||||
)
|
||||
})}
|
|
@ -2,8 +2,8 @@ import { useEffect, useState } from 'react'
|
|||
import mangoStore from '@store/mangoStore'
|
||||
import useMangoAccount from 'hooks/useMangoAccount'
|
||||
import SecondaryTabBar from '@components/shared/SecondaryTabBar'
|
||||
import TokenMarketInfoTable from './TokenMarketInfoTable'
|
||||
import TokenSettingsTable from './TokenSettingsTable'
|
||||
import TokenOverviewTable from './TokenOverviewTable'
|
||||
import TokenDetailsTable from './TokenDetailsTable'
|
||||
import { TABS } from './PerpStats'
|
||||
|
||||
const TokenStats = () => {
|
||||
|
@ -32,11 +32,11 @@ const TokenStats = () => {
|
|||
const TabContent = ({ activeTab }: { activeTab: string }) => {
|
||||
switch (activeTab) {
|
||||
case TABS[0]:
|
||||
return <TokenMarketInfoTable />
|
||||
return <TokenOverviewTable />
|
||||
case TABS[1]:
|
||||
return <TokenSettingsTable />
|
||||
return <TokenDetailsTable />
|
||||
default:
|
||||
return <TokenMarketInfoTable />
|
||||
return <TokenOverviewTable />
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue