Skip to content

Commit 0eb3292

Browse files
committed
chore: clean up
1 parent 51d7739 commit 0eb3292

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

contracts/src/arbitration/KlerosCoreBase.sol

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,8 +1160,6 @@ abstract contract KlerosCoreBase is IArbitratorV2, Initializable, UUPSProxiable
11601160
error CannotDisableClassicDK();
11611161
error StakingNotPossibleInThisCourt();
11621162
error StakingLessThanCourtMinStake();
1163-
error StakingTransferFailed();
1164-
error UnstakingTransferFailed();
11651163
error ArbitrationFeesNotEnough();
11661164
error DisputeKitNotSupportedByCourt();
11671165
error MustSupportDisputeKitClassic();

contracts/src/arbitration/StakeControllerBase.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -413,10 +413,11 @@ abstract contract StakeControllerBase is IStakeController, Initializable, UUPSPr
413413
}
414414
}
415415

416+
// If the courtID was found in the array
416417
if (courtIndexToRemove != type(uint256).max) {
417-
// If the courtID was found in the array
418-
// If it's not the last element, swap the last element into its place
418+
// If it's not the last element
419419
if (courtIndexToRemove != length - 1) {
420+
// Swap the last element into its place
420421
_stakedCourts[courtIndexToRemove] = _stakedCourts[length - 1];
421422
}
422423
// Remove the last element (either the original last, or the one that was swapped)
@@ -440,5 +441,4 @@ abstract contract StakeControllerBase is IStakeController, Initializable, UUPSPr
440441
error NotInStakingPhase();
441442
error NotDrawingPhase();
442443
error NoDelayedStakes();
443-
error InvalidMigrationData();
444444
}

contracts/src/libraries/Constants.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ uint256 constant DEFAULT_K = 6; // Default number of children per node.
2020
uint256 constant DEFAULT_NB_OF_JURORS = 3; // The default number of jurors in a dispute.
2121
IERC20 constant NATIVE_CURRENCY = IERC20(address(0)); // The native currency, such as ETH on Arbitrum, Optimism and Ethereum L1.
2222

23-
// DEPRECATED
23+
// DEPRECATED: still used by University contracts for now
2424
enum OnError {
2525
Revert,
2626
Return
@@ -29,7 +29,7 @@ enum OnError {
2929
enum StakingResult {
3030
Successful,
3131
Delayed,
32-
StakingTransferFailed, // DEPRECATED
32+
StakingTransferFailed, // DEPRECATED: still used by University contracts for now
3333
UnstakingTransferFailed, // DEPRECATED
3434
CannotStakeInMoreCourts, // DEPRECATED
3535
CannotStakeInThisCourt, // DEPRECATED

0 commit comments

Comments
 (0)