diff --git a/.env.example b/.env.example
index abc118f5..85a991f5 100644
--- a/.env.example
+++ b/.env.example
@@ -4,7 +4,6 @@ NEXT_PUBLIC_IS_PROD=true
NEXT_PUBLIC_MAINNET_NETWORK_URL=
NEXT_PUBLIC_MAINNET_FALLBACK_URL=
NEXT_PUBLIC_GNOSIS_NETWORK_URL=https://rpc.gnosischain.com
-NEXT_PUBLIC_CHIADO_NETWORK_URL=https://rpc.chiadochain.net
NEXT_PUBLIC_HOODI_NETWORK_URL=https://ethereum-hoodi-rpc.publicnode.com
# Add wallet connect id to support WalletConnect
@@ -13,7 +12,6 @@ NEXT_PUBLIC_WALLET_CONNECT_ID=
# VAULT CONFIGURATION
# Set the addresses of the vaults for each network (skip if not needed)
NEXT_PUBLIC_MAINNET_VAULT_ADDRESS=0xAC0F906E433d58FA868F936E8A43230473652885
-NEXT_PUBLIC_CHIADO_VAULT_ADDRESS=0xF82f6E46d0d0a9536b9CA4bc480372EeaFcd9E6c
NEXT_PUBLIC_GNOSIS_VAULT_ADDRESS=0x4b4406Ed8659D03423490D8b62a1639206dA0A7a
NEXT_PUBLIC_HOODI_VAULT_ADDRESS=0xba447498DC4c169f2b4f427B2c4D532320457E89
diff --git a/README.md b/README.md
index 5679a7f5..4e4f35a6 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
# Vault interface
This is an open-source repository for the Vault interface.
You can customize this UI for your own vault on the
-Mainnet, Gnosis, Hoodi, and Chiado networks.
+Mainnet, Gnosis and Hoodi networks.
If you provide vault addresses for multiple networks,
a dropdown menu will appear in the UI,
@@ -28,8 +28,8 @@ allowing you to select the desired network.
- If you have vaults on both Mainnet and Gnosis, be sure to complete the previous steps for each network.
- Testnet Vaults:
- - Add the vault address to `NEXT_PUBLIC_HOODI_VAULT_ADDRESS` and/or `NEXT_PUBLIC_CHIADO_VAULT_ADDRESS`.
- - Set the RPC URL in `NEXT_PUBLIC_HOODI_NETWORK_URL` and/or `NEXT_PUBLIC_CHIADO_NETWORK_URL`.
+ - Add the vault address to `NEXT_PUBLIC_HOODI_VAULT_ADDRESS`.
+ - Set the RPC URL in `NEXT_PUBLIC_HOODI_NETWORK_URL`.
- Testnet networks will only be displayed in the network selection if `NEXT_PUBLIC_IS_PROD` is set to `false`. In a production environment, you can switch to the testnet only through the wallet interface.
- Vault Ownership:
diff --git a/package-lock.json b/package-lock.json
index 363fc779..b602c576 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -18,7 +18,7 @@
"@ledgerhq/hw-transport-webusb": "6.29.5",
"@metamask/onboarding": "1.0.1",
"@reduxjs/toolkit": "2.8.2",
- "@stakewise/v3-sdk": "4.2.0",
+ "@stakewise/v3-sdk": "4.2.1",
"@tailwindcss/postcss": "4.1.7",
"@types/react-redux": "7.1.34",
"@wagmi/connectors": "5.8.3",
@@ -6195,9 +6195,9 @@
"license": "MIT"
},
"node_modules/@stakewise/v3-sdk": {
- "version": "4.2.0",
- "resolved": "https://registry.npmjs.org/@stakewise/v3-sdk/-/v3-sdk-4.2.0.tgz",
- "integrity": "sha512-aYuEmm/gmjGNUYzVg5aUm5sDBj7q/rSQhBrSjrIvUsV2AGXQDonanBxE9/38Tfxj0sCRh0WlYaM0eRS22zBpNg==",
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/@stakewise/v3-sdk/-/v3-sdk-4.2.1.tgz",
+ "integrity": "sha512-2lDqER1iw3H2U+PSHyIVgdu6b/E+/YbuXPV6KoZzkwFyethbsIzqzCei7rr46AzyCvz5Z63SsLksZgrFueSUaw==",
"license": "AGPL-3.0-only",
"dependencies": {
"bignumber.js": "9.3.0"
diff --git a/package.json b/package.json
index f4e19f32..758896d7 100644
--- a/package.json
+++ b/package.json
@@ -84,7 +84,7 @@
"@ledgerhq/hw-transport-webusb": "6.29.5",
"@metamask/onboarding": "1.0.1",
"@reduxjs/toolkit": "2.8.2",
- "@stakewise/v3-sdk": "4.2.0",
+ "@stakewise/v3-sdk": "4.2.1",
"@tailwindcss/postcss": "4.1.7",
"@types/react-redux": "7.1.34",
"@wagmi/connectors": "5.8.3",
diff --git a/scripts/checkLocalEnv.js b/scripts/checkLocalEnv.js
index 7ef1197e..6b9fdf10 100644
--- a/scripts/checkLocalEnv.js
+++ b/scripts/checkLocalEnv.js
@@ -64,17 +64,16 @@ const validateEnv = () => {
const isVaultMainnetAvailable = isAddress(envList.NEXT_PUBLIC_MAINNET_VAULT_ADDRESS)
const isVaultGnosisAvailable = isAddress(envList.NEXT_PUBLIC_GNOSIS_VAULT_ADDRESS)
- const isVaultChiadoAvailable = isAddress(envList.NEXT_PUBLIC_CHIADO_VAULT_ADDRESS)
- const isVaultAddressMissed = !isVaultMainnetAvailable && !isVaultGnosisAvailable && !isVaultChiadoAvailable
+ const isVaultAddressMissed = !isVaultMainnetAvailable && !isVaultGnosisAvailable
if (isVaultMainnetAvailable && !envList.NEXT_PUBLIC_MAINNET_NETWORK_URL) {
errors.push('Add a valid network URL to the "NEXT_PUBLIC_MAINNET_NETWORK_URL" variable')
}
- if ((isVaultGnosisAvailable || isVaultChiadoAvailable) && !envList.NEXT_PUBLIC_GNOSIS_NETWORK_URL) {
+ if (isVaultGnosisAvailable && !envList.NEXT_PUBLIC_GNOSIS_NETWORK_URL) {
errors.push('Add a valid network URL to the "NEXT_PUBLIC_GNOSIS_NETWORK_URL" variable')
}
if (isVaultAddressMissed) {
- errors.push('Add a valid vault address to at least one of the following networks: "NEXT_PUBLIC_MAINNET_VAULT_ADDRESS", "NEXT_PUBLIC_GNOSIS_VAULT_ADDRESS", or "NEXT_PUBLIC_CHIADO_VAULT_ADDRESS"')
+ errors.push('Add a valid vault address to at least one of the following networks: "NEXT_PUBLIC_MAINNET_VAULT_ADDRESS", "NEXT_PUBLIC_GNOSIS_VAULT_ADDRESS"')
}
if (!envList.NEXT_PUBLIC_LOCALES?.length) {
errors.push(`Add at least one locale to the "NEXT_PUBLIC_LOCALES" variable. Available locales: ${availableLocales.join(', ')}`)
diff --git a/src/config/core/config/util/networks.ts b/src/config/core/config/util/networks.ts
index 94330821..30a10557 100644
--- a/src/config/core/config/util/networks.ts
+++ b/src/config/core/config/util/networks.ts
@@ -6,7 +6,6 @@ type Ids = keyof typeof supportedConfigs
// TODO This is the only link between config/core and the SDK to keep the correct ids. But it will have to be removed
const supportedConfigs = {
[sdkChains.gnosis.id]: sdkChains.gnosis,
- [sdkChains.chiado.id]: sdkChains.chiado,
[sdkChains.mainnet.id]: sdkChains.mainnet,
[sdkChains.hoodi.id]: sdkChains.hoodi,
} as const
diff --git a/src/config/core/connectors/helpers/WagmiConnector.ts b/src/config/core/connectors/helpers/WagmiConnector.ts
index 6230b2e1..7534a435 100644
--- a/src/config/core/connectors/helpers/WagmiConnector.ts
+++ b/src/config/core/connectors/helpers/WagmiConnector.ts
@@ -1,5 +1,5 @@
import { injected, coinbaseWallet, walletConnect, safe } from '@wagmi/connectors'
-import { mainnet, hoodi, gnosis, gnosisChiado } from 'viem/chains'
+import { mainnet, hoodi, gnosis } from 'viem/chains'
import EventAggregator from 'modules/event-aggregator'
import apiUrls from 'helpers/methods/apiUrls'
import type { Chain } from 'viem/chains'
@@ -7,7 +7,7 @@ import type { Chain } from 'viem/chains'
import networks from '../../config/util/networks'
-const viemChains = [ mainnet, hoodi, gnosis, gnosisChiado ]
+const viemChains = [ mainnet, hoodi, gnosis ]
const chains: Chain[] = []
diff --git a/src/config/core/wallets/injected/braveWallet.ts b/src/config/core/wallets/injected/braveWallet.ts
index 9c6560ee..708b64fe 100644
--- a/src/config/core/wallets/injected/braveWallet.ts
+++ b/src/config/core/wallets/injected/braveWallet.ts
@@ -33,7 +33,6 @@ const braveWallet = {
networks: [
Network.Mainnet,
Network.Gnosis,
- Network.Chiado,
Network.Hoodi,
] as ChainIds[],
location: [ 'desktop' ] as Location,
diff --git a/src/config/core/wallets/injected/dAppBrowser.ts b/src/config/core/wallets/injected/dAppBrowser.ts
index 0e5597a4..93f88a52 100644
--- a/src/config/core/wallets/injected/dAppBrowser.ts
+++ b/src/config/core/wallets/injected/dAppBrowser.ts
@@ -25,7 +25,6 @@ const dAppBrowser = {
networks: [
Network.Mainnet,
Network.Gnosis,
- Network.Chiado,
Network.Hoodi,
] as ChainIds[],
location: [ 'mobile' ] as Location,
diff --git a/src/config/core/wallets/injected/metaMask.ts b/src/config/core/wallets/injected/metaMask.ts
index f4fd0bc1..e9832186 100644
--- a/src/config/core/wallets/injected/metaMask.ts
+++ b/src/config/core/wallets/injected/metaMask.ts
@@ -43,7 +43,6 @@ const metaMask = {
networks: [
Network.Mainnet,
Network.Gnosis,
- Network.Chiado,
Network.Hoodi,
] as ChainIds[],
location: [ 'desktop', 'mobile' ] as Location,
diff --git a/src/config/core/wallets/injected/okx.ts b/src/config/core/wallets/injected/okx.ts
index 2e8c6666..41c8c6b2 100644
--- a/src/config/core/wallets/injected/okx.ts
+++ b/src/config/core/wallets/injected/okx.ts
@@ -33,7 +33,6 @@ const okx = {
networks: [
Network.Mainnet,
Network.Gnosis,
- Network.Chiado,
Network.Hoodi,
] as ChainIds[],
location: [ 'desktop', 'mobile' ] as Location,
diff --git a/src/config/core/wallets/injected/rabby.ts b/src/config/core/wallets/injected/rabby.ts
index 2ad195f7..1036c23e 100644
--- a/src/config/core/wallets/injected/rabby.ts
+++ b/src/config/core/wallets/injected/rabby.ts
@@ -33,7 +33,6 @@ const rabby = {
networks: [
Network.Mainnet,
Network.Gnosis,
- Network.Chiado,
Network.Hoodi,
] as ChainIds[],
location: [ 'desktop' ] as Location,
diff --git a/src/config/core/wallets/injected/taho.ts b/src/config/core/wallets/injected/taho.ts
index 28ffa99d..fce2bf5c 100644
--- a/src/config/core/wallets/injected/taho.ts
+++ b/src/config/core/wallets/injected/taho.ts
@@ -32,8 +32,7 @@ const taho = {
activationMessage: messages.authMessages.waitingAuth,
networks: [
Network.Mainnet,
- Network.Gnosis,
- Network.Chiado,
+ Network.Gnosis, ,
Network.Hoodi,
] as ChainIds[],
location: [ 'desktop' ] as Location,
diff --git a/src/config/core/wallets/injected/trustWallet.ts b/src/config/core/wallets/injected/trustWallet.ts
index e3625751..3dac4195 100644
--- a/src/config/core/wallets/injected/trustWallet.ts
+++ b/src/config/core/wallets/injected/trustWallet.ts
@@ -33,7 +33,6 @@ const trustWallet = {
networks: [
Network.Mainnet,
Network.Gnosis,
- Network.Chiado,
Network.Hoodi,
] as ChainIds[],
location: [ 'desktop' ] as Location,
diff --git a/src/config/core/wallets/ledger.ts b/src/config/core/wallets/ledger.ts
index 606c2aed..f20e4f8d 100644
--- a/src/config/core/wallets/ledger.ts
+++ b/src/config/core/wallets/ledger.ts
@@ -41,7 +41,6 @@ const ledger = {
networks: [
Network.Mainnet,
Network.Gnosis,
- Network.Chiado,
Network.Hoodi,
] as ChainIds[],
location: IS_LIGHTWEIGHT_MODE
diff --git a/src/config/core/wallets/monitorAddress.ts b/src/config/core/wallets/monitorAddress.ts
index 30dae416..55ddebd7 100644
--- a/src/config/core/wallets/monitorAddress.ts
+++ b/src/config/core/wallets/monitorAddress.ts
@@ -17,7 +17,6 @@ const monitorAddress = {
networks: [
Network.Mainnet,
Network.Gnosis,
- Network.Chiado,
Network.Hoodi,
] as ChainIds[],
location: [ 'desktop', 'mobile' ] as Location,
diff --git a/src/config/core/wallets/walletConnect.ts b/src/config/core/wallets/walletConnect.ts
index 9aaf2d32..fe4a38b5 100644
--- a/src/config/core/wallets/walletConnect.ts
+++ b/src/config/core/wallets/walletConnect.ts
@@ -38,7 +38,6 @@ const walletConnect = {
networks: [
Network.Mainnet,
Network.Gnosis,
- Network.Chiado,
Network.Hoodi,
] as ChainIds[],
location: IS_LIGHTWEIGHT_MODE
diff --git a/src/config/index.tsx b/src/config/index.tsx
index 32c49737..23d0ead9 100644
--- a/src/config/index.tsx
+++ b/src/config/index.tsx
@@ -8,7 +8,7 @@ import { createConfig, networks, wallets } from './core'
import connectModalId from '../layouts/modals/ConnectWalletModal/modalId'
-type SupportedChain = typeof chains.mainnet | typeof chains.hoodi | typeof chains.gnosis | typeof chains.chiado
+type SupportedChain = typeof chains.mainnet | typeof chains.hoodi | typeof chains.gnosis
const supportedChains: SupportedChain[] = []
@@ -21,9 +21,6 @@ if (process.env.NEXT_PUBLIC_GNOSIS_VAULT_ADDRESS) {
if (process.env.NEXT_PUBLIC_HOODI_VAULT_ADDRESS) {
supportedChains.push(chains.hoodi)
}
-if (process.env.NEXT_PUBLIC_CHIADO_VAULT_ADDRESS) {
- supportedChains.push(chains.chiado)
-}
const supportedNetworkIds = supportedChains.map((config) => config.id)
@@ -38,10 +35,7 @@ const middleware = (ctx: ConfigProvider.Context) => {
const sdk = methods.getSDK({ chainId })
const signSDK = methods.getSDK({ chainId, library })
- const isGnosis = (
- networkId === networks.configs.chiado.id
- || networkId === networks.configs.gnosis.id
- )
+ const isGnosis = networkId === networks.configs.gnosis.id
const isEthereum = (
networkId === networks.configs.mainnet.id
diff --git a/src/helpers/contracts/addresses.ts b/src/helpers/contracts/addresses.ts
index 58ea1e07..f642d2f6 100644
--- a/src/helpers/contracts/addresses.ts
+++ b/src/helpers/contracts/addresses.ts
@@ -27,14 +27,6 @@ const addresses = {
vaultRelayer: '0xc92e8bdf79f0507f65a392b0ab4667716bfe0110',
},
},
- [Network.Chiado]: {
- base: {
- merkleDistributorV2: '0xd0747320d5457256D0203dfe61209Afbb90d22D7',
- },
- cow: {
- vaultRelayer: ZeroAddress,
- },
- },
}
diff --git a/src/helpers/getters/getDefaultNetwork.ts b/src/helpers/getters/getDefaultNetwork.ts
index 0e1cad86..650e6c0c 100644
--- a/src/helpers/getters/getDefaultNetwork.ts
+++ b/src/helpers/getters/getDefaultNetwork.ts
@@ -1,7 +1,7 @@
import getVaultAddress from './getVaultAddress'
-const networks: NetworkIds[] = [ 'mainnet', 'gnosis', 'chiado', 'hoodi' ]
+const networks: NetworkIds[] = [ 'mainnet', 'gnosis', 'hoodi' ]
const getDefaultNetwork = () => networks.find(getVaultAddress)
diff --git a/src/helpers/getters/getVaultAddress.ts b/src/helpers/getters/getVaultAddress.ts
index 050cc1e7..8c5a55d1 100644
--- a/src/helpers/getters/getVaultAddress.ts
+++ b/src/helpers/getters/getVaultAddress.ts
@@ -1,7 +1,6 @@
const vaultAddresses = {
mainnet: process.env.NEXT_PUBLIC_MAINNET_VAULT_ADDRESS || '',
gnosis: process.env.NEXT_PUBLIC_GNOSIS_VAULT_ADDRESS || '',
- chiado: process.env.NEXT_PUBLIC_CHIADO_VAULT_ADDRESS || '',
hoodi: process.env.NEXT_PUBLIC_HOODI_VAULT_ADDRESS || '',
}
diff --git a/src/helpers/methods/apiUrls/data.ts b/src/helpers/methods/apiUrls/data.ts
index a958f216..211441de 100644
--- a/src/helpers/methods/apiUrls/data.ts
+++ b/src/helpers/methods/apiUrls/data.ts
@@ -27,13 +27,6 @@ const apiUrls = {
`https://graphs.stakewise.io/mainnet-b/subgraphs/name/stakewise/${defaultType}`,
],
},
- [Network.Chiado]: {
- backend: configs[Network.Chiado].api.backend,
- web3: 'https://rpc.chiadochain.net/',
- subgraph: IS_PROD
- ? configs[Network.Chiado].api.subgraph
- : `https://graphs.stakewise.io/chiado/subgraphs/name/stakewise/${defaultType}`,
- },
[Network.Hoodi]: {
backend: configs[Network.Hoodi].api.backend,
web3: 'https://ethereum-hoodi-rpc.publicnode.com',
diff --git a/src/helpers/methods/fetchFiatRates/index.ts b/src/helpers/methods/fetchFiatRates/index.ts
index e82bf742..d4946a7f 100644
--- a/src/helpers/methods/fetchFiatRates/index.ts
+++ b/src/helpers/methods/fetchFiatRates/index.ts
@@ -5,7 +5,7 @@ import fetchMainnetRates from './fetchMainnetRates'
const fetchFiatRates = async (network: Network) => {
- const isGnosis = [ Network.Gnosis, Network.Chiado ].includes(network)
+ const isGnosis = Network.Gnosis === network
const isEthereum = [ Network.Mainnet, Network.Hoodi ].includes(network)
if (isGnosis) {
diff --git a/src/helpers/requests/vault/fetchData.ts b/src/helpers/requests/vault/fetchData.ts
index 5857585b..af909997 100644
--- a/src/helpers/requests/vault/fetchData.ts
+++ b/src/helpers/requests/vault/fetchData.ts
@@ -29,7 +29,7 @@ const fetchData = async ({ sdk, withTime, vaultAddress }: Input) => {
])
const chainId = sdk.config.network.chainId
- const isGnosis = chainId === Network.Gnosis || chainId === Network.Chiado
+ const isGnosis = chainId === Network.Gnosis
const isEthereum = chainId === Network.Mainnet || chainId === Network.Hoodi
const isEditableInGnosis = isGnosis && versions.version >= 3
diff --git a/src/layouts/AppLayout/Header/Connect/Connect.tsx b/src/layouts/AppLayout/Header/Connect/Connect.tsx
index 2d564cac..fe1de0e5 100644
--- a/src/layouts/AppLayout/Header/Connect/Connect.tsx
+++ b/src/layouts/AppLayout/Header/Connect/Connect.tsx
@@ -18,7 +18,6 @@ type Connect = {
const networkSizes = {
mainnet: 160,
gnosis: 185,
- chiado: 197,
hoodi: 178,
}
diff --git a/src/layouts/AppLayout/Header/Connect/NetworkSelect/NetworkSelect.tsx b/src/layouts/AppLayout/Header/Connect/NetworkSelect/NetworkSelect.tsx
index 5cbcb219..a9c7c914 100644
--- a/src/layouts/AppLayout/Header/Connect/NetworkSelect/NetworkSelect.tsx
+++ b/src/layouts/AppLayout/Header/Connect/NetworkSelect/NetworkSelect.tsx
@@ -20,10 +20,7 @@ const networkOptions = Object.values(supportedChains)
return acc
}
- const isGnosis = (
- config.id === chains.gnosis.id
- || config.id === chains.chiado.id
- )
+ const isGnosis = config.id === chains.gnosis.id
const logo = isGnosis ? 'token/GNO' : 'token/ETH'
diff --git a/src/middleware.ts b/src/middleware.ts
index ca220af5..9a99bfb5 100644
--- a/src/middleware.ts
+++ b/src/middleware.ts
@@ -10,7 +10,6 @@ const networkMiddleware = createNetworkMiddleware({
defaultNetworkId: chains.mainnet.id,
supportedNetworkIds: [
chains.gnosis.id,
- chains.chiado.id,
chains.mainnet.id,
],
middlewareFn: async () => null,
diff --git a/src/types/global.d.ts b/src/types/global.d.ts
index b12d3df6..46672b46 100644
--- a/src/types/global.d.ts
+++ b/src/types/global.d.ts
@@ -11,7 +11,7 @@ declare global {
type SDK = StakeWiseSDK
type Library = StakeWise.Provider
- type ChainIds = 1 | 100 | 10200 | 560048
+ type ChainIds = 1 | 100 | 560048
type GenerateMetadata = (props: { params: T & { locale: Intl.LanguagesKeys }}) => Promise
interface Window {