Skip to content

Commit

Permalink
chore: merge upstream gas escalator and run test
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-savu committed Jun 13, 2024
1 parent 950dd34 commit ec0f759
Show file tree
Hide file tree
Showing 3 changed files with 244 additions and 144 deletions.
1 change: 0 additions & 1 deletion ethers-middleware/src/gas_escalator/linear.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ impl LinearGasPrice {
impl GasEscalator for LinearGasPrice {
fn get_gas_price(&self, initial_price: U256, time_elapsed: u64) -> U256 {
let mut result = initial_price + self.increase_by * (time_elapsed / self.every_secs);
dbg!(time_elapsed, self.every_secs);
if let Some(max_price) = self.max_price {
result = std::cmp::min(result, max_price);
}
Expand Down
Loading

0 comments on commit ec0f759

Please sign in to comment.