Skip to content

Commit

Permalink
fix: paraswap v5 test getTokenListUrlsi, change base chain token list…
Browse files Browse the repository at this point in the history
… url
  • Loading branch information
Bob Lu committed Jun 25, 2024
1 parent 0389a60 commit f2cc556
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/logics/paraswap-v5/configs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const configs: Config[] = [
{
chainId: common.ChainId.base,
tokenTransferProxyAddress: '0x93aAAe79a53759cD164340E4C8766E4Db5331cD7',
tokenListUrls: ['https://tokens.coingecko.com/base/all.json'],
tokenListUrls: ['https://static.optimism.io/optimism.tokenlist.json'],
},
{
chainId: common.ChainId.arbitrum,
Expand Down
11 changes: 10 additions & 1 deletion src/logics/paraswap-v5/logic.swap-token.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,19 @@ import * as common from '@protocolink/common';
import { constants, utils } from 'ethers';
import * as core from '@protocolink/core';
import { expect } from 'chai';
import { getTokenTransferProxyAddress } from './configs';
import { getTokenListUrls, getTokenTransferProxyAddress } from './configs';
import { mainnetTokens } from '@protocolink/test-helpers';

describe('ParaswapV5 SwapTokenLogic', function () {
context('Test getTokenListUrls', function () {
SwapTokenLogic.supportedChainIds.forEach((chainId) => {
it(`network: ${common.toNetworkId(chainId)}`, function () {
const urls = getTokenListUrls(chainId);
expect(urls).to.have.lengthOf.above(0);
});
});
});

context('Test getTokenList', async function () {
SwapTokenLogic.supportedChainIds.forEach((chainId) => {
it(`network: ${common.toNetworkId(chainId)}`, async function () {
Expand Down

0 comments on commit f2cc556

Please sign in to comment.