fix line
This commit is contained in:
parent
2d0c7e2a16
commit
23a6c2eae6
@ -56,9 +56,8 @@ def _get_arbitrages_from_swaps(swaps: List[Swap]) -> List[Arbitrage]:
|
|||||||
start_amount = route[0].token_in_amount
|
start_amount = route[0].token_in_amount
|
||||||
end_amount = route[-1].token_out_amount
|
end_amount = route[-1].token_out_amount
|
||||||
profit_amount = end_amount - start_amount
|
profit_amount = end_amount - start_amount
|
||||||
|
error = None
|
||||||
for swap in route:
|
for swap in route:
|
||||||
error = None
|
|
||||||
if swap.error is not None:
|
if swap.error is not None:
|
||||||
error = swap.error
|
error = swap.error
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user