|
1 | 1 | import { SafeLink } from "@morpho-org/uikit/components/safe-link"; |
| 2 | +import { tac } from "@morpho-org/uikit/lib/chains/tac"; |
2 | 3 | import { type Deployments } from "@morpho-org/uikit/lib/deployments"; |
3 | 4 | import { ReactNode } from "react"; |
4 | | -import { type Chain, hemi, optimism, plumeMainnet, polygon, sei, worldchain } from "wagmi/chains"; |
| 5 | +import { type Chain, hemi, optimism, plumeMainnet, polygon, worldchain } from "wagmi/chains"; |
5 | 6 |
|
6 | 7 | /** |
7 | 8 | * App-wide deprecation banner configuration. |
@@ -31,28 +32,34 @@ export const APP_DEPRECATION_BANNER: { color: string; text: ReactNode } | undefi |
31 | 32 | export const CHAIN_DEPRECATION_INFO: Partial< |
32 | 33 | Record<keyof Deployments, { chain: Chain; cutoffDate: string; ecosystemBuilder: string; ecosystemBuilderUrl: string }> |
33 | 34 | > = { |
34 | | - [worldchain.id]: { |
35 | | - chain: worldchain, |
36 | | - cutoffDate: "February 14, 2026", |
37 | | - ecosystemBuilder: "Oku", |
38 | | - ecosystemBuilderUrl: "https://oku.trade/morpho/vaults?inputChain=worldchain", |
39 | | - }, |
| 35 | + // [worldchain.id]: { |
| 36 | + // chain: worldchain, |
| 37 | + // cutoffDate: "February 14, 2026", |
| 38 | + // ecosystemBuilder: "Oku", |
| 39 | + // ecosystemBuilderUrl: "https://oku.trade/morpho/vaults?inputChain=worldchain", |
| 40 | + // }, |
40 | 41 | [plumeMainnet.id]: { |
41 | 42 | chain: plumeMainnet, |
42 | | - cutoffDate: "March 1, 2026", |
| 43 | + cutoffDate: "March 2, 2026", |
43 | 44 | ecosystemBuilder: "Mystic", |
44 | 45 | ecosystemBuilderUrl: "https://app.mysticfinance.xyz", |
45 | 46 | }, |
46 | | - [sei.id]: { |
47 | | - chain: sei, |
48 | | - cutoffDate: "February 14, 2026", |
| 47 | + [hemi.id]: { |
| 48 | + chain: hemi, |
| 49 | + cutoffDate: "March 2, 2026", |
| 50 | + ecosystemBuilder: "Feather", |
| 51 | + ecosystemBuilderUrl: "https://app.feather.zone/portfolio", |
| 52 | + }, |
| 53 | + [tac.id]: { |
| 54 | + chain: tac, |
| 55 | + cutoffDate: "March 2, 2026", |
49 | 56 | ecosystemBuilder: "Feather", |
50 | 57 | ecosystemBuilderUrl: "https://app.feather.zone/portfolio", |
51 | 58 | }, |
52 | 59 | }; |
53 | 60 |
|
54 | 61 | export function isReduceOnly(chainId: number | undefined) { |
55 | | - return chainId !== undefined && CHAIN_DEPRECATION_INFO[chainId] !== undefined; |
| 62 | + return chainId !== undefined && (CHAIN_DEPRECATION_INFO[chainId] !== undefined || chainId === worldchain.id); |
56 | 63 | } |
57 | 64 |
|
58 | 65 | export const APP_DETAILS = { |
@@ -113,18 +120,6 @@ export const BANNERS: Record<keyof Deployments, { color: string; text: ReactNode |
113 | 120 | </span> |
114 | 121 | ), |
115 | 122 | }, |
116 | | - [sei.id]: { |
117 | | - color: "bg-[rgb(145,44,34)]", |
118 | | - text: ( |
119 | | - <span className="grow py-2 text-center"> |
120 | | - Claim rewards and access enhanced features on the external{" "} |
121 | | - <SafeLink className="underline" href="https://app.feather.zone/portfolio"> |
122 | | - Feather |
123 | | - </SafeLink>{" "} |
124 | | - interface. |
125 | | - </span> |
126 | | - ), |
127 | | - }, |
128 | 123 | [optimism.id]: { |
129 | 124 | color: "bg-red-500", |
130 | 125 | text: ( |
|
0 commit comments