Skip to content

Commit

Permalink
shutdown Velas & Oasis
Browse files Browse the repository at this point in the history
  • Loading branch information
namgold committed Sep 7, 2023
1 parent 2c0ace7 commit 63e9b73
Show file tree
Hide file tree
Showing 20 changed files with 9 additions and 350 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
"@kybernetwork/oauth2": "1.0.0",
"@kyberswap/ks-sdk-classic": "^1.0.3",
"@kyberswap/ks-sdk-core": "1.0.10",
"@kyberswap/ks-sdk-core": "1.0.11-rc",
"@kyberswap/ks-sdk-elastic": "^1.1.2",
"@kyberswap/ks-sdk-solana": "^1.0.2",
"@lingui/loader": "~3.14.0",
Expand Down Expand Up @@ -198,7 +198,7 @@
"vite-tsconfig-paths": "^4.0.8"
},
"resolutions": {
"@kyberswap/ks-sdk-core": "1.0.10",
"@kyberswap/ks-sdk-core": "1.0.11-rc",
"react-error-overlay": "6.0.9",
"@lingui/babel-plugin-extract-messages": "3.14.0",
"@lingui/cli": "3.14.0",
Expand Down
2 changes: 0 additions & 2 deletions src/components/ApproveMessage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export default function ApproveMessage({
![
ChainId.BSCMAINNET,
ChainId.BTTC,
ChainId.VELAS,
ChainId.CRONOS,
ChainId.ARBITRUM,
ChainId.MATIC,
Expand All @@ -39,7 +38,6 @@ export default function ApproveMessage({
ChainId.AURORA,
ChainId.MAINNET,
ChainId.AVAXMAINNET,
ChainId.OASIS,
].includes(chainId)
) {
return null
Expand Down
15 changes: 0 additions & 15 deletions src/components/Icons/Oasis.tsx

This file was deleted.

27 changes: 0 additions & 27 deletions src/components/Icons/OasisLogoFull.tsx

This file was deleted.

15 changes: 0 additions & 15 deletions src/components/Icons/Velas.tsx

This file was deleted.

20 changes: 0 additions & 20 deletions src/components/Icons/VelasLogoFull.tsx

This file was deleted.

4 changes: 0 additions & 4 deletions src/components/Icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ export { default as LowestSlippage } from './LowestSlippage'
export { default as MoneyBagOutline } from './MoneyBagOutline'
export { default as MoneyBag } from './MoneyBag'
export { default as MoneyFill } from './MoneyFill'
export { default as Oasis } from './Oasis'
export { default as OasisLogoFull } from './OasisLogoFull'
export { default as OptimismLogo } from './OptimismLogo'
export { default as OptimismLogoFull } from './OptimismLogoFull'
export { default as Polygon } from './Polygon'
Expand All @@ -36,8 +34,6 @@ export { default as LineaFull } from './LineaFull'
export { default as Swap } from './Swap'
export { default as Swap2 } from './Swap_2'
export { default as Telegram } from './Telegram'
export { default as Velas } from './Velas'
export { default as VelasLogoFull } from './VelasLogoFull'
export { default as FarmingIcon } from './FarmingIcon'
export { default as CheckCircle } from './CheckCircle'
export { default as XCircle } from './XCircle'
Expand Down
6 changes: 0 additions & 6 deletions src/constants/bases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ const WETH_ONLY: ChainTokenList = {
[ChainId.AURORA]: [WETH[ChainId.AURORA]],
[ChainId.BTTC]: [WETH[ChainId.BTTC]],
[ChainId.ARBITRUM]: [WETH[ChainId.ARBITRUM]],
[ChainId.VELAS]: [WETH[ChainId.VELAS]],
[ChainId.OASIS]: [WETH[ChainId.OASIS]],
[ChainId.OPTIMISM]: [WETH[ChainId.OPTIMISM]],
[ChainId.ZKSYNC]: [WETH[ChainId.ZKSYNC]],
[ChainId.SOLANA]: [WETH[ChainId.SOLANA]],
Expand Down Expand Up @@ -81,8 +79,6 @@ export const BASES_TO_CHECK_TRADES_AGAINST: ChainTokenList = {
[ChainId.FANTOM]: [...WETH_ONLY[ChainId.FANTOM], DAI[ChainId.FANTOM], USDC[ChainId.FANTOM], USDT[ChainId.FANTOM]],
[ChainId.CRONOS]: [...WETH_ONLY[ChainId.CRONOS], DAI[ChainId.CRONOS], USDC[ChainId.CRONOS], USDT[ChainId.CRONOS]],
[ChainId.AURORA]: [...WETH_ONLY[ChainId.AURORA], DAI[ChainId.AURORA], USDC[ChainId.AURORA], USDT[ChainId.AURORA]],
[ChainId.VELAS]: [...WETH_ONLY[ChainId.VELAS], USDC[ChainId.VELAS], USDT[ChainId.VELAS]],
[ChainId.OASIS]: [...WETH_ONLY[ChainId.OASIS], USDC[ChainId.OASIS], USDT[ChainId.OASIS]],
[ChainId.BTTC]: [
...WETH_ONLY[ChainId.BTTC],
DAI[ChainId.BTTC],
Expand Down Expand Up @@ -159,8 +155,6 @@ export const SUGGESTED_BASES: ChainTokenList = {
new Token(ChainId.ARBITRUM, '0x5979D7b546E38E414F7E9822514be443A4800529', 18, 'wstETH', 'Lido Wrapped Staked ETH'),
],
[ChainId.BTTC]: [...WETH_ONLY[ChainId.BTTC], DAI[ChainId.BTTC], USDC[ChainId.BTTC], USDT[ChainId.BTTC]],
[ChainId.VELAS]: [...WETH_ONLY[ChainId.VELAS], USDC[ChainId.VELAS], USDT[ChainId.VELAS]],
[ChainId.OASIS]: [...WETH_ONLY[ChainId.OASIS], USDC[ChainId.OASIS], USDT[ChainId.OASIS]],
[ChainId.OPTIMISM]: [
...WETH_ONLY[ChainId.OPTIMISM],
USDC[ChainId.OPTIMISM],
Expand Down
2 changes: 1 addition & 1 deletion src/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ export const TRANSACTION_STATE_DEFAULT: TransactionFlowState = {
pendingText: '',
}

export const CHAINS_SUPPORT_FEE_CONFIGS = [ChainId.OASIS, ChainId.VELAS, ChainId.AURORA, ChainId.CRONOS]
export const CHAINS_SUPPORT_FEE_CONFIGS = [ChainId.AURORA, ChainId.CRONOS]
export const CHAINS_SUPPORT_CROSS_CHAIN =
ENV.ENV_KEY === ENV.EnvKeys.PROD || ENV.ENV_KEY === ENV.EnvKeys.STG
? [
Expand Down
22 changes: 1 addition & 21 deletions src/constants/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@ import {
linea,
matic,
mumbai,
oasis,
optimism,
solana,
solanaDevnet,
velas,
zkEvm,
zksync,
} from './networks/index'
Expand All @@ -47,9 +45,7 @@ const NETWORKS_INFO_CONFIG: NETWORKS_INFO_CONFIG_TYPE = {
[ChainId.CRONOS]: cronos,
[ChainId.ARBITRUM]: arbitrum,
[ChainId.BTTC]: bttc,
[ChainId.VELAS]: velas,
[ChainId.AURORA]: aurora,
[ChainId.OASIS]: oasis,
[ChainId.OPTIMISM]: optimism,
[ChainId.ZKSYNC]: zksync,
[ChainId.LINEA]: linea,
Expand Down Expand Up @@ -87,8 +83,6 @@ export const MAINNET_NETWORKS = [
ChainId.FANTOM,
ChainId.BTTC,
ChainId.CRONOS,
ChainId.VELAS,
ChainId.OASIS,
ChainId.AURORA,
] as const

Expand Down Expand Up @@ -149,17 +143,13 @@ export const CHAINS_SUPPORT_NEW_POOL_FARM_API: readonly ChainId[] = [
ChainId.BTTC,
ChainId.ARBITRUM,
ChainId.AURORA,
// ChainId.VELAS,
// ChainId.OASIS,
ChainId.OPTIMISM,
]

// Fee options instead of dynamic fee
export const STATIC_FEE_OPTIONS: { [chainId: number]: number[] | undefined } = {
[ChainId.ARBITRUM]: [8, 10, 50, 300, 500, 1000],
[ChainId.AURORA]: [8, 10, 50, 300, 500, 1000],
[ChainId.VELAS]: [8, 10, 50, 300, 500, 1000],
[ChainId.OASIS]: [8, 10, 50, 300, 500, 1000],
[ChainId.MAINNET]: [8, 10, 50, 300, 500, 1000],
[ChainId.MATIC]: [8, 10, 50, 300, 500, 1000],
[ChainId.AVAXMAINNET]: [8, 10, 50, 300, 500, 1000],
Expand All @@ -178,8 +168,6 @@ export const STATIC_FEE_OPTIONS: { [chainId: number]: number[] | undefined } = {
export const ONLY_STATIC_FEE_CHAINS = [
ChainId.ARBITRUM,
ChainId.AURORA,
ChainId.VELAS,
ChainId.OASIS,
ChainId.OPTIMISM,
ChainId.GÖRLI,
ChainId.ZKSYNC,
Expand Down Expand Up @@ -214,18 +202,11 @@ export const SUPPORTED_NETWORKS_FOR_MY_EARNINGS = [
ChainId.FANTOM,
ChainId.CRONOS,
ChainId.BTTC,
ChainId.VELAS,
ChainId.AURORA,
ChainId.OASIS,
]
export const COMING_SOON_NETWORKS_FOR_MY_EARNINGS: ChainId[] = []
export const COMING_SOON_NETWORKS_FOR_MY_EARNINGS_LEGACY: ChainId[] = []
export const COMING_SOON_NETWORKS_FOR_MY_EARNINGS_CLASSIC: ChainId[] = [
ChainId.CRONOS,
ChainId.VELAS,
ChainId.AURORA,
ChainId.OASIS,
]
export const COMING_SOON_NETWORKS_FOR_MY_EARNINGS_CLASSIC: ChainId[] = [ChainId.CRONOS, ChainId.AURORA]
export const BLOCTO_SUPPORTED_NETWORKS: ChainId[] = [
ChainId.MAINNET,
ChainId.ARBITRUM,
Expand All @@ -238,7 +219,6 @@ export const BLOCTO_SUPPORTED_NETWORKS: ChainId[] = [
export const ELASTIC_NOT_SUPPORTED: { [key: string]: string } = {
[ChainId.AURORA]: t`Elastic is not supported on Aurora. Please switch to other chains`,
[ChainId.ZKSYNC]: t`Elastic will be available soon`,
// [ChainId.VELAS]: t`Elastic will be available soon`,
}

export const CLASSIC_NOT_SUPPORTED: { [key: string]: string } = {
Expand Down
2 changes: 0 additions & 2 deletions src/constants/networks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ export { default as fantom } from './fantom'
export { default as görli } from './görli'
export { default as matic } from './matic'
export { default as mumbai } from './mumbai'
export { default as oasis } from './oasis'
export { default as optimism } from './optimism'
export { default as solana } from './solana'
export { default as velas } from './velas'
export { default as zksync } from './zksync'
export { default as linea } from './linea'
export { default as zkEvm } from './zkevm'
Expand Down
72 changes: 0 additions & 72 deletions src/constants/networks/oasis.ts

This file was deleted.

Loading

0 comments on commit 63e9b73

Please sign in to comment.