Skip to content

Commit

Permalink
Merge branch 'feat/integrate-aggregator-limit-order' into feat/test-a…
Browse files Browse the repository at this point in the history
…ggregator-stg
  • Loading branch information
namgold committed Mar 16, 2023
2 parents 963d388 + a3c2bb3 commit a9cb326
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ REACT_APP_AGGREGATOR_STATS_API=https://aggregator-stats.kyberswap.com
REACT_APP_SENTRY_DNS=https://d94ee2d3c22043bdaec966758680b5a8@sentry.ops.kyberengineering.io/4

GENERATE_SOURCEMAP=false
REACT_APP_SERVICE_WORKER=false
REACT_APP_SERVICE_WORKER=true

REACT_APP_TRUESIGHT_API=https://truesight.stg.kyberengineering.io
REACT_APP_MIXPANEL_PROJECT_TOKEN=ff1eea26c19dcf4a7c35ebbc8631e714
Expand Down
5 changes: 5 additions & 0 deletions src/constants/dexes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,9 @@ export const kyberswapDexes = [
id: 'kyberswapv1',
logoURL: 'https://kyberswap.com/favicon.ico',
},
{
name: 'KyberSwap Limit Order',
id: 'kyberswap-limit-order',
logoURL: 'https://kyberswap.com/favicon.ico',
},
]
6 changes: 3 additions & 3 deletions src/state/customizeDexes/updater.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ export default function Updater(): null {

// filterout kyberswap dexes, will hardcode
const normalizeDexes = useMemo(() => {
const temp =
const dexesOutsideKyberswap =
dexes?.map(item => ({ ...item, id: item.dexId })).filter(item => !item.dexId.includes('kyberswap')) || []
const isSupportKSElastic = !ELASTIC_NOT_SUPPORTED[chainId]
return [
...temp,
...(isEVM ? kyberswapDexes.filter(item => (isSupportKSElastic ? true : item.id !== 'kyberswapv2')) : []),
...dexesOutsideKyberswap,
...(isEVM ? kyberswapDexes.filter(item => isSupportKSElastic || item.id !== 'kyberswapv2') : []),
]
}, [dexes, chainId, isEVM])

Expand Down

0 comments on commit a9cb326

Please sign in to comment.