@paraswap/dex-lib 4.0.8 → 4.0.9-fluid-dex-arb.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -11,6 +11,13 @@ exports.FluidDexConfig = {
|
|
|
11
11
|
dexFactory: '0x91716C4EDA1Fb55e84Bf8b4c7085f84285c19085',
|
|
12
12
|
},
|
|
13
13
|
},
|
|
14
|
+
[constants_1.Network.ARBITRUM]: {
|
|
15
|
+
commonAddresses: {
|
|
16
|
+
liquidityProxy: '0x52Aa899454998Be5b000Ad077a46Bbe360F4e497',
|
|
17
|
+
resolver: '0xb8f526718FF58758E256D9aD86bC194a9ff5986D',
|
|
18
|
+
dexFactory: '0x91716C4EDA1Fb55e84Bf8b4c7085f84285c19085',
|
|
19
|
+
},
|
|
20
|
+
},
|
|
14
21
|
},
|
|
15
22
|
};
|
|
16
23
|
// Uniswap takes total gas of 125k = 21k base gas & 104k swap (this is when user has token balance)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/dex/fluid-dex/config.ts"],"names":[],"mappings":";;;AAEA,+CAA0C;AAE7B,QAAA,cAAc,GAA4B;IACrD,QAAQ,EAAE;QACR,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE;YACjB,eAAe,EAAE;gBACf,cAAc,EAAE,4CAA4C;gBAC5D,QAAQ,EAAE,4CAA4C;gBACtD,UAAU,EAAE,4CAA4C;aACzD;SACF;KACF;CACF,CAAC;AAEF,mGAAmG;AACnG,kGAAkG;AAClG,2DAA2D;AAC9C,QAAA,kBAAkB,GAAG,OAAO,CAAC"}
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/dex/fluid-dex/config.ts"],"names":[],"mappings":";;;AAEA,+CAA0C;AAE7B,QAAA,cAAc,GAA4B;IACrD,QAAQ,EAAE;QACR,CAAC,mBAAO,CAAC,OAAO,CAAC,EAAE;YACjB,eAAe,EAAE;gBACf,cAAc,EAAE,4CAA4C;gBAC5D,QAAQ,EAAE,4CAA4C;gBACtD,UAAU,EAAE,4CAA4C;aACzD;SACF;QACD,CAAC,mBAAO,CAAC,QAAQ,CAAC,EAAE;YAClB,eAAe,EAAE;gBACf,cAAc,EAAE,4CAA4C;gBAC5D,QAAQ,EAAE,4CAA4C;gBACtD,UAAU,EAAE,4CAA4C;aACzD;SACF;KACF;CACF,CAAC;AAEF,mGAAmG;AACnG,kGAAkG;AAClG,2DAA2D;AAC9C,QAAA,kBAAkB,GAAG,OAAO,CAAC"}
|
package/package.json
CHANGED
|
@@ -11,6 +11,13 @@ export const FluidDexConfig: DexConfigMap<DexParams> = {
|
|
|
11
11
|
dexFactory: '0x91716C4EDA1Fb55e84Bf8b4c7085f84285c19085',
|
|
12
12
|
},
|
|
13
13
|
},
|
|
14
|
+
[Network.ARBITRUM]: {
|
|
15
|
+
commonAddresses: {
|
|
16
|
+
liquidityProxy: '0x52Aa899454998Be5b000Ad077a46Bbe360F4e497',
|
|
17
|
+
resolver: '0xb8f526718FF58758E256D9aD86bC194a9ff5986D',
|
|
18
|
+
dexFactory: '0x91716C4EDA1Fb55e84Bf8b4c7085f84285c19085',
|
|
19
|
+
},
|
|
20
|
+
},
|
|
14
21
|
},
|
|
15
22
|
};
|
|
16
23
|
|
|
@@ -169,6 +169,44 @@ describe('FluidDex E2E', () => {
|
|
|
169
169
|
);
|
|
170
170
|
});
|
|
171
171
|
});
|
|
172
|
+
|
|
173
|
+
describe('Arbitrum', () => {
|
|
174
|
+
const network = Network.ARBITRUM;
|
|
175
|
+
|
|
176
|
+
describe('ETH -> wstETH', () => {
|
|
177
|
+
const tokenASymbol: string = 'wstETH';
|
|
178
|
+
const tokenBSymbol: string = 'ETH';
|
|
179
|
+
|
|
180
|
+
const tokenAAmount: string = '1000000000000000';
|
|
181
|
+
const tokenBAmount: string = '1000000000000000';
|
|
182
|
+
|
|
183
|
+
testForNetwork(
|
|
184
|
+
network,
|
|
185
|
+
dexKey,
|
|
186
|
+
tokenASymbol,
|
|
187
|
+
tokenBSymbol,
|
|
188
|
+
tokenAAmount,
|
|
189
|
+
tokenBAmount,
|
|
190
|
+
);
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
describe('ETH -> weETH', () => {
|
|
194
|
+
const tokenBSymbol: string = 'ETH';
|
|
195
|
+
const tokenASymbol: string = 'weETH';
|
|
196
|
+
|
|
197
|
+
const tokenAAmount: string = '1000000000000000';
|
|
198
|
+
const tokenBAmount: string = '1000000000000000';
|
|
199
|
+
|
|
200
|
+
testForNetwork(
|
|
201
|
+
network,
|
|
202
|
+
dexKey,
|
|
203
|
+
tokenASymbol,
|
|
204
|
+
tokenBSymbol,
|
|
205
|
+
tokenAAmount,
|
|
206
|
+
tokenBAmount,
|
|
207
|
+
);
|
|
208
|
+
});
|
|
209
|
+
});
|
|
172
210
|
});
|
|
173
211
|
|
|
174
212
|
function NewColReservesOne(): CollateralReserves {
|
package/tests/constants-e2e.ts
CHANGED
|
@@ -1308,6 +1308,10 @@ export const Tokens: {
|
|
|
1308
1308
|
address: '0x5979D7b546E38E414F7E9822514be443A4800529',
|
|
1309
1309
|
decimals: 18,
|
|
1310
1310
|
},
|
|
1311
|
+
weETH: {
|
|
1312
|
+
address: '0x35751007a407ca6FEFfE80b3cB397736D2cf4dbe',
|
|
1313
|
+
decimals: 18,
|
|
1314
|
+
},
|
|
1311
1315
|
RDPX: {
|
|
1312
1316
|
address: '0x32eb7902d4134bf98a28b963d26de779af92a212',
|
|
1313
1317
|
decimals: 18,
|
|
@@ -1957,6 +1961,7 @@ export const Holders: {
|
|
|
1957
1961
|
SEN: '0x76d39045d856caf9bfae12ba611ca4a94449a4f1',
|
|
1958
1962
|
RDPX: '0x115b818593c00da4f9d1d8f5ce7d7f88cce48bee',
|
|
1959
1963
|
ARB: '0xb65edba80a3d81903ecd499c8eb9cf0e19096bd0',
|
|
1964
|
+
weETH: '0xE957D8386d20D077F511E86672Fc7ee4b83067da',
|
|
1960
1965
|
ETH: '0xfa0a32e5c33b6123122b6b68099001d9371d14e9',
|
|
1961
1966
|
DAI: '0x2d070ed1321871841245d8ee5b84bd2712644322',
|
|
1962
1967
|
WETH: '0x3368e17064c9ba5d6f1f93c4c678bea00cc78555',
|
|
@@ -1983,7 +1988,7 @@ export const Holders: {
|
|
|
1983
1988
|
LINK: '0x7f1fa204bb700853d36994da19f830b6ad18455c',
|
|
1984
1989
|
DMT: '0x40414f138eb2ef938e6c3629897ef99d4464d4e8',
|
|
1985
1990
|
PENDLE: '0x5bdf85216ec1e38d6458c870992a69e38e03f7ef',
|
|
1986
|
-
wstETH: '
|
|
1991
|
+
wstETH: '0xb3843D7BBb8530f95e5bEaBeff451fA5380510a8',
|
|
1987
1992
|
EURA: '0x6dd7b830896b56812aa667bdd14b71c8b3252f8e',
|
|
1988
1993
|
stEUR: '0xE588611e7A2392507879E3be80531654b85C16aA',
|
|
1989
1994
|
USDA: '0xa86ff337db9107b54862d30d1a598f8be847b05e',
|