Skip to content

Commit cf8c889

Browse files
committed
Bump SDK placeOrders gas limit
1 parent a66dd9d commit cf8c889

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

sdk/rust/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/rust/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "strike-sdk"
3-
version = "0.2.13"
3+
version = "0.2.14"
44
edition = "2021"
55
description = "Rust SDK for Strike prediction markets on BNB Chain"
66
license = "MIT"

sdk/rust/src/chain/orders.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ impl<'a> OrdersClient<'a> {
342342
}
343343

344344
fn 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

348348
fn 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]

0 commit comments

Comments
 (0)