Skip to content

Commit 53eae6c

Browse files
committed
Added orderly backl
1 parent 9754359 commit 53eae6c

File tree

3 files changed

+160
-158
lines changed

3 files changed

+160
-158
lines changed

src/App.tsx

Lines changed: 158 additions & 156 deletions
Original file line numberDiff line numberDiff line change
@@ -173,162 +173,164 @@ const App: React.FC = () => {
173173
queryClient={queryClient}
174174
>
175175
<QueryClientProvider client={queryClient}>
176-
<Route component={GoogleAnalyticsReporter} />
177-
<Provider store={store}>
178-
<Providers>
179-
<TermsWrapper>
180-
<Updaters />
181-
<Popups />
182-
<Switch>
183-
<Route exact path='/'>
184-
<PageLayout>
185-
<LandingPage />
186-
</PageLayout>
187-
</Route>
188-
<Route exact path='/swap/:version?'>
189-
<PageLayout>
190-
<SwapPage />
191-
</PageLayout>
192-
</Route>
193-
<Route exact path='/bridge'>
194-
<PageLayout>
195-
<BridgePage />
196-
</PageLayout>
197-
</Route>
198-
<Route exact path='/leader-board'>
199-
<PageLayout>
200-
<ContestPage />
201-
</PageLayout>
202-
</Route>
203-
<Route exact path='/pools/:version?'>
204-
<PageLayout>
205-
<PoolsPage />
206-
</PageLayout>
207-
</Route>
208-
<Route exact strict path='/pool/:tokenId'>
209-
<PageLayout>
210-
<PositionPage></PositionPage>
211-
</PageLayout>
212-
</Route>
213-
<Route exact strict path='/falkor'>
214-
<PageLayout>
215-
<PerpsPage />
216-
</PageLayout>
217-
</Route>
218-
<Route
219-
exact
220-
path='/add/:currencyIdA?/:currencyIdB?/:version?'
221-
>
222-
<PageLayout>
223-
<PoolsPage></PoolsPage>
224-
</PageLayout>
225-
</Route>
226-
<Route
227-
exact
228-
path='/increase/:currencyIdA?/:currencyIdB?/:tokenId'
229-
>
230-
<PageLayout>
231-
<IncreaseLiquidityV3Page></IncreaseLiquidityV3Page>
232-
</PageLayout>
233-
</Route>
234-
<Route exact path='/remove/:tokenId'>
235-
<PageLayout>
236-
<RemoveLiquidityV3Page></RemoveLiquidityV3Page>
237-
</PageLayout>
238-
</Route>
239-
<Route exact path='/migrate'>
240-
<PageLayout>
241-
<MigrateV2LiquidityPage />
242-
</PageLayout>
243-
</Route>
244-
<Route exact path='/migrate/:currencyIdA/:currencyIdB'>
245-
<PageLayout>
246-
<MigrateV2DetailsPage />
247-
</PageLayout>
248-
</Route>
249-
<Route exact path='/farm/:version?'>
250-
<PageLayout>
251-
<FarmPage />
252-
</PageLayout>
253-
</Route>
254-
<Route exact path='/dragons'>
255-
<PageLayout>
256-
<DragonPage />
257-
</PageLayout>
258-
</Route>
259-
<Route exact path='/convert'>
260-
<PageLayout>
261-
<ConvertQUICKPage />
262-
</PageLayout>
263-
</Route>
264-
<Route exact path='/bonds'>
265-
<PageLayout>
266-
<BondsPage />
267-
</PageLayout>
268-
</Route>
269-
<Route exact path='/newsletter'>
270-
<PageLayout>
271-
<NewsletterPage />
272-
</PageLayout>
273-
</Route>
274-
<Route exact path='/tos'>
275-
<PageLayout>
276-
<TOSPage />
277-
</PageLayout>
278-
</Route>
279-
<Route exact path='/gamehub'>
280-
<RedirectExternal
281-
to={`${process.env.REACT_APP_GAMEHUB_URL}`}
282-
target={'_top'}
283-
></RedirectExternal>
284-
</Route>
285-
<Route exact path='/analytics/:version?'>
286-
<PageLayout>
287-
<AnalyticsHeader />
288-
<AnalyticsOverview />
289-
</PageLayout>
290-
</Route>
291-
<Route exact path='/analytics/:version/tokens'>
292-
<PageLayout>
293-
<AnalyticsHeader />
294-
<AnalyticsTokens />
295-
</PageLayout>
296-
</Route>
297-
<Route exact path='/analytics/:version/pairs'>
298-
<PageLayout>
299-
<AnalyticsHeader />
300-
<AnalyticsPairs />
301-
</PageLayout>
302-
</Route>
303-
<Route exact path='/analytics/:version/token/:id'>
304-
<PageLayout>
305-
<AnalyticsTokenDetails />
306-
</PageLayout>
307-
</Route>
308-
<Route exact path='/analytics/:version/pair/:id'>
309-
<PageLayout>
310-
<AnalyticsPairDetails />
311-
</PageLayout>
312-
</Route>
313-
<Route exact path='/calculator/0.01-eth-to-usd'>
314-
<PageLayout>
315-
<CalculatorPage />
316-
</PageLayout>
317-
</Route>
318-
<Route path='/forbidden'>
319-
<PageLayout>
320-
<ForbiddenPage />
321-
</PageLayout>
322-
</Route>
323-
<Route path='*'>
324-
<PageLayout>
325-
<NotFound404Page />
326-
</PageLayout>
327-
</Route>
328-
</Switch>
329-
</TermsWrapper>
330-
</Providers>
331-
</Provider>
176+
<OrderlyConfigProvider brokerId='quick_perps' networkId='mainnet'>
177+
<Route component={GoogleAnalyticsReporter} />
178+
<Provider store={store}>
179+
<Providers>
180+
<TermsWrapper>
181+
<Updaters />
182+
<Popups />
183+
<Switch>
184+
<Route exact path='/'>
185+
<PageLayout>
186+
<LandingPage />
187+
</PageLayout>
188+
</Route>
189+
<Route exact path='/swap/:version?'>
190+
<PageLayout>
191+
<SwapPage />
192+
</PageLayout>
193+
</Route>
194+
<Route exact path='/bridge'>
195+
<PageLayout>
196+
<BridgePage />
197+
</PageLayout>
198+
</Route>
199+
<Route exact path='/leader-board'>
200+
<PageLayout>
201+
<ContestPage />
202+
</PageLayout>
203+
</Route>
204+
<Route exact path='/pools/:version?'>
205+
<PageLayout>
206+
<PoolsPage />
207+
</PageLayout>
208+
</Route>
209+
<Route exact strict path='/pool/:tokenId'>
210+
<PageLayout>
211+
<PositionPage></PositionPage>
212+
</PageLayout>
213+
</Route>
214+
<Route exact strict path='/falkor'>
215+
<PageLayout>
216+
<PerpsPage />
217+
</PageLayout>
218+
</Route>
219+
<Route
220+
exact
221+
path='/add/:currencyIdA?/:currencyIdB?/:version?'
222+
>
223+
<PageLayout>
224+
<PoolsPage></PoolsPage>
225+
</PageLayout>
226+
</Route>
227+
<Route
228+
exact
229+
path='/increase/:currencyIdA?/:currencyIdB?/:tokenId'
230+
>
231+
<PageLayout>
232+
<IncreaseLiquidityV3Page></IncreaseLiquidityV3Page>
233+
</PageLayout>
234+
</Route>
235+
<Route exact path='/remove/:tokenId'>
236+
<PageLayout>
237+
<RemoveLiquidityV3Page></RemoveLiquidityV3Page>
238+
</PageLayout>
239+
</Route>
240+
<Route exact path='/migrate'>
241+
<PageLayout>
242+
<MigrateV2LiquidityPage />
243+
</PageLayout>
244+
</Route>
245+
<Route exact path='/migrate/:currencyIdA/:currencyIdB'>
246+
<PageLayout>
247+
<MigrateV2DetailsPage />
248+
</PageLayout>
249+
</Route>
250+
<Route exact path='/farm/:version?'>
251+
<PageLayout>
252+
<FarmPage />
253+
</PageLayout>
254+
</Route>
255+
<Route exact path='/dragons'>
256+
<PageLayout>
257+
<DragonPage />
258+
</PageLayout>
259+
</Route>
260+
<Route exact path='/convert'>
261+
<PageLayout>
262+
<ConvertQUICKPage />
263+
</PageLayout>
264+
</Route>
265+
<Route exact path='/bonds'>
266+
<PageLayout>
267+
<BondsPage />
268+
</PageLayout>
269+
</Route>
270+
<Route exact path='/newsletter'>
271+
<PageLayout>
272+
<NewsletterPage />
273+
</PageLayout>
274+
</Route>
275+
<Route exact path='/tos'>
276+
<PageLayout>
277+
<TOSPage />
278+
</PageLayout>
279+
</Route>
280+
<Route exact path='/gamehub'>
281+
<RedirectExternal
282+
to={`${process.env.REACT_APP_GAMEHUB_URL}`}
283+
target={'_top'}
284+
></RedirectExternal>
285+
</Route>
286+
<Route exact path='/analytics/:version?'>
287+
<PageLayout>
288+
<AnalyticsHeader />
289+
<AnalyticsOverview />
290+
</PageLayout>
291+
</Route>
292+
<Route exact path='/analytics/:version/tokens'>
293+
<PageLayout>
294+
<AnalyticsHeader />
295+
<AnalyticsTokens />
296+
</PageLayout>
297+
</Route>
298+
<Route exact path='/analytics/:version/pairs'>
299+
<PageLayout>
300+
<AnalyticsHeader />
301+
<AnalyticsPairs />
302+
</PageLayout>
303+
</Route>
304+
<Route exact path='/analytics/:version/token/:id'>
305+
<PageLayout>
306+
<AnalyticsTokenDetails />
307+
</PageLayout>
308+
</Route>
309+
<Route exact path='/analytics/:version/pair/:id'>
310+
<PageLayout>
311+
<AnalyticsPairDetails />
312+
</PageLayout>
313+
</Route>
314+
<Route exact path='/calculator/0.01-eth-to-usd'>
315+
<PageLayout>
316+
<CalculatorPage />
317+
</PageLayout>
318+
</Route>
319+
<Route path='/forbidden'>
320+
<PageLayout>
321+
<ForbiddenPage />
322+
</PageLayout>
323+
</Route>
324+
<Route path='*'>
325+
<PageLayout>
326+
<NotFound404Page />
327+
</PageLayout>
328+
</Route>
329+
</Switch>
330+
</TermsWrapper>
331+
</Providers>
332+
</Provider>
333+
</OrderlyConfigProvider>
332334
</QueryClientProvider>
333335
</SoulZapApiClient.Provider>
334336
</ArcxAnalyticsProvider>

src/config/polygon.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
"available": false
8181
},
8282
"perpsV2": {
83-
"available": false
83+
"available": true
8484
},
8585
"bos": {
8686
"available": false

src/config/zkmainnet.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"available": true
7575
},
7676
"perps": {
77-
"available": false
77+
"available": true
7878
},
7979
"hydra": {
8080
"available": true

0 commit comments

Comments
 (0)