Skip to content

Commit

Permalink
chore: bump sor to 4.18.2 - fix: support mixed quote on rest of L2s (#…
Browse files Browse the repository at this point in the history
…831)

- **What kind of change does this PR introduce?** (Bug fix, feature, docs update, ...)
fix

- **What is the current behavior?** (You can also link to an open issue here)
we don't support mixed quote on arb, polygon, bnb, zora, worldchain, avax, op

- **What is the new behavior (if this is a feature change)?**
we support mixed quote on arb, polygon, bnb, zora, worldchain, avax, op

- **Other information**:
  • Loading branch information
jsy1218 authored Feb 20, 2025
1 parent 02e1aed commit fa6fe83
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@uniswap/smart-order-router",
"version": "4.18.1",
"version": "4.18.2",
"description": "Uniswap Smart Order Router",
"main": "build/main/index.js",
"typings": "build/main/index.d.ts",
Expand Down
14 changes: 14 additions & 0 deletions src/util/addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,13 @@ export const MIXED_ROUTE_QUOTER_V1_ADDRESSES: AddressMap = {
CHAIN_TO_ADDRESSES_MAP[ChainId.GOERLI].mixedRouteQuoterV1Address,
[ChainId.BASE]: '0xc7A3b85D43fF66AD98A895dE0EaE4b9e24C932D7',
[ChainId.UNICHAIN]: '0x48C0648E357639B446C99a6c7316A3eaFEaB35aE',
[ChainId.ARBITRUM_ONE]: '0x9D0F15f2cf58655fDDcD1EE6129C547fDaeD01b1',
[ChainId.POLYGON]: '0x9d0f15f2cf58655fddcd1ee6129c547fdaed01b1',
[ChainId.OPTIMISM]: '0xf0c802DCb0cF1C4f7B953756b49D940EED190221',
[ChainId.AVALANCHE]: '0x9D0F15f2cf58655fDDcD1EE6129C547fDaeD01b1',
[ChainId.BNB]: '0xf0c802DCb0cF1C4f7B953756b49D940EED190221',
[ChainId.WORLDCHAIN]: '0x9D0F15f2cf58655fDDcD1EE6129C547fDaeD01b1',
[ChainId.ZORA]: '0x5f739c790a48E97eec0efb81bab5D152c0A0ecA0',
};

export const MIXED_ROUTE_QUOTER_V2_ADDRESSES: AddressMap = {
Expand All @@ -151,6 +158,13 @@ export const MIXED_ROUTE_QUOTER_V2_ADDRESSES: AddressMap = {
[ChainId.MAINNET]: '0xE63C5F5005909E96b5aA9CE10744CCE70eC16CC3',
[ChainId.BASE]: '0xc7A3b85D43fF66AD98A895dE0EaE4b9e24C932D7',
[ChainId.UNICHAIN]: '0x48C0648E357639B446C99a6c7316A3eaFEaB35aE',
[ChainId.ARBITRUM_ONE]: '0x9D0F15f2cf58655fDDcD1EE6129C547fDaeD01b1',
[ChainId.POLYGON]: '0x9d0f15f2cf58655fddcd1ee6129c547fdaed01b1',
[ChainId.OPTIMISM]: '0xf0c802DCb0cF1C4f7B953756b49D940EED190221',
[ChainId.AVALANCHE]: '0x9D0F15f2cf58655fDDcD1EE6129C547fDaeD01b1',
[ChainId.BNB]: '0xf0c802DCb0cF1C4f7B953756b49D940EED190221',
[ChainId.WORLDCHAIN]: '0x9D0F15f2cf58655fDDcD1EE6129C547fDaeD01b1',
[ChainId.ZORA]: '0x5f739c790a48E97eec0efb81bab5D152c0A0ecA0',
};

export const UNISWAP_MULTICALL_ADDRESSES: AddressMap = {
Expand Down
7 changes: 7 additions & 0 deletions src/util/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,13 @@ export const MIXED_SUPPORTED = [
ChainId.BASE,
ChainId.UNICHAIN,
ChainId.BASE,
ChainId.ARBITRUM_ONE,
ChainId.POLYGON,
ChainId.OPTIMISM,
ChainId.AVALANCHE,
ChainId.BNB,
ChainId.WORLDCHAIN,
ChainId.ZORA,
];

export const HAS_L1_FEE = [
Expand Down

0 comments on commit fa6fe83

Please sign in to comment.