From 9022be560058f49ed89077f3ca4c7c9bccbea632 Mon Sep 17 00:00:00 2001 From: Connor Barr Date: Thu, 14 Mar 2024 16:07:10 +0000 Subject: [PATCH] Updated test for tick state value --- contracts/sumtree-orderbook/src/tests/test_order.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contracts/sumtree-orderbook/src/tests/test_order.rs b/contracts/sumtree-orderbook/src/tests/test_order.rs index eb47378..d522950 100644 --- a/contracts/sumtree-orderbook/src/tests/test_order.rs +++ b/contracts/sumtree-orderbook/src/tests/test_order.rs @@ -308,14 +308,14 @@ fn test_place_limit() { format_test_name(test.name) ); assert_eq!( - state.effective_total_amount_swapped, - Decimal256::zero(), + state.cumulative_total_limits, + Decimal256::from_ratio(test.quantity, Uint256::one()), "{}", format_test_name(test.name) ); assert_eq!( - state.cumulative_total_limits, - Decimal256::one(), + state.effective_total_amount_swapped, + Decimal256::zero(), "{}", format_test_name(test.name) );