Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
fix: update uniswap 02 router address (#113)
Browse files Browse the repository at this point in the history
* update universap 02 router address

* Fix code style issues with Prettier

* delete .idea

* fix arbitrum uniswap02router address

* add mainnet address

* add georli and sepolia

* delete .idea

---------

Co-authored-by: Lint Action <[email protected]>
  • Loading branch information
jsy1218 and lint-action authored Feb 9, 2024
1 parent 5365ae4 commit d7e0093
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,21 @@ export const V2_FACTORY_ADDRESSES: AddressMap = constructSameAddressMap(V2_FACTO
ChainId.AVALANCHE,
ChainId.BASE
])
/**
* @deprecated use V2_ROUTER_ADDRESSES instead
*/
export const V2_ROUTER_ADDRESS = '0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D'
export const V2_ROUTER_ADDRESSES: AddressMap = constructSameAddressMap(V2_ROUTER_ADDRESS)
export const V2_ROUTER_ADDRESSES: AddressMap = {
[ChainId.MAINNET]: '0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D',
[ChainId.GOERLI]: '0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D',
[ChainId.SEPOLIA]: '0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D',
[ChainId.ARBITRUM_ONE]: '0x4752ba5dbc23f44d87826276bf6fd6b1c372ad24',
[ChainId.OPTIMISM]: '0x4a7b5da61326a6379179b40d00f57e5bbdc962c2',
[ChainId.BASE]: '0x4752ba5dbc23f44d87826276bf6fd6b1c372ad24',
[ChainId.AVALANCHE]: '0x4752ba5dbc23f44d87826276bf6fd6b1c372ad24',
[ChainId.BNB]: '0x4752ba5dbc23f44d87826276bf6fd6b1c372ad24',
[ChainId.POLYGON]: '0xedf6066a2b290c185783862c7f4776a2c8077ad1'
}

// Networks that share most of the same addresses i.e. Mainnet, Goerli, Optimism, Arbitrum, Polygon
const DEFAULT_ADDRESSES: ChainAddresses = {
Expand Down

0 comments on commit d7e0093

Please sign in to comment.