Skip to content

Commit

Permalink
Add woeth-eth support (#683)
Browse files Browse the repository at this point in the history
  • Loading branch information
piekczyk authored Jun 5, 2024
1 parent 57e3529 commit 2e082dd
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/addresses/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oasisdex/addresses",
"version": "0.1.69",
"version": "0.1.70",
"typings": "lib/index.d.ts",
"types": "lib/index.d.ts",
"main": "lib/index.js",
Expand Down
8 changes: 8 additions & 0 deletions packages/deploy-configurations/configs/arbitrum.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,10 @@ export const config: SystemConfig = {
address: '0x82aF49447D8a07e3bd95BD0d56f35241523fBab1',
serviceRegistryName: SERVICE_REGISTRY_NAMES.common.WETH,
},
WOETH: {
name: 'WOETH',
address: '0xd8724322f44e5c58d7a815f542036fb17dbbf839',
},
WLD: {
name: 'WLD',
address: '0x0000000000000000000000000000000000000000',
Expand Down Expand Up @@ -1014,6 +1018,10 @@ export const config: SystemConfig = {
name: 'AjnaPoolPairs_MOOAURAGYROAUSDCN/AUSDTNUSDC',
address: '0x263482c6879677494d4c51b5577188a722ec7f8c',
},
AjnaPoolPairs_WOETHETH: {
name: 'AjnaPoolPairs_WOETHETH',
address: '0xd36E05257143cD89B51F928951d0e803f84C8F4d',
},
AjnaPoolInfo: {
name: 'AjnaPoolInfo',
address: '0x8a7F5aFb7E3c3fD1f3Cc9D874b454b6De11EBbC9',
Expand Down
8 changes: 8 additions & 0 deletions packages/deploy-configurations/configs/mainnet.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,10 @@ export const config: SystemConfig = {
address: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
serviceRegistryName: SERVICE_REGISTRY_NAMES.common.WETH,
},
WOETH: {
name: 'WOETH',
address: '0xdcee70654261af21c44c093c300ed3bb97b78192',
},
WLD: {
name: 'WLD',
address: '0x163f8c2467924be0ae7b5347228cabf260318753',
Expand Down Expand Up @@ -1716,6 +1720,10 @@ export const config: SystemConfig = {
name: 'AjnaPoolPairs_UNI-V2DAI',
address: '0xc71ad394818474f87f27a5525243de52c278dcb8',
},
AjnaPoolPairs_WOETHETH: {
name: 'AjnaPoolPairs_WOETHETH',
address: '0xDD433012C0d99AEbE83FFf55B4D405831DE85fbc',
},
AjnaPoolInfo: {
name: 'AjnaPoolInfo',
address: '0x30c5eF2997d6a882DE52c4ec01B6D0a5e5B4fAAE',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ export const commonDefaults = {
name: 'PTWEETH',
address: ADDRESS_ZERO,
},
WOETH: {
name: 'WOETH',
address: ADDRESS_ZERO,
},
'UNI-V2': {
name: 'UNI-V2',
address: ADDRESS_ZERO,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,4 +257,8 @@ export const emptyAjnaPools = {
name: 'AjnaPoolPairs_SUSDCYUSDC',
address: ADDRESS_ZERO,
},
AjnaPoolPairs_WOETHETH: {
name: 'AjnaPoolPairs_WOETHETH',
address: ADDRESS_ZERO,
},
} as const
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export type AjnaProtocol =
| 'AjnaPoolPairs_UNI-V2DAI'
| 'AjnaPoolPairs_MOOAURAGYROAUSDCN/AUSDTNUSDC'
| 'AjnaPoolPairs_SUSDCYUSDC'
| 'AjnaPoolPairs_WOETHETH'
| 'AjnaProxyActions'
| 'AjnaRewardsClaimer'
| 'AjnaRewardsManager'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export type Tokens =
| 'WBTC'
| 'WETH'
| 'WEETH'
| 'WOETH'
| 'WLD'
| 'WSTETH'
| 'XETH'
Expand Down
2 changes: 1 addition & 1 deletion packages/dma-library/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oasisdex/dma-library",
"version": "0.6.53",
"version": "0.6.54",
"typings": "lib/index.d.ts",
"types": "lib/index.d.ts",
"main": "lib/index.js",
Expand Down
1 change: 1 addition & 0 deletions packages/dma-library/src/utils/swap/fee-resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export function isCorrelatedPosition(symbolA: string, symbolB: string) {
'AWSTETH',
'ASETH',
'CWETHV3',
'WOETH',
], // ETH correlated assets
['WBTC', 'TBTC'], // BTC correlated assets
['USDC', 'DAI', 'GHO', 'SDAI', 'USDT', 'CDAI', 'AUSDC', 'PYUSD'], // USDC correlated assets
Expand Down

0 comments on commit 2e082dd

Please sign in to comment.