Skip to content

Commit

Permalink
fixed test_spot_price_two_assets
Browse files Browse the repository at this point in the history
  • Loading branch information
jepidoptera committed Oct 5, 2023
1 parent 5b8af6d commit 73be43f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion hydradx/tests/test_stableswap.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,12 @@ def test_swap_invariant(initial_pool: StableSwapPoolState):
st.integers(min_value=10, max_value=1000)
)
def test_spot_price_two_assets(token_a: int, token_b: int, amp: int):
tokens = {"A": token_a, "B": token_b}
initial_pool = StableSwapPoolState(
tokens={"A": token_a, "B": token_b},
amplification=amp,
trade_fee=0.0,
unique_id='stableswap'
)
spot_price_initial = initial_pool.spot_price()

trade_size = 1
Expand Down

0 comments on commit 73be43f

Please sign in to comment.