You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: batcher/aligned-batcher/src/lib.rs
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -684,7 +684,8 @@ impl Batcher {
684
684
returnOk(());
685
685
};
686
686
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`).
688
689
if !self.check_min_balance(user_min_fee, proofs_in_batch + 1, user_balance, msg_max_fee){
689
690
std::mem::drop(batch_state_lock);
690
691
send_message(
@@ -787,8 +788,8 @@ impl Batcher {
787
788
user_max_fee:U256,
788
789
) -> bool{
789
790
// `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,
792
793
// and use it to validate the user's balance has enough fund available to pay for all submitted proofs.
0 commit comments