File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[package ]
22name = " strike-sdk"
3- version = " 0.2.13 "
3+ version = " 0.2.14 "
44edition = " 2021"
55description = " Rust SDK for Strike prediction markets on BNB Chain"
66license = " MIT"
Original file line number Diff line number Diff line change @@ -342,7 +342,7 @@ impl<'a> OrdersClient<'a> {
342342}
343343
344344fn gas_limit_place_orders ( order_count : usize ) -> u64 {
345- 550_000 + 175_000 * ( order_count. saturating_sub ( 1 ) as u64 )
345+ 800_000 + 250_000 * ( order_count. saturating_sub ( 1 ) as u64 )
346346}
347347
348348fn gas_limit_amend_orders ( order_count : usize ) -> u64 {
@@ -424,10 +424,11 @@ mod tests {
424424
425425 #[ test]
426426 fn gas_limit_place_orders_formula ( ) {
427- assert_eq ! ( gas_limit_place_orders( 0 ) , 550_000 ) ;
428- assert_eq ! ( gas_limit_place_orders( 1 ) , 550_000 ) ;
429- assert_eq ! ( gas_limit_place_orders( 2 ) , 725_000 ) ;
430- assert_eq ! ( gas_limit_place_orders( 3 ) , 900_000 ) ;
427+ assert_eq ! ( gas_limit_place_orders( 0 ) , 800_000 ) ;
428+ assert_eq ! ( gas_limit_place_orders( 1 ) , 800_000 ) ;
429+ assert_eq ! ( gas_limit_place_orders( 2 ) , 1_050_000 ) ;
430+ assert_eq ! ( gas_limit_place_orders( 3 ) , 1_300_000 ) ;
431+ assert_eq ! ( gas_limit_place_orders( 4 ) , 1_550_000 ) ;
431432 }
432433
433434 #[ test]
You can’t perform that action at this time.
0 commit comments