From dd18d55f2c9f002d197222f7d2b56975a1cd6c18 Mon Sep 17 00:00:00 2001 From: 0xprinc Date: Wed, 18 Dec 2024 17:08:13 +0530 Subject: [PATCH 1/5] added arbitrum configs --- src/dex/fluid-dex/config.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/dex/fluid-dex/config.ts b/src/dex/fluid-dex/config.ts index 48b14862e..980c07325 100644 --- a/src/dex/fluid-dex/config.ts +++ b/src/dex/fluid-dex/config.ts @@ -11,6 +11,13 @@ export const FluidDexConfig: DexConfigMap = { dexFactory: '0x91716C4EDA1Fb55e84Bf8b4c7085f84285c19085', }, }, + [Network.ARBITRUM]: { + commonAddresses: { + liquidityProxy: '0x52Aa899454998Be5b000Ad077a46Bbe360F4e497', + resolver: '0xb8f526718FF58758E256D9aD86bC194a9ff5986D', + dexFactory: '0x91716C4EDA1Fb55e84Bf8b4c7085f84285c19085', + }, + }, }, }; From 2c76968ac5bacf53d48595b7cec371925744e80b Mon Sep 17 00:00:00 2001 From: Alexander Burkut Date: Wed, 18 Dec 2024 15:02:40 +0300 Subject: [PATCH 2/5] 4.0.9-fluid-dex-arb.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5f0a33edf..969ebead8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@paraswap/dex-lib", - "version": "4.0.8", + "version": "4.0.9-fluid-dex-arb.0", "main": "build/index.js", "types": "build/index.d.ts", "repository": "https://github.com/paraswap/paraswap-dex-lib", From 1599f997d7a1d606bcbd344eae3b00bafe58258a Mon Sep 17 00:00:00 2001 From: Alexander Burkut Date: Thu, 19 Dec 2024 11:18:58 +0300 Subject: [PATCH 3/5] add e2e tests --- src/dex/fluid-dex/fluid-dex-e2e.test.ts | 38 +++++++++++++++++++++++++ tests/constants-e2e.ts | 7 ++++- 2 files changed, 44 insertions(+), 1 deletion(-) diff --git a/src/dex/fluid-dex/fluid-dex-e2e.test.ts b/src/dex/fluid-dex/fluid-dex-e2e.test.ts index 333aed44d..41ca4f4b5 100644 --- a/src/dex/fluid-dex/fluid-dex-e2e.test.ts +++ b/src/dex/fluid-dex/fluid-dex-e2e.test.ts @@ -169,6 +169,44 @@ describe('FluidDex E2E', () => { ); }); }); + + describe('Arbitrum', () => { + const network = Network.ARBITRUM; + + describe('ETH -> wstETH', () => { + const tokenASymbol: string = 'wstETH'; + const tokenBSymbol: string = 'ETH'; + + const tokenAAmount: string = '1000000000000000'; + const tokenBAmount: string = '1000000000000000'; + + testForNetwork( + network, + dexKey, + tokenASymbol, + tokenBSymbol, + tokenAAmount, + tokenBAmount, + ); + }); + + describe('ETH -> weETH', () => { + const tokenBSymbol: string = 'ETH'; + const tokenASymbol: string = 'weETH'; + + const tokenAAmount: string = '1000000000000000'; + const tokenBAmount: string = '1000000000000000'; + + testForNetwork( + network, + dexKey, + tokenASymbol, + tokenBSymbol, + tokenAAmount, + tokenBAmount, + ); + }); + }); }); function NewColReservesOne(): CollateralReserves { diff --git a/tests/constants-e2e.ts b/tests/constants-e2e.ts index 744baed67..58a825ebb 100644 --- a/tests/constants-e2e.ts +++ b/tests/constants-e2e.ts @@ -1308,6 +1308,10 @@ export const Tokens: { address: '0x5979D7b546E38E414F7E9822514be443A4800529', decimals: 18, }, + weETH: { + address: '0x35751007a407ca6FEFfE80b3cB397736D2cf4dbe', + decimals: 18, + }, RDPX: { address: '0x32eb7902d4134bf98a28b963d26de779af92a212', decimals: 18, @@ -1957,6 +1961,7 @@ export const Holders: { SEN: '0x76d39045d856caf9bfae12ba611ca4a94449a4f1', RDPX: '0x115b818593c00da4f9d1d8f5ce7d7f88cce48bee', ARB: '0xb65edba80a3d81903ecd499c8eb9cf0e19096bd0', + weETH: '0xE957D8386d20D077F511E86672Fc7ee4b83067da', ETH: '0xfa0a32e5c33b6123122b6b68099001d9371d14e9', DAI: '0x2d070ed1321871841245d8ee5b84bd2712644322', WETH: '0x3368e17064c9ba5d6f1f93c4c678bea00cc78555', @@ -1983,7 +1988,7 @@ export const Holders: { LINK: '0x7f1fa204bb700853d36994da19f830b6ad18455c', DMT: '0x40414f138eb2ef938e6c3629897ef99d4464d4e8', PENDLE: '0x5bdf85216ec1e38d6458c870992a69e38e03f7ef', - wstETH: '0x3c22ec75ea5D745c78fc84762F7F1E6D82a2c5BF', + wstETH: '0xb3843D7BBb8530f95e5bEaBeff451fA5380510a8', EURA: '0x6dd7b830896b56812aa667bdd14b71c8b3252f8e', stEUR: '0xE588611e7A2392507879E3be80531654b85C16aA', USDA: '0xa86ff337db9107b54862d30d1a598f8be847b05e', From 0774ce61e203c4547ba00c826c07c75360af9c67 Mon Sep 17 00:00:00 2001 From: Alexander Burkut Date: Thu, 19 Dec 2024 11:19:43 +0300 Subject: [PATCH 4/5] 4.0.9-fluid-dex-arb.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 969ebead8..2bfc8b479 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@paraswap/dex-lib", - "version": "4.0.9-fluid-dex-arb.0", + "version": "4.0.9-fluid-dex-arb.1", "main": "build/index.js", "types": "build/index.d.ts", "repository": "https://github.com/paraswap/paraswap-dex-lib", From d7388dd2242129b570a1e6c01220cf458c14e7de Mon Sep 17 00:00:00 2001 From: Alexander Burkut Date: Thu, 19 Dec 2024 14:08:04 +0300 Subject: [PATCH 5/5] 4.0.9 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 2bfc8b479..f38f3ecd0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@paraswap/dex-lib", - "version": "4.0.9-fluid-dex-arb.1", + "version": "4.0.9", "main": "build/index.js", "types": "build/index.d.ts", "repository": "https://github.com/paraswap/paraswap-dex-lib",