From 31a7038a99268b3398b7c39963180773db45ce2d Mon Sep 17 00:00:00 2001 From: Danh Date: Fri, 7 Jul 2023 23:59:08 +0700 Subject: [PATCH] env prod --- .env.adpr | 51 ++++++++++++++++----------------- src/hooks/useKyberSwapConfig.ts | 4 +-- 2 files changed, 27 insertions(+), 28 deletions(-) diff --git a/.env.adpr b/.env.adpr index ee42f885a5..2a38ea16a6 100644 --- a/.env.adpr +++ b/.env.adpr @@ -1,46 +1,45 @@ -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_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 -VITE_SERVICE_WORKER=true +VITE_SERVICE_WORKER=false -VITE_MIXPANEL_PROJECT_TOKEN=fca28a30cb98d872c2079f214955cd5e -VITE_REWARD_SERVICE_API=https://reward.dev.kyberengineering.io/api/v1 +VITE_MIXPANEL_PROJECT_TOKEN=ff1eea26c19dcf4a7c35ebbc8631e714 +VITE_REWARD_SERVICE_API=https://rewards.kyberswap.com/api/v1 -VITE_PRICE_CHART_API=https://price-chart.dev.kyberengineering.io/api -VITE_PRICE_API=https://price.dev.kyberengineering.io +VITE_PRICE_CHART_API=https://price-chart.kyberswap.com/api +VITE_PRICE_API=https://price.kyberswap.com -VITE_NOTIFICATION_API=https://notification.dev.kyberengineering.io/api +VITE_NOTIFICATION_API=https://notification.kyberswap.com/api -VITE_CAMPAIGN_BASE_URL=https://campaigns.dev.kyberengineering.io -VITE_TYPE_AND_SWAP_URL=https://type-swap.dev.kyberengineering.io/api +VITE_CAMPAIGN_BASE_URL=https://campaigns.kyberswap.com +VITE_TYPE_AND_SWAP_URL=https://type-swap.kyberswap.com/api -VITE_TRANSAK_URL=https://staging-global.transak.com -VITE_TRANSAK_API_KEY=327b8b63-626b-4376-baf2-70a304c48488 +VITE_TRANSAK_URL=https://global.transak.com +VITE_TRANSAK_API_KEY=48949c0b-2d20-4e3a-a311-51ca91ae8c0d -VITE_KS_SETTING_API=https://ks-setting.dev.kyberengineering.io/api +VITE_KS_SETTING_API=https://ks-setting.kyberswap.com/api -VITE_GTM_ID= +VITE_GTM_ID=GTM-TRQCJ8F -VITE_GOOGLE_RECAPTCHA_KEY=6Lc7yg0iAAAAALhS4C4Ez5hqMBub8hKdFvvr9sfc +VITE_GOOGLE_RECAPTCHA_KEY=6LfgKRMiAAAAAPDTmXAM9LZLYAlE1zACfCJXup96 VITE_POOL_FARM_BASE_URL=https://pool-farm.kyberswap.com -VITE_LIMIT_ORDER_API_WRITE=https://limit-order.dev.kyberengineering.io/write/api -VITE_LIMIT_ORDER_API_READ=https://limit-order.dev.kyberengineering.io/read-ks/api +VITE_LIMIT_ORDER_API_WRITE=https://limit-order.kyberswap.com/write/api +VITE_LIMIT_ORDER_API_READ=https://limit-order.kyberswap.com/read-ks/api VITE_BLOCK_SERVICE_API=https://block.kyberswap.com # Kyber DAO Apis -VITE_KYBER_DAO_STATS_API=https://kyberswap-dao-stats.dev.kyberengineering.io +VITE_KYBER_DAO_STATS_API=https://kyberswap-dao-stats.kyberengineering.io # oauth -VITE_ENV=development -VITE_OAUTH_CLIENT_ID=a2f76ad4-895f-401a-ba75-952a929d782c - -VITE_PRICE_ALERT_API=https://price-alert.dev.kyberengineering.io/api -VITE_BFF_API=https://kyberswap-bff.dev.kyberengineering.io/api +VITE_ENV=production +VITE_OAUTH_CLIENT_ID=8a95ced8-1530-45d0-bc15-a5614d1d8d08 +VITE_PRICE_ALERT_API=https://price-alert.kyberswap.com/api +VITE_BFF_API=https://bff.kyberswap.com/api VITE_KYBER_AI_REFERRAL_ID=1 -VITE_KYBER_AI_TOPIC_ID=14 +VITE_KYBER_AI_TOPIC_ID=9 -VITE_BUCKET_NAME=ks-setting-a3aa20b7 +VITE_BUCKET_NAME=ks-setting-1d682dca VITE_WALLETCONNECT_PROJECT_ID=f218207428d6efc3863adab795a9f123 diff --git a/src/hooks/useKyberSwapConfig.ts b/src/hooks/useKyberSwapConfig.ts index 5530bb4c53..d9636ffcef 100644 --- a/src/hooks/useKyberSwapConfig.ts +++ b/src/hooks/useKyberSwapConfig.ts @@ -65,8 +65,8 @@ const parseGlobalResponse = ( chainId: ChainId, ): KyberswapGlobalConfig => { const data = responseData?.data?.config - const aggregatorDomain = data?.aggregator ?? DEFAULT_AGGREGATOR_API - const isEnableAuthenAggregator = !data ? true : !!data?.isEnableAuthenAggregator + const aggregatorDomain = 'https://meta-aggregator-api.kyberswap.com' ?? DEFAULT_AGGREGATOR_API + const isEnableAuthenAggregator = true /// !data ? true : !!data?.isEnableAuthenAggregator return { aggregatorDomain, aggregatorAPI: `${aggregatorDomain}/${NETWORKS_INFO[chainId].aggregatorRoute}/route/encode`,