Trait Eip1559EstimatorFn

Source
pub trait Eip1559EstimatorFn: Send + Unpin {
    // Required method
    fn estimate(
        &self,
        base_fee: u128,
        rewards: &[Vec<u128>],
    ) -> Eip1559Estimation;
}
Expand description

A trait responsible for estimating EIP-1559 values

Required Methods§

Source

fn estimate(&self, base_fee: u128, rewards: &[Vec<u128>]) -> Eip1559Estimation

Estimates the EIP-1559 values given the latest basefee and the recent rewards.

Implementors§