import { Button } from "@pythnetwork/component-library/Button"; import { useMemo } from "react"; import { Explain } from "../Explain"; import { FormattedDate } from "../FormattedDate"; export const ExplainAverage = ({ scoreTime, }: { scoreTime?: Date | undefined; }) => { return (

Each Price Feed Component that a Publisher provides has an associated Score, which is determined by that component{"'"}s{" "} Uptime, Price Deviation, and Staleness. The{" "} Average Feed Score is the average of the scores for all{" "} Price Feed Components.

{scoreTime && }
); }; export const EvaluationTime = ({ scoreTime }: { scoreTime: Date }) => { const startTime = useMemo(() => { const date = new Date(scoreTime); date.setDate(date.getDate() - 1); return date; }, [scoreTime]); return (

This value is calculated based on feed performance from{" "} {" "} to{" "} .

); }; export const ExplainActive = () => (

This is the number of feeds which the publisher is permissioned for, where the publisher{"'"}s feed has 50% or better uptime over the last day.

); export const ExplainInactive = () => (

This is the number of feeds which the publisher is permissioned for, but for which the publisher{"'"}s feed has less than 50% uptime over the last day.

); const NeitherActiveNorInactiveNote = () => (

Note that a publisher{"'"}s feed may not be considered either active or inactive if Pyth has not yet calculated quality rankings for it.

);