@@ -98,7 +98,7 @@ pub struct Batcher {
9898 aggregator_fee_percentage_multiplier : u128 ,
9999 aggregator_gas_cost : u128 ,
100100 latest_block_gas_price : RwLock < U256 > ,
101- proofs_to_cover_in_min_max_fee : usize ,
101+ amount_of_proofs_for_min_max_fee : usize ,
102102 min_bump_percentage : U256 ,
103103 pub metrics : metrics:: BatcherMetrics ,
104104 pub telemetry : TelemetrySender ,
@@ -269,7 +269,7 @@ impl Batcher {
269269 max_proof_size : config. batcher . max_proof_size ,
270270 max_batch_byte_size : config. batcher . max_batch_byte_size ,
271271 max_batch_proof_qty : config. batcher . max_batch_proof_qty ,
272- proofs_to_cover_in_min_max_fee : config. batcher . proofs_to_cover_in_min_max_fee ,
272+ amount_of_proofs_for_min_max_fee : config. batcher . amount_of_proofs_for_min_max_fee ,
273273 min_bump_percentage : U256 :: from ( config. batcher . min_bump_percentage ) ,
274274 last_uploaded_batch_block : Mutex :: new ( last_uploaded_batch_block) ,
275275 pre_verification_is_enabled : config. batcher . pre_verification_is_enabled ,
@@ -670,7 +670,7 @@ impl Batcher {
670670
671671 // Before moving on to process the message, verify that the max fee covers the
672672 // minimum max fee allowed. This prevents users from spamming with very low max fees
673- // the min max fee is enforced by checking if it can cover a batch of [`proofs_to_cover_in_min_max_fee `]
673+ // the min max fee is enforced by checking if it can cover a batch of [`amount_of_proofs_for_min_max_fee `]
674674 let msg_max_fee = nonced_verification_data. max_fee ;
675675 if !self . msg_covers_minimum_max_fee ( msg_max_fee) . await {
676676 send_message (
@@ -2049,7 +2049,7 @@ impl Batcher {
20492049 async fn msg_covers_minimum_max_fee ( & self , msg_max_fee : U256 ) -> bool {
20502050 let gas_price = * self . latest_block_gas_price . read ( ) . await ;
20512051 let min_max_fee_per_proof = aligned_sdk:: verification_layer:: compute_fee_per_proof_formula (
2052- self . proofs_to_cover_in_min_max_fee ,
2052+ self . amount_of_proofs_for_min_max_fee ,
20532053 gas_price,
20542054 ) ;
20552055 msg_max_fee >= min_max_fee_per_proof
0 commit comments