@@ -456,22 +456,16 @@ contract KlerosCoreUniversity is IArbitratorV2, UUPSProxiable, Initializable {
456456 /// @param _newStake The new stake.
457457 /// Note that the existing delayed stake will be nullified as non-relevant.
458458 function setStake (uint96 _courtID , uint256 _newStake ) external {
459- _setStake (msg .sender , _courtID, _newStake, false , OnError.Revert);
459+ _setStake (msg .sender , _courtID, _newStake, OnError.Revert);
460460 }
461461
462462 /// @dev Sets the stake of a specified account in a court, typically to apply a delayed stake or unstake inactive jurors.
463463 /// @param _account The account whose stake is being set.
464464 /// @param _courtID The ID of the court.
465465 /// @param _newStake The new stake.
466- /// @param _alreadyTransferred Whether the PNKs have already been transferred to the contract.
467- function setStakeBySortitionModule (
468- address _account ,
469- uint96 _courtID ,
470- uint256 _newStake ,
471- bool _alreadyTransferred
472- ) external {
466+ function setStakeBySortitionModule (address _account , uint96 _courtID , uint256 _newStake ) external {
473467 if (msg .sender != address (sortitionModule)) revert SortitionModuleOnly ();
474- _setStake (_account, _courtID, _newStake, _alreadyTransferred, OnError.Return);
468+ _setStake (_account, _courtID, _newStake, OnError.Return);
475469 }
476470
477471 /// @inheritdoc IArbitratorV2
@@ -1042,16 +1036,9 @@ contract KlerosCoreUniversity is IArbitratorV2, UUPSProxiable, Initializable {
10421036 /// @param _account The account to set the stake for.
10431037 /// @param _courtID The ID of the court to set the stake for.
10441038 /// @param _newStake The new stake.
1045- /// @param _alreadyTransferred Whether the PNKs were already transferred to/from the staking contract.
10461039 /// @param _onError Whether to revert or return false on error.
10471040 /// @return Whether the stake was successfully set or not.
1048- function _setStake (
1049- address _account ,
1050- uint96 _courtID ,
1051- uint256 _newStake ,
1052- bool _alreadyTransferred ,
1053- OnError _onError
1054- ) internal returns (bool ) {
1041+ function _setStake (address _account , uint96 _courtID , uint256 _newStake , OnError _onError ) internal returns (bool ) {
10551042 if (_courtID == FORKING_COURT || _courtID > courts.length ) {
10561043 _stakingFailed (_onError, StakingResult.CannotStakeInThisCourt); // Staking directly into the forking court is not allowed.
10571044 return false ;
@@ -1063,8 +1050,7 @@ contract KlerosCoreUniversity is IArbitratorV2, UUPSProxiable, Initializable {
10631050 (uint256 pnkDeposit , uint256 pnkWithdrawal , StakingResult stakingResult ) = sortitionModule.setStake (
10641051 _account,
10651052 _courtID,
1066- _newStake,
1067- _alreadyTransferred
1053+ _newStake
10681054 );
10691055 if (stakingResult != StakingResult.Successful) {
10701056 _stakingFailed (_onError, stakingResult);
0 commit comments