From 73be43fd38b44cb87e4d40c028c659f8240ce8b5 Mon Sep 17 00:00:00 2001 From: jepidoptera Date: Thu, 5 Oct 2023 11:27:21 -0500 Subject: [PATCH] fixed test_spot_price_two_assets --- hydradx/tests/test_stableswap.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hydradx/tests/test_stableswap.py b/hydradx/tests/test_stableswap.py index 2d6e2c32..e3fd73c8 100644 --- a/hydradx/tests/test_stableswap.py +++ b/hydradx/tests/test_stableswap.py @@ -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