Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/features/data/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
productSubType?: string
productType?: string
productTypeCode?: string
stablecoinCapped?: boolean
shutdownDate?: string
isMVR?: boolean
decoding?: DecodingVariable[]
Expand Down Expand Up @@ -62,7 +63,7 @@
return fetch(url).then((res) => res.json())
}

export const getChainMetadata = async (chain: Chain): Promise<ChainMetadata | any> => {

Check warning on line 66 in src/features/data/api/index.ts

View workflow job for this annotation

GitHub Actions / eslint

Unexpected any. Specify a different type

Check warning on line 66 in src/features/data/api/index.ts

View workflow job for this annotation

GitHub Actions / eslint

Unexpected any. Specify a different type
const requests = chain.networks.map((network) =>
network?.rddUrl
? getFeedsMetadata(network?.rddUrl).then((metadata) => ({
Expand Down Expand Up @@ -100,7 +101,7 @@
productType?: string
productTypeCode?: string
reserveAsset?: string
[key: string]: any

Check warning on line 104 in src/features/data/api/index.ts

View workflow job for this annotation

GitHub Actions / eslint

Unexpected any. Specify a different type

Check warning on line 104 in src/features/data/api/index.ts

View workflow job for this annotation

GitHub Actions / eslint

Unexpected any. Specify a different type
}
threshold: number
heartbeat: number
Expand Down
20 changes: 10 additions & 10 deletions src/features/feeds/components/Tables.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 (
<tr>
Expand Down
Loading