@@ -94,7 +94,7 @@ impl State {
9494 /// `maybe_base_tolerance` of the target base amount (default is 1e9).
9595 ///
9696 /// Increasing `maybe_max_iterations` will increase the accuracy of the
97- /// result (default is 500 ).
97+ /// result (default is 1_000 ).
9898 pub fn calculate_short_bonds_given_deposit (
9999 & self ,
100100 target_base_amount : FixedPoint < U256 > ,
@@ -104,7 +104,7 @@ impl State {
104104 maybe_max_iterations : Option < usize > ,
105105 ) -> Result < FixedPoint < U256 > > {
106106 let base_tolerance = maybe_base_tolerance. unwrap_or ( fixed ! ( 1e9 ) ) ;
107- let max_iterations = maybe_max_iterations. unwrap_or ( 500 ) ;
107+ let max_iterations = maybe_max_iterations. unwrap_or ( 1_000 ) ;
108108
109109 // The max bond amount might be below the pool's minimum.
110110 // If so, no short can be opened.
@@ -1110,7 +1110,7 @@ mod tests {
11101110 async fn fuzz_open_short_inversion ( ) -> Result < ( ) > {
11111111 let abs_max_bonds_tolerance = fixed_u256 ! ( 1e9 ) ;
11121112 let budget_base_tolerance = fixed_u256 ! ( 1e9 ) ;
1113- let max_iterations = 500 ;
1113+ let max_iterations = 1_000 ;
11141114 let mut rng = thread_rng ( ) ;
11151115
11161116 // Run the fuzz tests.
0 commit comments