From a683cc66e0a9f18de33e2e88f2400fe6457e6408 Mon Sep 17 00:00:00 2001 From: Luke Van Seters Date: Wed, 29 Dec 2021 17:59:21 -0500 Subject: [PATCH] Fix sandwiches including multiple pools --- mev_inspect/sandwiches.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mev_inspect/sandwiches.py b/mev_inspect/sandwiches.py index 7e23873..8974873 100644 --- a/mev_inspect/sandwiches.py +++ b/mev_inspect/sandwiches.py @@ -46,7 +46,7 @@ def _get_sandwich_starting_with_swap( elif ( other_swap.token_out_address == front_swap.token_in_address and other_swap.token_in_address == front_swap.token_out_address - and other_swap.from_address == sandwicher_address + and other_swap.to_address == sandwicher_address ): if len(sandwiched_swaps) > 0: return Sandwich(