From 75efdb4afe70fbb7daffe9a5b21402b5751a94d7 Mon Sep 17 00:00:00 2001 From: Dire Date: Thu, 24 Feb 2022 11:01:44 -0600 Subject: [PATCH] fix check sandwicher against correct uniswap routers --- mev_inspect/sandwiches.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/mev_inspect/sandwiches.py b/mev_inspect/sandwiches.py index 42b3968..447f057 100644 --- a/mev_inspect/sandwiches.py +++ b/mev_inspect/sandwiches.py @@ -3,8 +3,9 @@ from typing import List, Optional from mev_inspect.schemas.sandwiches import Sandwich from mev_inspect.schemas.swaps import Swap -UNISWAP_V2_ROUTER = "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D" -UNISWAP_V3_ROUTER = "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45" +UNISWAP_V2_ROUTER = "0x7a250d5630b4cf539739df2c5dacb4c659f2488d" +UNISWAP_V3_ROUTER = "0xe592427a0aece92de3edee1f18e0157c05861564" +UNISWAP_V3_ROUTER_2 = "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45" def get_sandwiches(swaps: List[Swap]) -> List[Sandwich]: @@ -34,7 +35,11 @@ def _get_sandwich_starting_with_swap( sandwicher_address = front_swap.to_address sandwiched_swaps = [] - if sandwicher_address in [UNISWAP_V2_ROUTER, UNISWAP_V3_ROUTER]: + if sandwicher_address in [ + UNISWAP_V2_ROUTER, + UNISWAP_V3_ROUTER, + UNISWAP_V3_ROUTER_2, + ]: return None for other_swap in rest_swaps: