From f3833a3c2c572c6cc91e29455770048686159863 Mon Sep 17 00:00:00 2001 From: Rosco Kalis Date: Wed, 11 Dec 2024 14:36:36 +0100 Subject: [PATCH] fix: fix Kroma and Apechain support --- lib/utils/chains.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/utils/chains.ts b/lib/utils/chains.ts index f8d379df..f1af6650 100644 --- a/lib/utils/chains.ts +++ b/lib/utils/chains.ts @@ -181,13 +181,14 @@ export const CHAINS = { correspondingMainnetChainId: ChainId.PolygonMainnet, }), [ChainId.ApeChain]: new Chain({ - type: SupportType.PROVIDER, + type: SupportType.ETHERSCAN_COMPATIBLE, chainId: ChainId.ApeChain, name: 'ApeChain', nativeToken: 'APE', logoUrl: '/assets/images/vendor/chains/apechain.svg', explorerUrl: 'https://apescan.io', infoUrl: 'https://apechain.com', + etherscanCompatibleApiUrl: 'https://api.apescan.io/api', rpc: { main: `https://apechain-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}`, free: 'https://apechain.calderachain.xyz/http', @@ -1258,8 +1259,8 @@ export const CHAINS = { chainId: ChainId.Kroma, name: 'Kroma', logoUrl: '/assets/images/vendor/chains/kroma.svg', - explorerUrl: 'https://kromascan.com', - etherscanCompatibleApiUrl: 'https://api.kromascan.com/api', + explorerUrl: 'https://blockscout.kroma.network', + etherscanCompatibleApiUrl: 'https://blockscout.kroma.network/api', deployedContracts: { ...MULTICALL }, // TODO: Add iZiSwap strategy to support Kroma priceStrategy: undefined, @@ -1269,8 +1270,8 @@ export const CHAINS = { chainId: ChainId.KromaSepolia, name: 'Kroma Sepolia', logoUrl: '/assets/images/vendor/chains/kroma.svg', - explorerUrl: 'https://sepolia.kromascan.com', - etherscanCompatibleApiUrl: 'https://api-sepolia.kromascan.com/api', + explorerUrl: 'https://blockscout.sepolia.kroma.network/', + etherscanCompatibleApiUrl: 'https://blockscout.sepolia.kroma.network/api', deployedContracts: { ...MULTICALL }, isTestnet: true, correspondingMainnetChainId: ChainId.Kroma,