Skip to content

Commit 906ca55

Browse files
committed
nits
1 parent 929dde4 commit 906ca55

File tree

1 file changed

+4
-3
lines changed
  • batcher/aligned-batcher/src

1 file changed

+4
-3
lines changed

batcher/aligned-batcher/src/lib.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,8 @@ impl Batcher {
684684
return Ok(());
685685
};
686686

687-
// We estimate the minimum balance for submission to be the product of the user's `user_min_fee` and the number of proofs they have included in the batch + 1.
687+
// We estimate the minimum balance for submission to be the product of the user's `user_min_fee`,
688+
// and the number of user's proof in a batch including the currently submitted proof (`proofs_in_the_batch + 1`).
688689
if !self.check_min_balance(user_min_fee, proofs_in_batch + 1, user_balance, msg_max_fee) {
689690
std::mem::drop(batch_state_lock);
690691
send_message(
@@ -787,8 +788,8 @@ impl Batcher {
787788
user_max_fee: U256,
788789
) -> bool {
789790
// `user_min_fee` is the minimum `max_fee` the user submitted to the batcher
790-
// and it represents the maximium price that the user will pay for each submitted proof.
791-
// We use 'user_min_fee' as an upper bound for the proof submission cost of the user,
791+
// and represents the maximium price that the user will pay for each submitted proof.
792+
// We define 'user_min_fee' as an upper bound for the proof submission cost of the user,
792793
// and use it to validate the user's balance has enough fund available to pay for all submitted proofs.
793794
let mut min_fee = user_min_fee;
794795
if user_min_fee == U256::max_value() {

0 commit comments

Comments
 (0)