+
+ {index + 1}
+ |
+
+
+
+ {item.exchangeName}
+
+ |
+
+ {item.marketPair}
+ |
+
+ ${formatTokenPrice(item.price)}
+ |
+
+ ${formatShortNum(item.volumeUsd)}
+ |
+ {activeTab === ChartTab.Second && (
+
+ {item.marketUrl && (
+
+
+
+
+
+ )}
+ |
+ )}
+ {activeTab === ChartTab.Third && (
+
+
+
+ {item.fundingRate ? (item.fundingRate * 100).toFixed(2) + '%' : '--'}
+
+
+ |
+ )}
+
+ )
+
+ const renderCGKRow = (item: any, index: number, theme: DefaultTheme) => (
+
+
+ {index + 1}
+ |
+
+
+
+ {item.market.name}
+
+ |
+
+
+ {(item.base.startsWith('0X') ? item.coin_id : item.base) +
+ '/' +
+ (item.target.startsWith('0X') ? item.target_coin_id : item.target)}
+
+ |
+
+ ${formatTokenPrice(item.converted_last.usd)}
+ |
+
+ ${formatShortNum(item.converted_volume.usd)}
+ |
+
+
+
+
+
+
+ |
+
+ )
+
+ return {
+ tabs,
+ headers,
+ renderCMCRow,
+ renderCGKRow,
+ }
+}
+
+const PAGE_SIZE = 10
+
+export default function LiquidityMarkets() {
+ const theme = useTheme()
+ const mixpanelHandler = useMixpanelKyberAI()
+ const { data: assetOverview, chain, address } = useKyberAIAssetOverview()
+ const [type, setType] = useState