diff --git a/CHANGELOG.md b/CHANGELOG.md index e2061f2e..567cdc84 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## Unreleased +- added: Mainnet codes for Arbitrum, Axelar, Base, and Cosmos Hub +- changed: (CEX) Only allow quotes with known mainnet network codes + ## 2.0.2 (2023-02-01) - fixed: Do not crash at load time if `BigInt` is not present. diff --git a/src/swap/central/exolix.ts b/src/swap/central/exolix.ts index 38e47020..cad1009e 100644 --- a/src/swap/central/exolix.ts +++ b/src/swap/central/exolix.ts @@ -45,17 +45,8 @@ const asInitOptions = asObject({ }) const INVALID_CURRENCY_CODES: InvalidCurrencyCodes = { - from: { - binancesmartchain: 'allCodes', - ethereum: ['MATIC'], - optimism: 'allCodes', - polygon: 'allCodes' - }, + from: {}, to: { - binancesmartchain: 'allCodes', - ethereum: ['MATIC'], - optimism: 'allCodes', - polygon: 'allCodes', zcash: ['ZEC'] } } diff --git a/src/swap/central/godex.ts b/src/swap/central/godex.ts index 21069c99..4b6ff5ea 100644 --- a/src/swap/central/godex.ts +++ b/src/swap/central/godex.ts @@ -82,21 +82,10 @@ const asQuoteInfo = asObject({ const INVALID_CURRENCY_CODES: InvalidCurrencyCodes = { from: { - avalanche: 'allTokens', - celo: 'allTokens', - digibyte: 'allCodes', - ethereum: ['MATIC'], - fantom: 'allTokens', - optimism: ['VELO'], - polygon: 'allCodes' + digibyte: 'allCodes' }, to: { - avalanche: 'allTokens', - celo: 'allTokens', - ethereum: ['MATIC'], - fantom: 'allTokens', - polygon: 'allCodes', - zcash: ['ZEC'] // ChangeHero doesn't support sending to unified addresses + zcash: ['ZEC'] // Godex doesn't support sending to unified addresses } }