Skip to content
Merged
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
5 changes: 5 additions & 0 deletions src/features/feeds/utils/feedVisibility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ export const CONTACT_EMAIL_PROXY_ADDRESSES = new Set<string>([
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export function shouldHideAddress(feed: any, riskTier?: string | null): boolean {
// Robinhood tokenized equity feeds display their proxy address directly.
if (feed.docs?.blockchainName === "Robinhood" && feed.docs?.productTypeCode === "primaryTokenizedPrice") {
return false
}

if (feed.docs?.productSubType === "calculatedPrice") return true
const proxy: string | null | undefined = feed.proxyAddress
if (proxy != null && CONTACT_EMAIL_PROXY_ADDRESSES.has(proxy.toLowerCase())) return true
Expand Down
Loading