Skip to content

Commit c2f7225

Browse files
authored
fix(fortuna): Adjust max_fee_per_gas to account for priority fee adjustments (#2209)
1 parent 5f6e5cf commit c2f7225

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

apps/fortuna/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.

apps/fortuna/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "fortuna"
3-
version = "6.7.1"
3+
version = "6.7.2"
44
edition = "2021"
55

66
[dependencies]

apps/fortuna/src/chain/eth_gas_oracle.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ where
7777
.and_then(|x| x.checked_div(U256::from(100)))
7878
.unwrap_or(max_priority_fee_per_gas);
7979

80+
let max_fee_per_gas = std::cmp::max(max_fee_per_gas, max_priority_fee_per_gas);
81+
8082
Ok((max_fee_per_gas, max_priority_fee_per_gas))
8183
}
8284
}

0 commit comments

Comments
 (0)