Merge pull request #199 from flashbots/fix-cycle-sandwiches

Support sandwiches including multiple pools
This commit is contained in:
Luke Van Seters 2021-12-31 15:22:39 -05:00 committed by GitHub
commit 1ff9e9aa1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(