async fn eth_amount_to_distribute(&self) -> anyhow::Result<U256> {
        let ethereum = self
            .pool
            .master_wallet
            .ethereum(&self.config.l1_rpc_address)
            .await
            .expect("Can't get Ethereum client");

        // Assuming that gas prices on testnets are somewhat stable, we will consider it a constant.
        let average_gas_price = ethereum.query_client().get_gas_price().await?;

        let gas_price_with_priority = average_gas_price + U256::from(DEFAULT_PRIORITY_FEE);

        // TODO (PLA-85): Add gas estimations for deposits in Rust SDK
        let average_l1_to_l2_gas_limit = 5_000_000u32;
        let average_price_for_l1_to_l2_execute = ethereum
            .base_cost(
                average_l1_to_l2_gas_limit.into(),
                REQUIRED_L1_TO_L2_GAS_PER_PUBDATA_BYTE as u32,
                Some(gas_price_with_priority),
            )
            .await?;

        Ok(
            gas_price_with_priority * MAX_L1_TRANSACTION_GAS_LIMIT * MAX_L1_TRANSACTIONS
                + average_price_for_l1_to_l2_execute * MAX_L1_TRANSACTIONS,
        )
    }
Calculates amount of ETH to be distributed per account in order to make them
able to perform priority operations.
core/tests/loadnext/src/executor.rs