Skip to content

Commit

Permalink
make onPoolCreated protected again
Browse files Browse the repository at this point in the history
  • Loading branch information
aburkut committed May 20, 2024
1 parent d0a6b1f commit 0dd026e
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 46 deletions.
90 changes: 45 additions & 45 deletions src/dex/uniswap-v3/uniswap-v3-e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,19 @@ function testForNetwork(
SwapSide.SELL,
[
ContractMethod.simpleSwap,
// ContractMethod.multiSwap,
// ContractMethod.megaSwap,
// ContractMethod.directUniV3Swap,
ContractMethod.multiSwap,
ContractMethod.megaSwap,
ContractMethod.directUniV3Swap,
],
],
[
SwapSide.BUY,
[
ContractMethod.simpleBuy,
ContractMethod.buy,
ContractMethod.directUniV3Buy,
],
],
// [
// SwapSide.BUY,
// [
// ContractMethod.simpleBuy,
// ContractMethod.buy,
// ContractMethod.directUniV3Buy,
// ],
// ],
]);

describe(`${network}`, () => {
Expand All @@ -71,40 +71,40 @@ function testForNetwork(
slippage,
);
});
// it(`${tokenASymbol} -> ${nativeTokenSymbol}`, async () => {
// await testE2E(
// tokens[tokenASymbol],
// tokens[nativeTokenSymbol],
// holders[tokenASymbol],
// side === SwapSide.SELL ? tokenAAmount : nativeTokenAmount,
// side,
// dexKey,
// contractMethod,
// network,
// provider,
// undefined,
// undefined,
// undefined,
// slippage,
// );
// });
// it(`${tokenASymbol} -> ${tokenBSymbol}`, async () => {
// await testE2E(
// tokens[tokenASymbol],
// tokens[tokenBSymbol],
// holders[tokenASymbol],
// side === SwapSide.SELL ? tokenAAmount : tokenBAmount,
// side,
// dexKey,
// contractMethod,
// network,
// provider,
// undefined,
// undefined,
// undefined,
// slippage,
// );
// });
it(`${tokenASymbol} -> ${nativeTokenSymbol}`, async () => {
await testE2E(
tokens[tokenASymbol],
tokens[nativeTokenSymbol],
holders[tokenASymbol],
side === SwapSide.SELL ? tokenAAmount : nativeTokenAmount,
side,
dexKey,
contractMethod,
network,
provider,
undefined,
undefined,
undefined,
slippage,
);
});
it(`${tokenASymbol} -> ${tokenBSymbol}`, async () => {
await testE2E(
tokens[tokenASymbol],
tokens[tokenBSymbol],
holders[tokenASymbol],
side === SwapSide.SELL ? tokenAAmount : tokenBAmount,
side,
dexKey,
contractMethod,
network,
provider,
undefined,
undefined,
undefined,
slippage,
);
});
});
});
}),
Expand Down
2 changes: 1 addition & 1 deletion src/dex/uniswap-v3/uniswap-v3-factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export class UniswapV3Factory extends StatefulEventSubscriber<FactoryState> {
parentName: string,
protected readonly factoryAddress: Address,
logger: Logger,
public readonly onPoolCreated: OnPoolCreatedCallback,
protected readonly onPoolCreated: OnPoolCreatedCallback,
mapKey: string = '',
) {
super(
Expand Down

0 comments on commit 0dd026e

Please sign in to comment.