diff --git a/.env.adpr b/.env.adpr
deleted file mode 100644
index 66d33fd4bb..0000000000
--- a/.env.adpr
+++ /dev/null
@@ -1,45 +0,0 @@
-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
-
-VITE_SERVICE_WORKER=true
-
-VITE_MIXPANEL_PROJECT_TOKEN=fca28a30cb98d872c2079f214955cd5e
-VITE_REWARD_SERVICE_API=https://reward.dev.kyberengineering.io/api/v1
-
-VITE_PRICE_CHART_API=https://price-chart.dev.kyberengineering.io/api
-VITE_PRICE_API=https://price.dev.kyberengineering.io
-
-VITE_NOTIFICATION_API=https://notification.dev.kyberengineering.io/api
-
-VITE_CAMPAIGN_BASE_URL=https://campaigns.dev.kyberengineering.io
-VITE_TYPE_AND_SWAP_URL=https://type-swap.dev.kyberengineering.io/api
-
-VITE_TRANSAK_URL=https://staging-global.transak.com
-VITE_TRANSAK_API_KEY=327b8b63-626b-4376-baf2-70a304c48488
-
-VITE_KS_SETTING_API=https://ks-setting.dev.kyberengineering.io/api
-
-VITE_GTM_ID=
-
-VITE_GOOGLE_RECAPTCHA_KEY=6Lc7yg0iAAAAALhS4C4Ez5hqMBub8hKdFvvr9sfc
-VITE_POOL_FARM_BASE_URL=https://pool-farm.dev.kyberengineering.io
-
-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_BLOCK_SERVICE_API=https://block.kyberswap.com
-
-# Kyber DAO Apis
-VITE_KYBER_DAO_STATS_API=https://kyberswap-dao-stats.dev.kyberengineering.io
-
-# oauth
-VITE_ENV=development
-VITE_OAUTH_CLIENT_ID=a2f76ad4-895f-401a-ba75-952a929d782c
-
-VITE_BFF_API=https://kyberswap-bff.dev.kyberengineering.io/api
-VITE_KYBER_AI_REFERRAL_ID=1
-VITE_KYBER_AI_TOPIC_ID=14
-VITE_PRICE_ALERT_TOPIC_ID=13
-VITE_ELASTIC_POOL_TOPIC_ID=12
-VITE_BUCKET_NAME=ks-setting-a3aa20b7
-VITE_WALLETCONNECT_PROJECT_ID=f218207428d6efc3863adab795a9f123
diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml
index 338df4027a..170fa2a8d9 100644
--- a/.github/workflows/cypress.yml
+++ b/.github/workflows/cypress.yml
@@ -94,7 +94,7 @@ jobs:
VITE_TAG: ${{ needs.prepare.outputs.image_tag }}
CURRENT_BRANCH: ${{ needs.prepare.outputs.current_branch }}
NODE_OPTIONS: '--max_old_space_size=4096'
- run: yarn build-adpr
+ run: yarn build-dev
- name: Install cypress
run: yarn cypress install --force
diff --git a/package.json b/package.json
index 819d521cbf..fb6b6adcb5 100644
--- a/package.json
+++ b/package.json
@@ -12,8 +12,7 @@
"scripts": {
"postinstall": "patch-package",
"preview": "vite preview",
- "build": "yarn i18n && tsc && vite build",
- "build-adpr": "yarn i18n && tsc && vite build --mode adpr",
+ "build": "yarn build-prod",
"build-dev": "yarn i18n && tsc && vite build --mode dev",
"build-stg": "yarn i18n && tsc && vite build --mode stg",
"build-prod": "yarn i18n && tsc && vite build",
@@ -22,8 +21,7 @@
"i18n:compile": "lingui compile",
"i18n:extract": "lingui extract",
"lint": "eslint --ext ts,tsx src",
- "start": "vite --mode production --host",
- "start-adpr": "vite --mode adpr --host",
+ "start": "yarn start-prod",
"start-dev": "vite --mode dev --host",
"start-stg": "vite --mode stg --host",
"start-prod": "vite --mode production --host",
@@ -208,4 +206,4 @@
"@lingui/core": "3.14.0",
"@lingui/conf": "3.16.0"
}
-}
\ No newline at end of file
+}
diff --git a/src/assets/svg/trending_icon.svg b/src/assets/svg/trending_icon.svg
deleted file mode 100644
index ed5ada6e87..0000000000
--- a/src/assets/svg/trending_icon.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
diff --git a/src/components/Icons/TrendingIcon.tsx b/src/components/Icons/TrendingIcon.tsx
deleted file mode 100644
index ad9aa8291c..0000000000
--- a/src/components/Icons/TrendingIcon.tsx
+++ /dev/null
@@ -1,16 +0,0 @@
-import styled from 'styled-components'
-
-import { ReactComponent as TrendingIconSvg } from 'assets/svg/trending_icon.svg'
-
-const TrendingIcon = styled(TrendingIconSvg)<{ size?: number; color?: string }>`
- min-width: ${({ size }) => (size ?? 14) + 'px'};
- width: ${({ size }) => (size ?? 14) + 'px'};
- color: ${({ color }) => color && color};
-
- * {
- color: ${({ color }) => color && color};
- fill: ${({ color }) => color && color};
- }
-`
-
-export default TrendingIcon
diff --git a/src/components/Icons/ZkSync.tsx b/src/components/Icons/ZkSync.tsx
deleted file mode 100644
index 2b31ed34bf..0000000000
--- a/src/components/Icons/ZkSync.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-import useTheme from 'hooks/useTheme'
-
-function ZkSync({ size }: { size?: number }) {
- const theme = useTheme()
- return (
-
- )
-}
-
-export default ZkSync
diff --git a/src/constants/env.ts b/src/constants/env.ts
index a990c95e40..0d50e157bd 100644
--- a/src/constants/env.ts
+++ b/src/constants/env.ts
@@ -113,8 +113,8 @@ export const FIREBASE: { [key in EnvKeys]: { DEFAULT: FirebaseConfig; LIMIT_ORDE
},
}
-type Config = { [type in PrivateAnnouncementType]: string } & { EXCLUDE: string }
-const ANNOUNCEMENT_TEMPLATE_IDS: { [key in EnvKeys]: Config } = {
+type TemplateConfig = { [type in PrivateAnnouncementType]: string } & { EXCLUDE: string }
+const ANNOUNCEMENT_TEMPLATE_IDS: { [key in EnvKeys]: TemplateConfig } = {
development: {
[PrivateAnnouncementType.PRICE_ALERT]: '53',
[PrivateAnnouncementType.LIMIT_ORDER]: '8,9,10,11,33,34,35,36',
@@ -157,7 +157,7 @@ export enum EnvKeys {
}
export const ENV_KEY: EnvKeys = import.meta.env.VITE_ENV
-export const getAnnouncementsTemplateIds = (type: PrivateAnnouncementType | 'EXCLUDE') => {
+export const getAnnouncementsTemplateIds = (type: keyof TemplateConfig) => {
return ANNOUNCEMENT_TEMPLATE_IDS[ENV_KEY]?.[type]
}
diff --git a/src/constants/index.ts b/src/constants/index.ts
index 38d2af5c38..45e6354254 100644
--- a/src/constants/index.ts
+++ b/src/constants/index.ts
@@ -134,8 +134,6 @@ export const BLACKLIST_WALLETS: string[] = [
'0xCa0840578f57fE71599D29375e16783424023357',
]
-export const NetworkContextName = 'NETWORK'
-
// default allowed slippage, in bips
export const INITIAL_ALLOWED_SLIPPAGE = 50
// 20 minutes, denominated in seconds
@@ -144,7 +142,6 @@ export const DEFAULT_DEADLINE_FROM_NOW = 60 * 20
export const TIME_TO_REFRESH_SWAP_RATE = 10
export const BIG_INT_ONE = JSBI.BigInt(1)
-export const BIG_INT_MINUS_ONE = JSBI.BigInt(-1)
export const BIG_INT_ZERO = JSBI.BigInt(0)
// one basis point
@@ -163,8 +160,6 @@ export const BUNDLE_ID = '1'
export const COINGECKO_BFF_API_URL = `${ENV.BFF_API}/v1/coingecko/api/v3`
export const COINGECKO_API_URL = 'https://api.coingecko.com/api/v3'
-export const KNC_COINGECKO_ID = 'kyber-network-crystal'
-
export const ETHER_ADDRESS = '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE'
export const ETHER_ADDRESS_SOLANA = 'So11111111111111111111111111111111111111111'
@@ -185,9 +180,6 @@ export const CREATE_POOL_AMP_HINT = t`Stands for amplification factor. Pools wit
export const sentryRequestId = uuid()
-export const TRENDING_SOON_ITEM_PER_PAGE = 10
-export const TRENDING_SOON_MAX_ITEMS = 50
-export const TRENDING_ITEM_PER_PAGE = 25
export const CAMPAIGN_LEADERBOARD_ITEM_PER_PAGE = 10
export const CAMPAIGN_YOUR_TRANSACTIONS_ITEM_PER_PAGE = 10000
@@ -206,9 +198,6 @@ export const SWR_KEYS = {
`${CAMPAIGN_BASE_URL}/${campaignId}/proofs?limit=${limit}&offset=${offset}&userAddress=${account}`,
}
-// Epsilon 0 is absolute permittivity of free space whose value is 8.854×10^-12 and unit is C^2N^-1m–2.
-export const EPSILON = 0.000000000008854
-
// https://www.nasdaq.com/glossary/b/bip
export const MAX_NORMAL_SLIPPAGE_IN_BIPS = 1999
export const MAX_DEGEN_SLIPPAGE_IN_BIPS = 5000