diff --git a/explorer/src/pages/AccountDetailsPage.tsx b/explorer/src/pages/AccountDetailsPage.tsx index 23aff1cb51..79f34c1c10 100644 --- a/explorer/src/pages/AccountDetailsPage.tsx +++ b/explorer/src/pages/AccountDetailsPage.tsx @@ -28,6 +28,7 @@ import { SlotHashesCard } from "components/account/SlotHashesCard"; import { StakeHistoryCard } from "components/account/StakeHistoryCard"; import { BlockhashesCard } from "components/account/BlockhashesCard"; import { ConfigAccountSection } from "components/account/ConfigAccountSection"; +import { isScamAccount } from "scamRegistry"; const TABS_LOOKUP: { [id: string]: Tab } = { "spl-token:mint": { @@ -129,6 +130,7 @@ function DetailsSections({ pubkey, tab }: { pubkey: PublicKey; tab?: string }) { const info = useAccountInfo(address); const { status } = useCluster(); const location = useLocation(); + const isScam = isScamAccount(address); // Fetch account on load React.useEffect(() => { @@ -157,6 +159,12 @@ function DetailsSections({ pubkey, tab }: { pubkey: PublicKey; tab?: string }) { return ( <> + {isScam && ( +