From dc80d64bb389d6f79ffb8be9e23a1afbb14e773b Mon Sep 17 00:00:00 2001 From: devin distefano Date: Mon, 20 Apr 2026 17:31:39 -0500 Subject: [PATCH] new rdd field --- src/features/data/api/index.ts | 1 + src/features/feeds/components/Tables.tsx | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/features/data/api/index.ts b/src/features/data/api/index.ts index 255aedb9995..f5639d3946a 100644 --- a/src/features/data/api/index.ts +++ b/src/features/data/api/index.ts @@ -20,6 +20,7 @@ export interface Docs { productSubType?: string productType?: string productTypeCode?: string + stablecoinCapped?: boolean shutdownDate?: string isMVR?: boolean decoding?: DecodingVariable[] diff --git a/src/features/feeds/components/Tables.tsx b/src/features/feeds/components/Tables.tsx index df8ccf61795..07da8994834 100644 --- a/src/features/feeds/components/Tables.tsx +++ b/src/features/feeds/components/Tables.tsx @@ -272,11 +272,11 @@ const DefaultTr = ({ network, metadata, showExtraDetails, batchedCategoryData, d // have its address hidden and show a contact email instead. const shouldHideAddress = metadata.docs?.productSubType === "calculatedPrice" - // Stablecoin price-bound note: only shown for stablecoin feeds with a meaningful cap - const isStablecoin = metadata.docs?.assetSubClass === "Stablecoin" - const stablecoinBound = isStablecoin - ? getMaxSubmissionValueBound(metadata.maxSubmissionValue, metadata.decimals) - : null + // Stablecoin price-bound note: only when the source marks the feed as explicitly capped + const stablecoinBound = + metadata.docs?.stablecoinCapped === true + ? getMaxSubmissionValueBound(metadata.maxSubmissionValue, metadata.decimals) + : null const label = isUSGovernmentMacroeconomicData ? "Category" : "Asset type" const value = isUSGovernmentMacroeconomicData @@ -527,11 +527,11 @@ const SmartDataTr = ({ network, metadata, showExtraDetails, batchedCategoryData // (already includes deprecating status and Supabase risk tier) const finalTier = metadata.finalCategory || metadata.feedCategory - // Stablecoin price-bound note for Stablecoin Stability Assessment feeds - const isStablecoinAssessment = metadata.docs?.assetClass === "Stablecoin Stability Assessment" - const stablecoinBound = isStablecoinAssessment - ? getMaxSubmissionValueBound(metadata.maxSubmissionValue, metadata.decimals) - : null + // Stablecoin price-bound note: only when the source marks the feed as explicitly capped + const stablecoinBound = + metadata.docs?.stablecoinCapped === true + ? getMaxSubmissionValueBound(metadata.maxSubmissionValue, metadata.decimals) + : null return (