Skip to content

Commit

Permalink
temp: fluid broken test case
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNazarii committed Jan 7, 2025
1 parent 77a0667 commit c25f5b2
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 15 deletions.
45 changes: 31 additions & 14 deletions src/dex/fluid-dex/fluid-dex-e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function testForNetwork(

const sideToContractMethods = new Map([
[SwapSide.SELL, [ContractMethod.swapExactAmountIn]],
[SwapSide.BUY, [ContractMethod.swapExactAmountOut]],
// [SwapSide.BUY, [ContractMethod.swapExactAmountOut]],
]);

describe(`${network}`, () => {
Expand All @@ -92,19 +92,19 @@ function testForNetwork(
provider,
);
});
it(`${tokenBSymbol} -> ${tokenASymbol}`, async () => {
await testE2E(
tokens[tokenBSymbol],
tokens[tokenASymbol],
holders[tokenBSymbol],
tokenBAmount,
side,
dexKey,
contractMethod as ContractMethod,
network,
provider,
);
});
// it(`${tokenBSymbol} -> ${tokenASymbol}`, async () => {
// await testE2E(
// tokens[tokenBSymbol],
// tokens[tokenASymbol],
// holders[tokenBSymbol],
// tokenBAmount,
// side,
// dexKey,
// contractMethod as ContractMethod,
// network,
// provider,
// );
// });
});
});
}),
Expand All @@ -118,6 +118,23 @@ describe('FluidDex E2E', () => {
describe('Mainnet', () => {
const network = Network.MAINNET;

describe.only('FLUID -> ETH', () => {
const tokenASymbol: string = 'FLUID';
const tokenBSymbol: string = 'ETH';

const tokenAAmount: string = '160097047322810379';
const tokenBAmount: string = '79923068733005505624';

testForNetwork(
network,
dexKey,
tokenASymbol,
tokenBSymbol,
tokenAAmount,
tokenBAmount,
);
});

describe('ETH -> INST', () => {
const tokenASymbol: string = 'ETH';
const tokenBSymbol: string = 'INST';
Expand Down
3 changes: 2 additions & 1 deletion tests/constants-e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export const Tokens: {
addBalance: balancesFn,
addAllowance: allowedFn,
},
INST: {
FLUID: {
address: '0x6f40d4A6237C257fff2dB00FA0510DeEECd303eb',
decimals: 18,
},
Expand Down Expand Up @@ -1816,6 +1816,7 @@ export const Holders: {
USDM: '0x57F5E098CaD7A3D1Eed53991D4d66C45C9AF7812',
wUSDM: '0x3B95bC951EE0f553ba487327278cAc44f29715E5',
UsualM: '0xE3f7A0c4a44b740328157A5152A85c3bCB54DA09',
FLUID: '0x2d675D4C52a8aE117b935fF98c6F9f29A15827F0',
},
[Network.POLYGON]: {
jGBP: '0x02aa0B826c7BA6386DdBE04C0a8715A1c0A16B24',
Expand Down

0 comments on commit c25f5b2

Please sign in to comment.