Don't include a sandwich without filling
This commit is contained in:
parent
d4e8046947
commit
4ac45f0930
@ -48,6 +48,7 @@ def _get_sandwich_starting_with_swap(
|
|||||||
and other_swap.token_in_address == front_swap.token_out_address
|
and other_swap.token_in_address == front_swap.token_out_address
|
||||||
and other_swap.from_address == sandwicher_address
|
and other_swap.from_address == sandwicher_address
|
||||||
):
|
):
|
||||||
|
if len(sandwiched_swaps) > 0:
|
||||||
return Sandwich(
|
return Sandwich(
|
||||||
block_number=front_swap.block_number,
|
block_number=front_swap.block_number,
|
||||||
sandwicher_address=sandwicher_address,
|
sandwicher_address=sandwicher_address,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user