From 07ea6a0b4a17804f8881d9e47ab7f9a931b598f9 Mon Sep 17 00:00:00 2001 From: jepidoptera Date: Tue, 25 Jun 2024 15:55:54 -0500 Subject: [PATCH] fixed test_tick_crossing --- hydradx/tests/test_concentrated_liquidity.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/hydradx/tests/test_concentrated_liquidity.py b/hydradx/tests/test_concentrated_liquidity.py index efd0d824..0cd01df8 100644 --- a/hydradx/tests/test_concentrated_liquidity.py +++ b/hydradx/tests/test_concentrated_liquidity.py @@ -499,7 +499,7 @@ def test_tick_crossing(): tick_spacing=tick_spacing, fee=0 ).initialize_ticks({ - tick: individual_positions[tick].invariant - individual_positions[tick - tick_spacing].invariant + tick: individual_positions[tick - tick_spacing].invariant - individual_positions[tick].invariant for tick in range(initial_tick + tick_spacing, initial_tick + tick_spacing * 10 + 1, tick_spacing) }) # {current_tick + i * tick_spacing: -100 * (1 if i > 0 else -1) for i in range(-20, 20)}) agent1 = Agent(holdings={'B': 10000}) @@ -580,7 +580,3 @@ def test_get_next_sqrt_price_from_amount_1(): != pytest.approx(agent.initial_holdings['A'] - agent.holdings['A'], rel=1e-12) ): raise AssertionError('Amount0 delta was not calculated correctly.') - - -def test_two_part_swap(): - test_pool \ No newline at end of file