Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: remove outdated token lists #5233

Merged
merged 4 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
}
]
}
}
Loading