From fe322af4bfb7810831e661b5292cf030129742bf Mon Sep 17 00:00:00 2001 From: devin distefano Date: Tue, 7 Apr 2026 13:47:23 -0500 Subject: [PATCH 1/2] change bound to only diplsay when price is less than 2 USD --- src/content/data-feeds/llms-full.txt | 2 +- src/features/feeds/components/Tables.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/data-feeds/llms-full.txt b/src/content/data-feeds/llms-full.txt index 7f6951881f5..a3580d0614c 100644 --- a/src/content/data-feeds/llms-full.txt +++ b/src/content/data-feeds/llms-full.txt @@ -3725,7 +3725,7 @@ Known users of these feeds will be contacted directly about the feeds' deprecati diff --git a/src/features/feeds/components/Tables.tsx b/src/features/feeds/components/Tables.tsx index 4d14753d8ef..5a282c60167 100644 --- a/src/features/feeds/components/Tables.tsx +++ b/src/features/feeds/components/Tables.tsx @@ -40,7 +40,7 @@ const getMaxSubmissionValueBound = ( // (which decodes to ~9.578e44) while still accommodating any real-world price cap // across USD, ETH, EUR, and other quote currencies — the highest plausible cap // for any stablecoin or pegged asset is well below $1M. - if (wholePart > BigInt(1_000_000)) return null + if (wholePart > BigInt(2_00)) return null const remainder = raw % divisor const price = Number(wholePart) + Number(remainder) / Number(divisor) return new Intl.NumberFormat("en-US", { From 1515a117fd9335a3b8828d2997fab3d6678549e3 Mon Sep 17 00:00:00 2001 From: devin distefano Date: Tue, 7 Apr 2026 13:52:36 -0500 Subject: [PATCH 2/2] change bound to only display when bound is less than 2 dollars --- src/features/feeds/components/Tables.tsx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/features/feeds/components/Tables.tsx b/src/features/feeds/components/Tables.tsx index 5a282c60167..5f40847b149 100644 --- a/src/features/feeds/components/Tables.tsx +++ b/src/features/feeds/components/Tables.tsx @@ -34,13 +34,10 @@ const getMaxSubmissionValueBound = ( try { const raw = BigInt(maxSubmissionValue) const divisor = BigInt(10) ** BigInt(decimals) + // Hide the badge if the decoded price exceeds $2.00 (fixed-point compare avoids + // float drift). The all-0xff unbounded sentinel decodes to ~9.578e44 and is filtered here. + if (raw > BigInt(2) * divisor) return null const wholePart = raw / divisor - // Hide the badge if the decoded price exceeds $1,000,000 (1M). - // This filters out the all-0xff unbounded sentinel that contracts use by default - // (which decodes to ~9.578e44) while still accommodating any real-world price cap - // across USD, ETH, EUR, and other quote currencies — the highest plausible cap - // for any stablecoin or pegged asset is well below $1M. - if (wholePart > BigInt(2_00)) return null const remainder = raw % divisor const price = Number(wholePart) + Number(remainder) / Number(divisor) return new Intl.NumberFormat("en-US", {