File tree 1 file changed +4
-5
lines changed
contracts/src/arbitration
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -262,10 +262,9 @@ contract KlerosGovernor is IArbitrableV2 {
262
262
session.submittedLists[_submissionID] = session.submittedLists[session.submittedLists.length - 1 ];
263
263
session.alreadySubmitted[_listHash] = false ;
264
264
session.submittedLists.pop ();
265
- session.sumDeposit = session.sumDeposit - submission.deposit;
265
+ session.sumDeposit -= submission.deposit;
266
+ reservedETH -= submission.deposit;
266
267
payable (msg .sender ).transfer (submission.deposit);
267
-
268
- reservedETH = reservedETH - submission.deposit;
269
268
}
270
269
271
270
/// @dev Approves a transaction list or creates a dispute if more than one list was submitted.
@@ -288,7 +287,7 @@ contract KlerosGovernor is IArbitrableV2 {
288
287
session.status = Status.Resolved;
289
288
sessions.push ();
290
289
291
- reservedETH = reservedETH - sumDeposit;
290
+ reservedETH -= sumDeposit;
292
291
} else {
293
292
session.status = Status.DisputeCreated;
294
293
uint256 arbitrationCost = arbitrator.arbitrationCost (arbitratorExtraData);
@@ -320,7 +319,7 @@ contract KlerosGovernor is IArbitrableV2 {
320
319
submission.submitter.send (session.sumDeposit);
321
320
}
322
321
// If the ruling is "0" the reserved funds of this session become expendable.
323
- reservedETH = reservedETH - session.sumDeposit;
322
+ reservedETH -= session.sumDeposit;
324
323
325
324
session.sumDeposit = 0 ;
326
325
lastApprovalTime = block .timestamp ;
You can’t perform that action at this time.
0 commit comments