Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added arbitrum configs for FluidDex #863

Merged
merged 5 commits into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@paraswap/dex-lib",
"version": "4.0.8",
"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",
Expand Down
7 changes: 7 additions & 0 deletions src/dex/fluid-dex/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ export const FluidDexConfig: DexConfigMap<DexParams> = {
dexFactory: '0x91716C4EDA1Fb55e84Bf8b4c7085f84285c19085',
},
},
[Network.ARBITRUM]: {
commonAddresses: {
liquidityProxy: '0x52Aa899454998Be5b000Ad077a46Bbe360F4e497',
resolver: '0xb8f526718FF58758E256D9aD86bC194a9ff5986D',
dexFactory: '0x91716C4EDA1Fb55e84Bf8b4c7085f84285c19085',
},
},
},
};

Expand Down
38 changes: 38 additions & 0 deletions src/dex/fluid-dex/fluid-dex-e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
7 changes: 6 additions & 1 deletion tests/constants-e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1308,6 +1308,10 @@ export const Tokens: {
address: '0x5979D7b546E38E414F7E9822514be443A4800529',
decimals: 18,
},
weETH: {
address: '0x35751007a407ca6FEFfE80b3cB397736D2cf4dbe',
decimals: 18,
},
RDPX: {
address: '0x32eb7902d4134bf98a28b963d26de779af92a212',
decimals: 18,
Expand Down Expand Up @@ -1957,6 +1961,7 @@ export const Holders: {
SEN: '0x76d39045d856caf9bfae12ba611ca4a94449a4f1',
RDPX: '0x115b818593c00da4f9d1d8f5ce7d7f88cce48bee',
ARB: '0xb65edba80a3d81903ecd499c8eb9cf0e19096bd0',
weETH: '0xE957D8386d20D077F511E86672Fc7ee4b83067da',
ETH: '0xfa0a32e5c33b6123122b6b68099001d9371d14e9',
DAI: '0x2d070ed1321871841245d8ee5b84bd2712644322',
WETH: '0x3368e17064c9ba5d6f1f93c4c678bea00cc78555',
Expand All @@ -1983,7 +1988,7 @@ export const Holders: {
LINK: '0x7f1fa204bb700853d36994da19f830b6ad18455c',
DMT: '0x40414f138eb2ef938e6c3629897ef99d4464d4e8',
PENDLE: '0x5bdf85216ec1e38d6458c870992a69e38e03f7ef',
wstETH: '0x3c22ec75ea5D745c78fc84762F7F1E6D82a2c5BF',
wstETH: '0xb3843D7BBb8530f95e5bEaBeff451fA5380510a8',
EURA: '0x6dd7b830896b56812aa667bdd14b71c8b3252f8e',
stEUR: '0xE588611e7A2392507879E3be80531654b85C16aA',
USDA: '0xa86ff337db9107b54862d30d1a598f8be847b05e',
Expand Down
Loading