Skip to content

Commit

Permalink
Remove chain and token restrictions
Browse files Browse the repository at this point in the history
  • Loading branch information
peachbits committed Feb 9, 2024
1 parent 56a65ad commit 3ad30a9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 23 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
11 changes: 1 addition & 10 deletions src/swap/central/exolix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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']
}
}
Expand Down
15 changes: 2 additions & 13 deletions src/swap/central/godex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit 3ad30a9

Please sign in to comment.