Skip to content

Commit

Permalink
Update .env.production
Browse files Browse the repository at this point in the history
Signed-off-by: Nguyen Van Viet <vietnv1304@gmail.com>
  • Loading branch information
viet-nv committed Jan 16, 2025
1 parent 55a70d0 commit c9d1120
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 390 deletions.
3 changes: 2 additions & 1 deletion .env.production
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
VITE_AGGREGATOR_API=https://aggregator-api.kyberswap.com
# VITE_AGGREGATOR_API=https://aggregator-api.kyberswap.com
VITE_AGGREGATOR_API=https://pre-router-api.kyberengineering.io
VITE_AGGREGATOR_STATS_API=https://aggregator-stats.kyberswap.com
VITE_SENTRY_DNS=https://264bd123c207e0c1c1edf63fdbdd86c1@sentry.ops.kyberengineering.io/3

Expand Down
2 changes: 2 additions & 0 deletions src/components/TradeRouting/RouteRowV3.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ export const RouteRowV3 = ({

// Clean up Cytoscape instance on unmount
return () => cy.destroy()

// eslint-disable-next-line
}, [tradeComposition])

if (!tokenIn || !tokenOut) return null
Expand Down
4 changes: 2 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const hideLoader = () => {
const ReactApp = () => {
useEffect(hideLoader, [])
return (
<>
<StrictMode>
<FixedGlobalStyle />
<Provider store={store}>
<BrowserRouter>
Expand All @@ -131,7 +131,7 @@ const ReactApp = () => {
</LanguageProvider>
</BrowserRouter>
</Provider>
</>
</StrictMode>
)
}

Expand Down
9 changes: 1 addition & 8 deletions src/pages/SwapV3/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,7 @@ export default function Swap() {
}, [tabFromUrl, searchParams, setSearchParams])

const tradeRouteComposition = useMemo(() => {
return getTradeComposition(
chainId,
routeSummary?.parsedAmountIn,
undefined,
routeSummary?.route,
defaultTokens,
routeSummary?.tokenOut || '',
)
return getTradeComposition(chainId, routeSummary?.parsedAmountIn, undefined, routeSummary?.route, defaultTokens)
}, [chainId, defaultTokens, routeSummary])

const onBackToSwapTab = () => setActiveTab(getDefaultTab())
Expand Down
Loading

0 comments on commit c9d1120

Please sign in to comment.