diff --git a/apps/staking/src/api.ts b/apps/staking/src/api.ts index 65cc5b7cb4..fc3c5cb111 100644 --- a/apps/staking/src/api.ts +++ b/apps/staking/src/api.ts @@ -56,7 +56,6 @@ type Data = { poolUtilization: bigint; poolUtilizationDelta: bigint; numFeeds: number; - qualityRanking: number; apyHistory: { date: Date; apy: number }[]; positions?: | { @@ -304,7 +303,6 @@ const loadPublisherData = async ( poolUtilization: publisher.totalDelegation, poolUtilizationDelta: publisher.totalDelegationDelta, publicKey: publisher.pubkey, - qualityRanking: publisherRanking?.rank ?? 0, selfStake: publisher.selfDelegation, selfStakeDelta: publisher.selfDelegationDelta, stakeAccount: publisher.stakeAccount ?? undefined, diff --git a/apps/staking/src/components/GeneralFaq/index.tsx b/apps/staking/src/components/GeneralFaq/index.tsx index 113598e9ae..8641e03cc0 100644 --- a/apps/staking/src/components/GeneralFaq/index.tsx +++ b/apps/staking/src/components/GeneralFaq/index.tsx @@ -206,26 +206,6 @@ export const GeneralFaq = ( ), }, - { - question: "How are publisher quality rankings calculated?", - answer: ( - <> -

- Quality rankings are calculated based on a publisher’s price - deviation, uptime, and price staleness. You can learn more about - quality ranking calculations{" "} - - here - - . -

- - ), - }, { question: "Can the Pyth DAO change the parameters of OIS?", answer: diff --git a/apps/staking/src/components/NoWalletHome/index.tsx b/apps/staking/src/components/NoWalletHome/index.tsx index fa6d7caa32..74d1cab4ef 100644 --- a/apps/staking/src/components/NoWalletHome/index.tsx +++ b/apps/staking/src/components/NoWalletHome/index.tsx @@ -135,7 +135,7 @@ export const NoWalletHome = () => { }, { title: "Select Publishers", - body: "Choose which data publishers to support by staking your tokens towards them to help secure the oracle. You can sort publishers by their stake pool details, quality ranking, and more.", + body: "Choose which data publishers to support by staking your tokens towards them to help secure the oracle. You can sort publishers by their stake pool details, number of feeds, and more.", icon: SelectPublishers, }, { diff --git a/apps/staking/src/components/OracleIntegrityStaking/index.tsx b/apps/staking/src/components/OracleIntegrityStaking/index.tsx index ad585b11ed..34f82ce926 100644 --- a/apps/staking/src/components/OracleIntegrityStaking/index.tsx +++ b/apps/staking/src/components/OracleIntegrityStaking/index.tsx @@ -288,7 +288,6 @@ const SelfStaking = ({ Estimated next APY Historical APY Number of feeds - Quality ranking @@ -714,8 +713,6 @@ const PublisherList = ({ SortOption.SelfStakeAscending, SortOption.NumberOfFeedsDescending, SortOption.NumberOfFeedsAscending, - SortOption.QualityRankingDescending, - SortOption.QualityRankingAscending, ].map((id) => ({ id }))} > {({ id }) => ( @@ -804,14 +801,6 @@ const PublisherList = ({ > Number of feeds - - Quality ranking - @@ -985,19 +974,6 @@ const doSort = ( return sort === SortOption.RemainingPoolDescending ? -1 * value : value; } } - case SortOption.QualityRankingDescending: - case SortOption.QualityRankingAscending: { - if (a.qualityRanking === 0 && b.qualityRanking === 0) { - return 0; - } else if (a.qualityRanking === 0) { - return 1; - } else if (b.qualityRanking === 0) { - return -1; - } else { - const value = Number(a.qualityRanking - b.qualityRanking); - return sort === SortOption.QualityRankingAscending ? -1 * value : value; - } - } case SortOption.SelfStakeAscending: { return Number(a.selfStake - b.selfStake); } @@ -1075,7 +1051,6 @@ type PublisherProps = { poolUtilization: bigint; poolUtilizationDelta: bigint; numFeeds: number; - qualityRanking: number; apyHistory: { date: Date; apy: number }[]; positions?: | { @@ -1220,12 +1195,6 @@ const Publisher = ({
Number of feeds:
{publisher.numFeeds}
-
-
Quality ranking:
-
- {publisher.qualityRanking === 0 ? "-" : publisher.qualityRanking} -
-
{isSelf && ( @@ -1283,9 +1252,6 @@ const Publisher = ({ {publisher.numFeeds} - - {publisher.qualityRanking === 0 ? "-" : publisher.qualityRanking} - @@ -1650,8 +1616,6 @@ enum SortOption { SelfStakeAscending, NumberOfFeedsDescending, NumberOfFeedsAscending, - QualityRankingDescending, - QualityRankingAscending, } const getSortName = (sortOption: SortOption) => { @@ -1686,12 +1650,6 @@ const getSortName = (sortOption: SortOption) => { case SortOption.NumberOfFeedsAscending: { return "Least feeds"; } - case SortOption.QualityRankingDescending: { - return "Best quality ranking"; - } - case SortOption.QualityRankingAscending: { - return "Worst quality ranking"; - } } }; diff --git a/apps/staking/src/components/OracleIntegrityStakingGuide/index.tsx b/apps/staking/src/components/OracleIntegrityStakingGuide/index.tsx index cb5149387c..5884824564 100644 --- a/apps/staking/src/components/OracleIntegrityStakingGuide/index.tsx +++ b/apps/staking/src/components/OracleIntegrityStakingGuide/index.tsx @@ -183,8 +183,8 @@ export const OracleIntegrityStakingGuide = ( <>

You can sort and evaluate publishers based on metrics such as - their stake pool composition, number of feeds supported, - quality ranking, and more. + their stake pool composition, number of feeds supported, and + more.

@@ -201,10 +201,9 @@ export const OracleIntegrityStakingGuide = ( description: (

Oracle Integrity Staking incentivizes publishers to deliver - high-quality data, which is measured by a quality ranking - system. This ranking is based on three key factors: Uptime, - Price Deviation, and Price Staleness. Stakers can use these - rankings to help ensure the security of the price oracle. + high-quality data. Stakers can use the information on the + staking dashboard to help ensure the security of the price + oracle.

), image: publisherQuality,