We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc18d6c commit 6016431Copy full SHA for 6016431
1 file changed
crates/batcher/src/lib.rs
@@ -282,18 +282,6 @@ impl Batcher {
282
}
283
284
285
- fn get_user_min_fee_in_batch(
286
- &self,
287
- addr: &Address,
288
- batch_queue: &types::batch_queue::BatchQueue,
289
- ) -> U256 {
290
- batch_queue
291
- .iter()
292
- .filter(|(e, _)| &e.sender == addr)
293
- .map(|(e, _)| e.nonced_verification_data.max_fee)
294
- .min()
295
- .unwrap_or(U256::max_value())
296
- }
297
298
async fn update_evicted_user_state(
299
&self,
@@ -1111,7 +1099,7 @@ impl Batcher {
1111
1099
1112
1100
// update max_fee_limit
1113
1101
let updated_max_fee_limit_in_batch =
1114
- self.get_user_min_fee_in_batch(&addr, &batch_state_lock.batch_queue);
1102
+ batch_state_lock.get_user_min_fee_in_batch(&addr);
1115
1103
{
1116
1104
let user_state = self.user_states.get(&addr);
1117
1105
match user_state {
0 commit comments