Skip to content

Commit

Permalink
feat(token-lists): remove outdated token lists (#5233)
Browse files Browse the repository at this point in the history
* feat: remove outdated token lists

* feat: add curve's list to base

* feat: add superchain list to base
  • Loading branch information
alfetopito authored Dec 20, 2024
1 parent 7b9ae46 commit 6f73dfc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 54 deletions.
18 changes: 1 addition & 17 deletions apps/widget-configurator/src/app/configurator/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,28 +22,12 @@ export const TRADE_MODES = [TradeType.SWAP, TradeType.LIMIT, TradeType.ADVANCED,
// Sourced from https://tokenlists.org/
export const DEFAULT_TOKEN_LISTS: TokenListItem[] = [
{ url: 'https://files.cow.fi/tokens/CowSwap.json', enabled: true },
{ url: 'https://files.cow.fi/tokens/CoinGecko.json', enabled: true },
{ url: 'https://tokens.1inch.eth.link', enabled: false },
{ url: 'https://tokenlist.aave.eth.link', enabled: false },
{ url: 'https://datafi.theagora.eth.link', enabled: false },
{ url: 'https://defi.cmc.eth.link', enabled: false },
{ url: 'https://stablecoin.cmc.eth.link', enabled: false },
{ url: 'https://erc20.cmc.eth.link', enabled: false },
{
url: 'https://raw.githubusercontent.com/compound-finance/token-list/master/compound.tokenlist.json',
enabled: false,
},
{ url: 'https://tokenlist.dharma.eth.link', enabled: false },
{ url: 'https://raw.githubusercontent.com/cowprotocol/token-lists/main/src/public/CoinGecko.1.json', enabled: true },
{ url: 'https://www.gemini.com/uniswap/manifest.json', enabled: false },
{ url: 'https://messari.io/tokenlist/messari-verified', enabled: false },
{ url: 'https://uniswap.mycryptoapi.com', enabled: false },
{ url: 'https://static.optimism.io/optimism.tokenlist.json', enabled: false },
{ url: 'https://app.tryroll.com/tokens.json', enabled: false },
{ url: 'https://raw.githubusercontent.com/SetProtocol/uniswap-tokenlist/main/set.tokenlist.json', enabled: false },
{ url: 'https://synths.snx.eth.link', enabled: false },
{ url: 'https://testnet.tokenlist.eth.link', enabled: false },
{ url: 'https://ipfs.io/ipns/tokens.uniswap.org', enabled: false },
{ url: 'https://wrapped.tokensoft.eth.link', enabled: false },
]
// TODO: Move default palette to a new lib that only exposes the palette colors.
// This way it can be consumed by both the configurator and the widget.
Expand Down
46 changes: 9 additions & 37 deletions libs/tokens/src/const/tokensList.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,42 +12,6 @@
},
{
"priority": 3,
"source": "https://raw.githubusercontent.com/compound-finance/token-list/master/compound.tokenlist.json"
},
{
"priority": 4,
"source": "tokenlist.aave.eth"
},
{
"priority": 5,
"source": "synths.snx.eth"
},
{
"priority": 6,
"source": "wrapped.tokensoft.eth"
},
{
"priority": 7,
"source": "https://raw.githubusercontent.com/SetProtocol/uniswap-tokenlist/main/set.tokenlist.json"
},
{
"priority": 8,
"source": "https://raw.githubusercontent.com/opynfinance/opyn-tokenlist/master/opyn-squeeth-tokenlist.json"
},
{
"priority": 9,
"source": "https://app.tryroll.com/tokens.json"
},
{
"priority": 10,
"source": "defi.cmc.eth"
},
{
"priority": 11,
"source": "stablecoin.cmc.eth"
},
{
"priority": 12,
"source": "https://curvefi.github.io/curve-assets/ethereum.json"
}
],
Expand Down Expand Up @@ -124,6 +88,14 @@
"priority": 3,
"enabledByDefault": true,
"source": "https://raw.githubusercontent.com/cowprotocol/token-lists/main/src/public/Uniswap.8453.json"
},
{
"priority": 4,
"source": "https://curvefi.github.io/curve-assets/base.json"
},
{
"priority": 5,
"source": "https://static.optimism.io/optimism.tokenlist.json"
}
]
}
}

0 comments on commit 6f73dfc

Please sign in to comment.