import { Info } from "@phosphor-icons/react/dist/ssr/Info"; import { Lightbulb } from "@phosphor-icons/react/dist/ssr/Lightbulb"; import { ListDashes } from "@phosphor-icons/react/dist/ssr/ListDashes"; import { Alert, AlertTrigger } from "@pythnetwork/component-library/Alert"; import { Badge } from "@pythnetwork/component-library/Badge"; import { Breadcrumbs } from "@pythnetwork/component-library/Breadcrumbs"; import { Button } from "@pythnetwork/component-library/Button"; import { Drawer, DrawerTrigger } from "@pythnetwork/component-library/Drawer"; import { StatCard } from "@pythnetwork/component-library/StatCard"; import { notFound } from "next/navigation"; import type { ReactNode } from "react"; import styles from "./layout.module.scss"; import { PriceFeedSelect } from "./price-feed-select"; import { ReferenceData } from "./reference-data"; import { Cluster, getFeeds } from "../../services/pyth"; import { FeedKey } from "../FeedKey"; import { LivePrice, LiveConfidence, LiveLastUpdated, LiveValue, } from "../LivePrices"; import { YesterdaysPricesProvider, PriceFeedChangePercent, } from "../PriceFeedChangePercent"; import { PriceFeedTag } from "../PriceFeedTag"; import { TabPanel, TabRoot, Tabs } from "../Tabs"; type Props = { children: ReactNode; params: Promise<{ slug: string; }>; }; export const PriceFeedLayout = async ({ children, params }: Props) => { const [{ slug }, feeds] = await Promise.all([ params, getFeeds(Cluster.Pythnet), ]); const symbol = decodeURIComponent(slug); const feed = feeds.find((item) => item.symbol === symbol); return feed ? (
{feed.product.asset_type.toUpperCase()}
} /> } corner={ }>

Confidence is how far from the aggregate price Pyth believes the true price might be. It reflects a combination of the confidence of individual quoters and how well individual quoters agree with each other.

} /> } /> } />
Publishers
), }, ]} /> {children} ) : ( notFound() ); };