Skip to content

Commit

Permalink
remove storage checks
Browse files Browse the repository at this point in the history
  • Loading branch information
mtabasco committed Nov 2, 2023
1 parent 4331945 commit f7e59b9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions contracts/modules/SSVOperators.sol
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ contract SSVOperators is ISSVOperators {

s.operators[operatorId] = operator;

if (s.operatorsWhitelist[operatorId] != address(0)) {
delete s.operatorsWhitelist[operatorId];
}
delete s.operatorsWhitelist[operatorId];

if (currentBalance > 0) {
_transferOperatorBalanceUnsafe(operatorId, currentBalance.expand());
Expand Down Expand Up @@ -169,8 +167,8 @@ contract SSVOperators is ISSVOperators {
operator.fee = shrunkAmount;
s.operators[operatorId] = operator;

if (s.operatorFeeChangeRequests[operatorId].approvalBeginTime != 0)
delete s.operatorFeeChangeRequests[operatorId];
delete s.operatorFeeChangeRequests[operatorId];

emit OperatorFeeExecuted(msg.sender, operatorId, block.number, fee);
}

Expand Down

0 comments on commit f7e59b9

Please sign in to comment.