1
- import { ContextModalProvider } from '@ergolabs/ui-kit' ;
1
+ import { Box , Flex , Typography } from '@ergolabs/ui-kit' ;
2
2
import { Suspense , useEffect } from 'react' ;
3
3
import * as React from 'react' ;
4
- import { GoogleReCaptchaProvider } from 'react-google-recaptcha-v3' ;
5
4
import { BrowserRouter } from 'react-router-dom' ;
6
5
import { BehaviorSubject , first , mapTo , Observable , tap , zip } from 'rxjs' ;
7
6
8
- import { applicationConfig } from './applicationConfig' ;
9
- import { ApplicationRoutes , routesConfig } from './ApplicationRoutes' ;
7
+ import { routesConfig } from './ApplicationRoutes' ;
10
8
import { useObservable } from './common/hooks/useObservable' ;
11
9
import { analyticsInitializer } from './common/initializers/analyticsInitializer' ;
12
10
import { gaInitializer } from './common/initializers/gaInitializer' ;
13
11
import { networkDomInitializer } from './common/initializers/networkDomInitializer' ;
14
12
import { sentryInitializer } from './common/initializers/sentryInitializer' ;
15
- import { SelectDefaultNetwork } from './common/services/NetworkDomManager/SelectDefaultNetwork/SelectDefaultNetwork' ;
16
13
import { startAppTicks } from './common/streams/appTick' ;
17
14
import { Glow } from './components/common/Layout/Glow/Glow' ;
18
15
import { ErrorEventProvider } from './components/ErrorBoundary/ErrorEventProvider' ;
19
- import { AppLoadingProvider , useApplicationSettings } from './context' ;
16
+ import { useApplicationSettings } from './context' ;
20
17
import { useBodyClass } from './hooks/useBodyClass' ;
21
18
import { useMetaThemeColor } from './hooks/useMetaThemeColor' ;
22
19
import { LanguageProvider } from './i18n/i18n' ;
23
20
import { isDarkOsTheme } from './utils/osTheme' ;
24
21
25
- const Application = ( ) => {
26
- return (
27
- < AppLoadingProvider >
28
- < GoogleReCaptchaProvider reCaptchaKey = { applicationConfig . reCaptchaKey } >
29
- < ContextModalProvider >
30
- < ApplicationRoutes />
31
- </ ContextModalProvider >
32
- </ GoogleReCaptchaProvider >
33
- </ AppLoadingProvider >
34
- ) ;
35
- } ;
36
-
37
22
const initializers : Observable < boolean > [ ] = [
38
23
sentryInitializer ( ) ,
39
24
analyticsInitializer ( ) ,
@@ -54,7 +39,7 @@ const initializeApp = () => {
54
39
55
40
export const ApplicationInitializer : React . FC = ( ) => {
56
41
const [ { theme } ] = useApplicationSettings ( ) ;
57
- const [ isAppInitialized ] = useObservable ( isAppInitialized$ , [ ] , false ) ;
42
+ const [ ] = useObservable ( isAppInitialized$ , [ ] , false ) ;
58
43
59
44
useBodyClass ( [ theme ] ) ;
60
45
useMetaThemeColor (
@@ -78,9 +63,81 @@ export const ApplicationInitializer: React.FC = () => {
78
63
< BrowserRouter >
79
64
< LanguageProvider >
80
65
< Glow />
81
- < SelectDefaultNetwork >
82
- { isAppInitialized && < Application /> }
83
- </ SelectDefaultNetwork >
66
+ < Flex align = "center" justify = "center" >
67
+ < Box borderRadius = "xl" padding = { 4 } >
68
+ < Flex style = { { maxWidth : '500px' } } col >
69
+ < Typography . Body > Dear Community Member,</ Typography . Body >
70
+ < br />
71
+ < Typography . Body >
72
+ We want to inform you of an important update regarding
73
+ Spectrum Finance project. After careful consideration, we’ve
74
+ decided to discontinue support for the current Spectrum DEX
75
+ interface. This change is a significant step in our
76
+ evolution, as we shift our focus to new platforms that align
77
+ more closely with our future vision.
78
+ </ Typography . Body >
79
+ < br />
80
+ < Typography . Body >
81
+ Spectrum DEX has been split into two distinct platforms:
82
+ ErgoDEX on the Ergo blockchain and Splash on the Cardano
83
+ blockchain. This isn’t just a rebranding but a strategic
84
+ move to enhance clarity and purpose.
85
+ </ Typography . Body >
86
+ < br />
87
+ < Typography . Body >
88
+ Our decision stems from a commitment to advancing Spectrum
89
+ Network, a groundbreaking cross-chain decentralized
90
+ technology.{ ' ' }
91
+ < b >
92
+ By separating Spectrum Network from the DEXes, we aim to
93
+ eliminate any confusion, allowing each platform to grow
94
+ independently without overlap.
95
+ </ b >
96
+ </ Typography . Body >
97
+ < br />
98
+ < Typography . Body >
99
+ All Cardano liquidity pools have been migrated to Splash
100
+ DEX, and all Ergo liquidity pools to ErgoDEX, ensuring a
101
+ seamless trading experience on both platforms.
102
+ </ Typography . Body >
103
+ < br />
104
+ < Typography . Body >
105
+ Moving forward, our development focus will be on Spectrum
106
+ Network, representing our vision for a future of cross-chain
107
+ interoperability. By concentrating on this technology, we
108
+ believe we can drive greater adoption and deliver more value
109
+ to our community.
110
+ </ Typography . Body >
111
+ < br />
112
+ < Typography . Body >
113
+ We understand transitions can be challenging, and we deeply
114
+ appreciate your continued support. We’re confident that both
115
+ ErgoDEX and Splash will serve you well as they grow.
116
+ </ Typography . Body >
117
+ < br />
118
+ < Typography . Body >
119
+ Thank you for being part of our community. We’re excited
120
+ about the opportunities ahead.
121
+ </ Typography . Body >
122
+ < br />
123
+ < Typography . Body > Best regards,</ Typography . Body >
124
+ < Typography . Body > The Spectrum Finance Team</ Typography . Body >
125
+ < br />
126
+ < Flex row >
127
+ < Flex . Item marginRight = { 4 } >
128
+ < Typography . Link href = "https://ergodex.io" >
129
+ ErgoDEX (Ergo network)
130
+ </ Typography . Link >
131
+ </ Flex . Item >
132
+ < Flex . Item >
133
+ < Typography . Link href = "https://splash.trade" >
134
+ Splash (Cardano network)
135
+ </ Typography . Link >
136
+ </ Flex . Item >
137
+ </ Flex >
138
+ </ Flex >
139
+ </ Box >
140
+ </ Flex >
84
141
</ LanguageProvider >
85
142
</ BrowserRouter >
86
143
</ ErrorEventProvider >
0 commit comments