@@ -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 {
@@ -131,7 +129,7 @@ contract L2 is SignatureChecker {
131
129
"safetyDelay must have passed since authorization timestamp "
132
130
);
133
131
134
- batch.status = BatchStatus.Claimed ;
132
+ batch.status = BatchStatus.Withdrawn ;
135
133
batches[first] = batch;
136
134
(bool sent , ) = lpAddress.call {value: batch.total}("" );
137
135
require (sent, "Failed to send Ether " );
@@ -187,7 +185,7 @@ contract L2 is SignatureChecker {
187
185
require (sent, "Failed to send Ether " );
188
186
}
189
187
190
- batches[honestStartNonce].status = BatchStatus.Refunded ;
188
+ batches[honestStartNonce].status = BatchStatus.Withdrawn ;
191
189
}
192
190
193
191
function refund (uint256 index ) public {
@@ -202,7 +200,7 @@ contract L2 is SignatureChecker {
202
200
);
203
201
(Batch memory batch , ) = createBatch (nextNonceToAuthorize, index);
204
202
batches[nextNonceToAuthorize] = batch;
205
- batch.status = BatchStatus.Refunded ;
203
+ batch.status = BatchStatus.Withdrawn ;
206
204
nextNonceToAuthorize = index + 1 ;
207
205
208
206
(bool sent , ) = tickets[index].l1Recipient.call {
0 commit comments