Skip to content

Commit

Permalink
fixed test_tick_crossing
Browse files Browse the repository at this point in the history
  • Loading branch information
jepidoptera committed Jun 25, 2024
1 parent 1b0f22f commit 07ea6a0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions hydradx/tests/test_concentrated_liquidity.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down Expand Up @@ -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

0 comments on commit 07ea6a0

Please sign in to comment.