Skip to content

Commit 07b07f1

Browse files
committed
chore: minor
1 parent 3bb30ce commit 07b07f1

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

contracts/src/arbitration/KlerosGovernor.sol

+4-5
Original file line numberDiff line numberDiff line change
@@ -262,10 +262,9 @@ contract KlerosGovernor is IArbitrableV2 {
262262
session.submittedLists[_submissionID] = session.submittedLists[session.submittedLists.length - 1];
263263
session.alreadySubmitted[_listHash] = false;
264264
session.submittedLists.pop();
265-
session.sumDeposit = session.sumDeposit - submission.deposit;
265+
session.sumDeposit -= submission.deposit;
266+
reservedETH -= submission.deposit;
266267
payable(msg.sender).transfer(submission.deposit);
267-
268-
reservedETH = reservedETH - submission.deposit;
269268
}
270269

271270
/// @dev Approves a transaction list or creates a dispute if more than one list was submitted.
@@ -288,7 +287,7 @@ contract KlerosGovernor is IArbitrableV2 {
288287
session.status = Status.Resolved;
289288
sessions.push();
290289

291-
reservedETH = reservedETH - sumDeposit;
290+
reservedETH -= sumDeposit;
292291
} else {
293292
session.status = Status.DisputeCreated;
294293
uint256 arbitrationCost = arbitrator.arbitrationCost(arbitratorExtraData);
@@ -320,7 +319,7 @@ contract KlerosGovernor is IArbitrableV2 {
320319
submission.submitter.send(session.sumDeposit);
321320
}
322321
// If the ruling is "0" the reserved funds of this session become expendable.
323-
reservedETH = reservedETH - session.sumDeposit;
322+
reservedETH -= session.sumDeposit;
324323

325324
session.sumDeposit = 0;
326325
lastApprovalTime = block.timestamp;

0 commit comments

Comments
 (0)