Skip to content

Commit 49f4e28

Browse files
author
nimcon
committed
minor code simplification
1 parent 40ae59e commit 49f4e28

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

uniswap/uniswap.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -618,11 +618,9 @@ def _token_to_eth_swap_input(
618618
)
619619

620620
# Multicall
621-
multicall_data = [swap_data, unwrap_data]
622-
623621
return self._build_and_send_tx(
624622
self.router.functions.multicall(
625-
multicall_data
623+
[swap_data, unwrap_data]
626624
),
627625
self._get_tx_params(
628626
),
@@ -802,11 +800,9 @@ def _eth_to_token_swap_output(
802800
)
803801

804802
# Multicall
805-
multicall_data = [swap_data, refund_data]
806-
807803
return self._build_and_send_tx(
808804
self.router.functions.multicall(
809-
multicall_data
805+
[swap_data, refund_data]
810806
),
811807
self._get_tx_params(
812808
value=amount_in_max
@@ -899,11 +895,9 @@ def _token_to_eth_swap_output(
899895
)
900896

901897
# Multicall
902-
multicall_data = [swap_data, unwrap_data]
903-
904898
return self._build_and_send_tx(
905899
self.router.functions.multicall(
906-
multicall_data
900+
[swap_data, unwrap_data]
907901
),
908902
self._get_tx_params(
909903
),

0 commit comments

Comments
 (0)