The sandwicher should be where the swap value accumulates
This commit is contained in:
parent
4930065045
commit
50ff7dadcd
@ -28,8 +28,7 @@ def _get_sandwich_starting_with_swap(
|
|||||||
front_swap: Swap,
|
front_swap: Swap,
|
||||||
rest_swaps: List[Swap],
|
rest_swaps: List[Swap],
|
||||||
) -> Optional[Sandwich]:
|
) -> Optional[Sandwich]:
|
||||||
|
sandwicher_address = front_swap.to_address
|
||||||
sandwicher_address = front_swap.from_address
|
|
||||||
sandwiched_swaps = []
|
sandwiched_swaps = []
|
||||||
|
|
||||||
for other_swap in rest_swaps:
|
for other_swap in rest_swaps:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user