Skip to content

Commit

Permalink
default aggregator api
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhoaidanh committed Jul 19, 2023
1 parent 9a4f3f8 commit 4fbdd49
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion .env.adpr
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
VITE_DEFAULT_AGGREGATOR_API=https://meta-aggregator.dev.kyberengineering.io
VITE_AGGREGATOR_API=https://aggregator-api.dev.kyberengineering.io
VITE_AGGREGATOR_STATS_API=https://aggregator-stats.dev.kyberengineering.io
VITE_SENTRY_DNS=https://d94ee2d3c22043bdaec966758680b5a8@sentry.ops.kyberengineering.io/4
Expand Down
1 change: 0 additions & 1 deletion .env.dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
VITE_DEFAULT_AGGREGATOR_API=https://meta-aggregator.dev.kyberengineering.io
VITE_AGGREGATOR_API=https://aggregator-api.dev.kyberengineering.io
VITE_AGGREGATOR_STATS_API=https://aggregator-stats.dev.kyberengineering.io
VITE_SENTRY_DNS=https://d94ee2d3c22043bdaec966758680b5a8@sentry.ops.kyberengineering.io/4
Expand Down
1 change: 0 additions & 1 deletion .env.production
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
VITE_DEFAULT_AGGREGATOR_API=https://meta-aggregator-api.kyberswap.com
VITE_AGGREGATOR_API=https://aggregator-api.kyberswap.com
VITE_AGGREGATOR_STATS_API=https://aggregator-stats.kyberswap.com
VITE_SENTRY_DNS=https://d94ee2d3c22043bdaec966758680b5a8@sentry.ops.kyberengineering.io/4
Expand Down
1 change: 0 additions & 1 deletion .env.stg
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
VITE_DEFAULT_AGGREGATOR_API=https://meta-aggregator.stg.kyberengineering.io
VITE_AGGREGATOR_API=https://aggregator-api.stg.kyberengineering.io
VITE_AGGREGATOR_STATS_API=https://aggregator-stats.kyberswap.com
VITE_SENTRY_DNS=https://d94ee2d3c22043bdaec966758680b5a8@sentry.ops.kyberengineering.io/4
Expand Down
1 change: 0 additions & 1 deletion src/constants/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const required = (envKey: string): string => {

export const GOOGLE_RECAPTCHA_KEY = required('GOOGLE_RECAPTCHA_KEY')
export const PRICE_API = required('PRICE_API')
export const DEFAULT_AGGREGATOR_API = required('DEFAULT_AGGREGATOR_API')
export const AGGREGATOR_API = required('AGGREGATOR_API')
export const SENTRY_DNS = required('SENTRY_DNS')
export const REWARD_SERVICE_API = required('REWARD_SERVICE_API')
Expand Down
4 changes: 2 additions & 2 deletions src/hooks/useKyberSwapConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
useLazyGetKyberswapConfigurationQuery,
} from 'services/ksSetting'

import { DEFAULT_AGGREGATOR_API } from 'constants/env'
import { AGGREGATOR_API } from 'constants/env'
import { NETWORKS_INFO, SUPPORTED_NETWORKS, isEVM, isSolana } from 'constants/networks'
import ethereumInfo from 'constants/networks/ethereum'
import solanaInfo from 'constants/networks/solana'
Expand Down Expand Up @@ -65,7 +65,7 @@ const parseGlobalResponse = (
chainId: ChainId,
): KyberswapGlobalConfig => {
const data = responseData?.data?.config
const aggregatorDomain = data?.aggregator ?? DEFAULT_AGGREGATOR_API
const aggregatorDomain = data?.aggregator ?? AGGREGATOR_API
const isEnableAuthenAggregator = !data ? true : !!data?.isEnableAuthenAggregator
return {
aggregatorDomain,
Expand Down

0 comments on commit 4fbdd49

Please sign in to comment.