Skip to content

Commit

Permalink
Fix cases
Browse files Browse the repository at this point in the history
Stray comma was causing these to become tuples
  • Loading branch information
BowTiedDevil committed Nov 30, 2024
1 parent e456b24 commit 044836d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/degenbot/arbitrage/uniswap_lp_cycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def _build_swap_amounts(
match pool, pool_state_override:
case (
(AerodromeV2Pool(), AerodromeV2PoolState() | None)
| (UniswapV2Pool(), UniswapV2PoolState() | None),
| (UniswapV2Pool(), UniswapV2PoolState() | None)
):
_token_out_quantity = pool.calculate_tokens_out_from_tokens_in(
token_in=swap_vector.token_in,
Expand Down Expand Up @@ -277,7 +277,7 @@ def _pre_calculation_check(
match pool, pool_state:
case (
(AerodromeV2Pool(stable=False), AerodromeV2PoolState())
| (UniswapV2Pool(), UniswapV2PoolState()),
| (UniswapV2Pool(), UniswapV2PoolState())
):
self._check_v2_pool_liquidity(pool_state, vector)
exchange_rate = Fraction(pool_state.reserves_token1, pool_state.reserves_token0)
Expand Down Expand Up @@ -332,7 +332,7 @@ def arb_profit(x: float) -> float:
match pool, pool_override:
case (
(AerodromeV2Pool(), AerodromeV2PoolState() | None)
| (UniswapV2Pool(), UniswapV2PoolState() | None),
| (UniswapV2Pool(), UniswapV2PoolState() | None)
):
token_out_quantity = pool.calculate_tokens_out_from_tokens_in(
token_in=swap_vector.token_in,
Expand Down

0 comments on commit 044836d

Please sign in to comment.