@@ -16,12 +16,10 @@ struct L2Deposit {
16
16
}
17
17
18
18
// Authorized: all tickets in this batch are authorized but not claimed
19
- // Claimed: all tickets in this batch are claimed
20
- // Refunded: all tickets in this batch have been refunded, due to inactivity or provable fraud.
19
+ // Withdrawn: all tickets in this batch are withdrawn (either claimed or refunded)
21
20
enum BatchStatus {
22
21
Authorized,
23
- Claimed,
24
- Refunded
22
+ Withdrawn
25
23
}
26
24
27
25
struct Batch {
@@ -132,7 +130,7 @@ contract L2 is SignatureChecker {
132
130
"safetyDelay must have passed since authorization timestamp "
133
131
);
134
132
135
- batch.status = BatchStatus.Claimed ;
133
+ batch.status = BatchStatus.Withdrawn ;
136
134
batches[first] = batch;
137
135
(bool sent , ) = lpAddress.call {value: batch.total}("" );
138
136
require (sent, "Failed to send Ether " );
@@ -188,7 +186,7 @@ contract L2 is SignatureChecker {
188
186
require (sent, "Failed to send Ether " );
189
187
}
190
188
191
- batches[honestStartNonce].status = BatchStatus.Refunded ;
189
+ batches[honestStartNonce].status = BatchStatus.Withdrawn ;
192
190
}
193
191
194
192
function refund (uint256 index ) public {
@@ -203,7 +201,7 @@ contract L2 is SignatureChecker {
203
201
);
204
202
(Batch memory batch , ) = createBatch (nextNonceToAuthorize, index);
205
203
batches[nextNonceToAuthorize] = batch;
206
- batch.status = BatchStatus.Refunded ;
204
+ batch.status = BatchStatus.Withdrawn ;
207
205
nextNonceToAuthorize = index + 1 ;
208
206
209
207
(bool sent , ) = tickets[index].l1Recipient.call {
0 commit comments