Skip to content

Commit

Permalink
fix(fortuna): Adjust max_fee_per_gas to account for priority fee adju…
Browse files Browse the repository at this point in the history
…stments (#2209)
  • Loading branch information
jayantk authored Dec 20, 2024
1 parent 5f6e5cf commit c2f7225
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/fortuna/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion apps/fortuna/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fortuna"
version = "6.7.1"
version = "6.7.2"
edition = "2021"

[dependencies]
Expand Down
2 changes: 2 additions & 0 deletions apps/fortuna/src/chain/eth_gas_oracle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ where
.and_then(|x| x.checked_div(U256::from(100)))
.unwrap_or(max_priority_fee_per_gas);

let max_fee_per_gas = std::cmp::max(max_fee_per_gas, max_priority_fee_per_gas);

Ok((max_fee_per_gas, max_priority_fee_per_gas))
}
}
Expand Down

0 comments on commit c2f7225

Please sign in to comment.