Skip to content

Commit

Permalink
test: adjusted tick bounds for e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
crnbarr93 committed Jul 1, 2024
1 parent 37d5aac commit f609198
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions contracts/sumtree-orderbook/src/tests/e2e/cases/test_fuzz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use rand::Rng;
use rand::{rngs::StdRng, SeedableRng};

use super::utils::{assert, orders};
use crate::constants::{MAX_TICK, MIN_TICK};
use crate::constants::MIN_TICK;
use crate::msg::{CalcOutAmtGivenInResponse, QueryMsg};
use crate::tests::e2e::modules::cosmwasm_pool::CosmwasmPool;
use crate::tick_math::{amount_to_value, tick_to_price, RoundingDirection};
Expand All @@ -20,10 +20,10 @@ use crate::{
types::OrderDirection,
};

// Tick Price = 2
pub(crate) const LARGE_POSITIVE_TICK: i64 = 1000000;
// Tick Price = 0.5
pub(crate) const LARGE_NEGATIVE_TICK: i64 = -5000000;
// Tick Price = 100000
pub(crate) const LARGE_POSITIVE_TICK: i64 = 45000000;
// Tick Price = 0.00001
pub(crate) const LARGE_NEGATIVE_TICK: i64 = -45000000;

// Loops over a provided action for the provided duration
// Tracks the number of operations and iterations
Expand Down Expand Up @@ -160,7 +160,7 @@ fn test_order_fuzz_large_tick_range() {
let oper_per_iteration = 1000;

run_for_duration(30, oper_per_iteration, |count| {
run_fuzz_mixed(count, (MIN_TICK, MAX_TICK));
run_fuzz_mixed(count, (MIN_TICK, LARGE_POSITIVE_TICK));
});
}

Expand Down

0 comments on commit f609198

Please sign in to comment.