diff --git a/apps/web/ui/network-widgets/widgets/ibc-transfert-event-card.tsx b/apps/web/ui/network-widgets/widgets/ibc-transfert-event-card.tsx index 9a1fa2950..f13ff4729 100644 --- a/apps/web/ui/network-widgets/widgets/ibc-transfert-event-card.tsx +++ b/apps/web/ui/network-widgets/widgets/ibc-transfert-event-card.tsx @@ -6,6 +6,7 @@ import { ChevronDoubleDown, Clock, CornerUpRight, + FancyCheck, LinkOut, } from "~/ui/icons"; import { ClientTime } from "~/ui/client-time"; @@ -19,6 +20,7 @@ import { jsonFetch } from "~/lib/shared-utils"; import * as HoverCard from "@radix-ui/react-hover-card"; import { Tooltip } from "~/ui/tooltip"; import { useNetworkStatus } from "~/ui/search/use-network-status"; +import { useSearchOptionsContext } from "~/ui/search-options-context"; export type IBCTransferEventCardProps = { event: IBCTransferEvent; @@ -102,6 +104,20 @@ export function IBCTransferEventCard({ const targetChainHealthStatus = targetNetworkStatus?.[event.to.chainSlug]?.healthy ?? null; + const allNetworkChains = useSearchOptionsContext(); + + const values = allNetworkChains.flat(); + const foundNetworks = values.filter( + (network) => + network.slug === event.from.chainSlug || + network.slug === event.to.chainSlug, + ); + + const fromChain = foundNetworks.find( + (net) => net.slug === event.from.chainSlug, + ); + const toChain = foundNetworks.find((net) => net.slug === event.to.chainSlug); + return (
@@ -260,6 +276,19 @@ export function IBCTransferEventCard({ {event.from.chainName}

+ {fromChain?.verified && ( + + + )} +
+ {toChain?.verified && ( + + + )} +