Trait ethers::middleware::gas_escalator::GasEscalator[][src]

pub trait GasEscalator: Send + Sync + Debug {
    fn get_gas_price(&self, initial_price: U256, time_elapsed: u64) -> U256;
}
Expand description

Trait for fetching updated gas prices after a transaction has been first broadcast

Required methods

Given the initial gas price and the time elapsed since the transaction’s first broadcast, it returns the new gas price

Implementors