Skip to content

Commit

Permalink
simplify ACL
Browse files Browse the repository at this point in the history
  • Loading branch information
sparrowDom committed Jan 19, 2025
1 parent 91adf81 commit d2f3431
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions contracts/contracts/strategies/sonic/SonicValidatorDelegator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,6 @@ abstract contract SonicValidatorDelegator is InitializableAbstractStrategy {
event UnsupportedValidator(uint256 indexed validatorId);
event DefaultValidatorIdChanged(uint256 indexed validatorId);

/// @dev Throws if called by any account other than the Registrator
modifier onlyRegistrator() {
require(
msg.sender == validatorRegistrator,
"Caller is not the Registrator"
);
_;
}

/// @dev Throws if called by any account other than the Registrator or Strategist
modifier onlyRegistratorOrStrategist() {
require(
Expand Down Expand Up @@ -195,7 +186,7 @@ abstract contract SonicValidatorDelegator is InitializableAbstractStrategy {
// slither-disable-start reentrancy-no-eth
function withdrawFromSFC(uint256 withdrawId)
external
onlyRegistrator
onlyRegistratorOrStrategist
nonReentrant
returns (uint256 withdrawnAmount)
{
Expand Down

0 comments on commit d2f3431

Please sign in to comment.