Skip to content

Commit

Permalink
fix: test aggregator on stg
Browse files Browse the repository at this point in the history
  • Loading branch information
hanguyenk committed Mar 8, 2023
1 parent 8f98b96 commit ba21b4b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
32 changes: 16 additions & 16 deletions .env
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
REACT_APP_AGGREGATOR_API=https://meta-aggregator-api.kyberswap.com
REACT_APP_AGGREGATOR_API=https://meta-aggregator.stg.kyberengineering.io
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_TRUESIGHT_API=https://truesight.kyberswap.com
REACT_APP_TRUESIGHT_API=https://truesight.stg.kyberengineering.io
REACT_APP_MIXPANEL_PROJECT_TOKEN=ff1eea26c19dcf4a7c35ebbc8631e714
REACT_APP_REWARD_SERVICE_API=https://rewards.kyberswap.com/api/v1
REACT_APP_REWARD_SERVICE_API=https://reward.stg.kyberengineering.io/api/v1

REACT_APP_PRICE_CHART_API=https://price-chart.kyberswap.com/api
REACT_APP_PRICE_API=https://price.kyberswap.com
REACT_APP_PRICE_API=https://price.stg.kyberengineering.io

REACT_APP_NOTIFICATION_API=https://notification.dev.kyberengineering.io/api
REACT_APP_NOTIFICATION_API=https://notification.stg.kyberengineering.io/api

REACT_APP_CAMPAIGN_BASE_URL=https://campaigns.kyberswap.com
REACT_APP_TYPE_AND_SWAP_URL=https://type-swap.kyberswap.com/api
REACT_APP_CAMPAIGN_BASE_URL=https://campaigns.stg.kyberengineering.io
REACT_APP_TYPE_AND_SWAP_URL=https://type-swap.stg.kyberengineering.io/api

REACT_APP_TRANSAK_URL=https://global.transak.com
REACT_APP_TRANSAK_API_KEY=48949c0b-2d20-4e3a-a311-51ca91ae8c0d
REACT_APP_TRANSAK_URL=https://staging-global.transak.com
REACT_APP_TRANSAK_API_KEY=327b8b63-626b-4376-baf2-70a304c48488

REACT_APP_KS_SETTING_API=https://ks-setting.kyberswap.com/api
REACT_APP_KS_SETTING_API=https://ks-setting.stg.kyberengineering.io/api

REACT_APP_GTM_ID=GTM-TRQCJ8F
REACT_APP_GTM_ID=

REACT_APP_GOOGLE_RECAPTCHA_KEY=6LfgKRMiAAAAAPDTmXAM9LZLYAlE1zACfCJXup96
REACT_APP_GOOGLE_RECAPTCHA_KEY=6Lc7yg0iAAAAALhS4C4Ez5hqMBub8hKdFvvr9sfc
REACT_APP_POOL_FARM_BASE_URL=https://pool-farm.kyberswap.com

REACT_APP_LIMIT_ORDER_API_WRITE=https://limit-order.kyberswap.com/write/api
REACT_APP_LIMIT_ORDER_API_READ=https://limit-order.kyberswap.com/read-ks/api
REACT_APP_LIMIT_ORDER_API_WRITE=https://limit-order.stg.kyberengineering.io/write/api
REACT_APP_LIMIT_ORDER_API_READ=https://limit-order.stg.kyberengineering.io/read-ks/api

# Kyber DAO Apis
REACT_APP_KYBER_DAO_STATS_API=https://kyberswap-dao-stats.kyberengineering.io
REACT_APP_NOTIFICATION_IGNORE_TEMPLATE_IDS=2,29
REACT_APP_KYBER_DAO_STATS_API=https://kyberswap-dao-stats.stg.kyberengineering.io
REACT_APP_NOTIFICATION_IGNORE_TEMPLATE_IDS=2,11
2 changes: 1 addition & 1 deletion src/components/SwapForm/hooks/useBuildRoute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const useBuildRoute = (args: Args) => {
abortControllerRef.current.abort()
abortControllerRef.current = new AbortController()

const url = `${aggregatorDomain}/${NETWORKS_INFO[chainId].aggregatorRoute}/api/v1/route/build`
const url = `https://aggregator-api.stg.kyberengineering.io/${NETWORKS_INFO[chainId].aggregatorRoute}/api/v1/route/build`
const response = await buildRoute(url, payload, abortControllerRef.current.signal)

return {
Expand Down
2 changes: 1 addition & 1 deletion src/components/SwapForm/hooks/useGetRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const useGetRoute = (args: Args) => {
}
})

const url = `${aggregatorDomain}/${NETWORKS_INFO[chainId].aggregatorRoute}/api/v1/routes`
const url = `https://aggregator-api.stg.kyberengineering.io/${NETWORKS_INFO[chainId].aggregatorRoute}/api/v1/routes`

triggerDebounced({
url,
Expand Down

0 comments on commit ba21b4b

Please sign in to comment.