Skip to content

Commit

Permalink
refactor: rename forced to boosted
Browse files Browse the repository at this point in the history
use 'boosted' instead of 'forced' when we describe a mode when validators to exit are prioritized
  • Loading branch information
mkurayan committed Nov 25, 2024
1 parent 508cd74 commit f7c7632
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions contracts/0.4.24/nos/NodeOperatorsRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ contract NodeOperatorsRegistry is AragonApp, Versioned {
uint8 internal constant TOTAL_DEPOSITED_KEYS_COUNT_OFFSET = 3;

// TargetValidatorsStats
/// @dev Target limit mode, allows limiting target active validators count for operator (0 = disabled, 1 = soft mode, 2 = forced mode)
/// @dev Target limit mode, allows limiting target active validators count for operator (0 = disabled, 1 = soft mode, 2 = boosted mode)
uint8 internal constant TARGET_LIMIT_MODE_OFFSET = 0;
/// @dev relative target active validators limit for operator, set by DAO
/// @notice used to check how many keys should go to exit, 0 - means all deposited keys would be exited
Expand Down Expand Up @@ -689,7 +689,7 @@ contract NodeOperatorsRegistry is AragonApp, Versioned {

/// @notice Updates the limit of the validators that can be used for deposit by DAO
/// @param _nodeOperatorId Id of the node operator
/// @param _targetLimitMode target limit mode (0 = disabled, 1 = soft mode, 2 = forced mode)
/// @param _targetLimitMode target limit mode (0 = disabled, 1 = soft mode, 2 = boosted mode)
/// @param _targetLimit Target limit of the node operator
function updateTargetValidatorsLimits(uint256 _nodeOperatorId, uint256 _targetLimitMode, uint256 _targetLimit) public {
_onlyExistedNodeOperator(_nodeOperatorId);
Expand Down
2 changes: 1 addition & 1 deletion contracts/0.8.9/interfaces/IStakingModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ interface IStakingModule {

/// @notice Returns all-validators summary belonging to the node operator with the given id
/// @param _nodeOperatorId id of the operator to return report for
/// @return targetLimitMode shows whether the current target limit applied to the node operator (0 = disabled, 1 = soft mode, 2 = forced mode)
/// @return targetLimitMode shows whether the current target limit applied to the node operator (0 = disabled, 1 = soft mode, 2 = boosted mode)
/// @return targetValidatorsCount relative target active validators limit for operator
/// @return stuckValidatorsCount number of validators with an expired request to exit time
/// @return refundedValidatorsCount number of validators that can't be withdrawn, but deposit
Expand Down
2 changes: 1 addition & 1 deletion test/0.8.9/stakingRouter/stakingRouter.module-sync.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ describe("StakingRouter:module-sync", () => {

context("updateTargetValidatorsLimits", () => {
const NODE_OPERATOR_ID = 0n;
const TARGET_LIMIT_MODE = 1; // 1 - soft, i.e. on WQ request; 2 - forced
const TARGET_LIMIT_MODE = 1; // 1 - soft, i.e. on WQ request; 2 - boosted
const TARGET_LIMIT = 100n;

it("Reverts if the caller does not have the role", async () => {
Expand Down

0 comments on commit f7c7632

Please sign in to comment.