From 75a48ac7f48d6125c01feef392d26b16e95c3d23 Mon Sep 17 00:00:00 2001 From: Bob Date: Thu, 24 Oct 2024 00:03:06 -0500 Subject: [PATCH] fix: update paraswap token list urls (#82) Co-authored-by: Bob Lu --- .changeset/modern-lies-exist.md | 5 +++++ src/logics/paraswap-v5/configs.ts | 24 +++++++++++++++++------- 2 files changed, 22 insertions(+), 7 deletions(-) create mode 100644 .changeset/modern-lies-exist.md diff --git a/.changeset/modern-lies-exist.md b/.changeset/modern-lies-exist.md new file mode 100644 index 00000000..c2e24acf --- /dev/null +++ b/.changeset/modern-lies-exist.md @@ -0,0 +1,5 @@ +--- +'@protocolink/logics': patch +--- + +update paraswap token list urls diff --git a/src/logics/paraswap-v5/configs.ts b/src/logics/paraswap-v5/configs.ts index 62380fa4..fcf2703d 100644 --- a/src/logics/paraswap-v5/configs.ts +++ b/src/logics/paraswap-v5/configs.ts @@ -12,8 +12,8 @@ export const configs: Config[] = [ tokenTransferProxyAddress: '0x216B4B4Ba9F3e719726886d34a177484278Bfcae', tokenListUrls: [ 'https://raw.githubusercontent.com/paraswap/community-token-list/master/src/sources/paraswap.extralist.json', - 'https://wispy-bird-88a7.uniswap.workers.dev/?url=http://tokenlist.aave.eth.link', - 'https://gateway.ipfs.io/ipns/tokens.uniswap.org', + 'https://raw.githubusercontent.com/bgd-labs/aave-address-book/main/tokenlist.json', + 'https://tokens.uniswap.org', ], }, { @@ -22,19 +22,24 @@ export const configs: Config[] = [ tokenListUrls: [ 'https://static.optimism.io/optimism.tokenlist.json', 'https://tokens.coingecko.com/optimistic-ethereum/all.json', + 'https://raw.githubusercontent.com/bgd-labs/aave-address-book/main/tokenlist.json', ], }, { chainId: common.ChainId.bnb, tokenTransferProxyAddress: '0x216B4B4Ba9F3e719726886d34a177484278Bfcae', - tokenListUrls: ['https://tokens.pancakeswap.finance/pancakeswap-extended.json'], + tokenListUrls: [ + 'https://tokens.pancakeswap.finance/pancakeswap-extended.json', + 'https://raw.githubusercontent.com/bgd-labs/aave-address-book/main/tokenlist.json', + ], }, { chainId: common.ChainId.polygon, tokenTransferProxyAddress: '0x216B4B4Ba9F3e719726886d34a177484278Bfcae', tokenListUrls: [ - 'https://unpkg.com/quickswap-default-token-list@1.2.74/build/quickswap-default.tokenlist.json', - 'https://unpkg.com/@cometh-game/default-token-list@1.0.40/build/comethswap-default.tokenlist.json', + 'https://unpkg.com/quickswap-default-token-list@latest/build/quickswap-default.tokenlist.json', + 'https://unpkg.com/@cometh-game/default-token-list@latest/build/comethswap-default.tokenlist.json', + 'https://raw.githubusercontent.com/bgd-labs/aave-address-book/main/tokenlist.json', 'https://tokens.coingecko.com/polygon-pos/all.json', ], }, @@ -46,15 +51,19 @@ export const configs: Config[] = [ { chainId: common.ChainId.base, tokenTransferProxyAddress: '0x93aAAe79a53759cD164340E4C8766E4Db5331cD7', - tokenListUrls: ['https://static.optimism.io/optimism.tokenlist.json'], + tokenListUrls: [ + 'https://static.optimism.io/optimism.tokenlist.json', + 'https://raw.githubusercontent.com/bgd-labs/aave-address-book/main/tokenlist.json', + ], }, { chainId: common.ChainId.arbitrum, tokenTransferProxyAddress: '0x216B4B4Ba9F3e719726886d34a177484278Bfcae', tokenListUrls: [ 'https://raw.githubusercontent.com/paraswap/community-token-list/master/src/sources/paraswap.extralist.json', - 'https://tokenlist.arbitrum.io/ArbTokenLists/arbed_arb_whitelist_era.json', + 'https://bridge.arbitrum.io/token-list-42161.json', 'https://tokens.coingecko.com/arbitrum-one/all.json', + 'https://raw.githubusercontent.com/bgd-labs/aave-address-book/main/tokenlist.json', ], }, { @@ -64,6 +73,7 @@ export const configs: Config[] = [ 'https://raw.githubusercontent.com/pangolindex/tokenlists/main/pangolin.tokenlist.json', 'https://raw.githubusercontent.com/traderjoe-xyz/joe-tokenlists/main/mc.tokenlist.json', 'https://tokens.coingecko.com/avalanche/all.json', + 'https://raw.githubusercontent.com/bgd-labs/aave-address-book/main/tokenlist.json', ], }, ];