From 9a1f32c877cc19b9f4e77547d2f18bfb8ac1b985 Mon Sep 17 00:00:00 2001 From: Michalina Date: Mon, 18 Dec 2023 11:49:22 +0100 Subject: [PATCH] Enable swaps on Sepolia testnet As Goerli testnets becomes deprecated wwith end of 2023, we've been migrating to another testnet - Sepolia. Up to this point we were not able to support swaps there, as 0x did not support Sepolia. But recently 0x created theAPI endpoint for Sepolia, so we're now able to use their services. Read more: https://0x.org/docs/0x-swap-api/api-references/overview. --- background/constants/networks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/background/constants/networks.ts b/background/constants/networks.ts index 835ad75f9..8a0bfcfdc 100644 --- a/background/constants/networks.ts +++ b/background/constants/networks.ts @@ -186,7 +186,7 @@ export const CHAIN_ID_TO_0X_API_BASE: { [POLYGON.chainID]: "polygon.api.0x.org", [OPTIMISM.chainID]: "optimism.api.0x.org", [GOERLI.chainID]: "goerli.api.0x.org", - // TODO: Add Swap API for Sepolia once 0x supports it. + [SEPOLIA.chainID]: "sepolia.api.0x.org", [ARBITRUM_ONE.chainID]: "arbitrum.api.0x.org", [AVALANCHE.chainID]: "avalanche.api.0x.org", [BINANCE_SMART_CHAIN.chainID]: "bsc.api.0x.org",