Skip to content

Commit

Permalink
Feat(paraswap): add optimism to swap
Browse files Browse the repository at this point in the history
  • Loading branch information
Quazia committed Oct 31, 2023
1 parent ac93769 commit d0a985b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/paraswap/src/chain-ids.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ export const ETH_CHAIN_ID = 1
export const ARB_ONE_CHAIN_ID = 42161
export const OPTIMISM_CHAIN_ID = 10

export const SWAP_CHAIN_ID_ARRAY = [ETH_CHAIN_ID, ARB_ONE_CHAIN_ID]
export const SWAP_CHAIN_ID_ARRAY = [ETH_CHAIN_ID, ARB_ONE_CHAIN_ID, OPTIMISM_CHAIN_ID]
export const STAKE_CHAIN_ID_ARRAY = [ETH_CHAIN_ID, OPTIMISM_CHAIN_ID]
20 changes: 20 additions & 0 deletions packages/paraswap/src/contract-addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,26 @@ export const DEFAULT_SWAP_TOKEN_LIST: {
'0xaf88d065e77c8cc2239327c5edb3a432268e5831',
'0xf97f4df75117a78c1a5a0dbb814af92458539fb4',
],
[OPTIMISM_CHAIN_ID]: [
'0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee',
'0x4200000000000000000000000000000000000006',
'0x4200000000000000000000000000000000000042',
'0x76fb31fb4af56892a25e32cfc43de717950c9278',
'0xda10009cbd5d07dd0cecc66161fc93d7c9000da1',
'0x94b008aa00579c1307b0ef2c499ad98a8ce58e58',
'0x350a791bfc2c21f9ed5d10980dad2e2638ffa7f6',
'0x8c6f28f2f1a3c87f0f938b96d27520d9751ec8d9',
'0x7f5c764cbc14f9669b88837ca1490cca17c31607',
'0x68f180fcce6836688e9084f035309e29bf0a2095',
'0xf329e36c7bf6e5e86ce2150875a84ce77f477375',
'0x82e64f49ed5ec1bc6e43dad4fc8af9bb3a2312ee',
'0x6ab707aca953edaefbc4fd23ba73294241490620',
'0x191c10aa4af7c30e871e70c95db0e4eb77237530',
'0x6d80113e533a2c0fe82eabd35f1875dcea89ea97',
'0x625e7708f30ca75bfd92586e17077590c60eb4cd',
'0x078f358208685046a11c85e8ad32895ded33a249',
'0xe50fa9b3c56ffb159cb0fca61f5c9d750e8128c8'
]
} as const

export const DEFAULT_STAKE_TOKEN_LIST: {
Expand Down

0 comments on commit d0a985b

Please sign in to comment.