Skip to content

Commit

Permalink
revert more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fengtality committed Jul 26, 2024
1 parent cca1510 commit c8cb59d
Showing 1 changed file with 37 additions and 7 deletions.
44 changes: 37 additions & 7 deletions src/connectors/uniswap/uniswap.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ export namespace UniswapConfig {

export const config: NetworkConfig = {
allowedSlippage: ConfigManagerV2.getInstance().get(
`uniswap.allowedSlippage`,
`uniswap.allowedSlippage`
),
gasLimitEstimate: ConfigManagerV2.getInstance().get(
`uniswap.gasLimitEstimate`,
`uniswap.gasLimitEstimate`
),
ttl: ConfigManagerV2.getInstance().get(`uniswap.ttl`),
maximumHops: ConfigManagerV2.getInstance().get(`uniswap.maximumHops`),
Expand Down Expand Up @@ -65,19 +65,49 @@ export namespace UniswapConfig {
availableNetworks: [
{
chain: 'ethereum',
networks: ['mainnet', 'goerli', 'arbitrum', 'optimism'],
networks: Object.keys(
ConfigManagerV2.getInstance().get('uniswap.contractAddresses')
).filter((network) =>
Object.keys(
ConfigManagerV2.getInstance().get('ethereum.networks')
).includes(network)
),
},
{ chain: 'polygon',
networks: ['mainnet', 'mumbai']
networks: Object.keys(
ConfigManagerV2.getInstance().get('uniswap.contractAddresses')
).filter((network) =>
Object.keys(
ConfigManagerV2.getInstance().get('polygon.networks')
).includes(network)
),
},
{ chain: 'binance-smart-chain',
networks: ['mainnet']
networks: Object.keys(
ConfigManagerV2.getInstance().get('uniswap.contractAddresses')
).filter((network) =>
Object.keys(
ConfigManagerV2.getInstance().get('binance-smart-chain.networks')
).includes(network)
),
},
{ chain: 'avalanche',
networks: ['avalanche']
networks: Object.keys(
ConfigManagerV2.getInstance().get('uniswap.contractAddresses')
).filter((network) =>
Object.keys(
ConfigManagerV2.getInstance().get('avalanche.networks')
).includes(network)
),
},
{ chain: 'celo',
networks: ['celo']
networks: Object.keys(
ConfigManagerV2.getInstance().get('uniswap.contractAddresses')
).filter((network) =>
Object.keys(
ConfigManagerV2.getInstance().get('celo.networks')
).includes(network)
),
},
],
useRouter: ConfigManagerV2.getInstance().get(`uniswap.useRouter`),
Expand Down

0 comments on commit c8cb59d

Please sign in to comment.