Skip to content

Commit

Permalink
update operator stake to 1 when below min
Browse files Browse the repository at this point in the history
  • Loading branch information
gpsanant committed Jun 27, 2023
1 parent 8280cc5 commit 4262ada
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/contracts/middleware/StakeRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,8 @@ contract StakeRegistry is StakeRegistryStorage {

// check if minimum requirements have been met
if (operatorStakeUpdate.stake < minimumStakeForQuorum[quorumNumber]) {
operatorStakeUpdate.stake = uint96(0);
// set staker to 1 to note they are still active, but miniscule stake
operatorStakeUpdate.stake = uint96(1);
}
// get stakeBeforeUpdate and update with new stake
uint96 stakeBeforeUpdate = _recordOperatorStakeUpdate(operatorId, quorumNumber, operatorStakeUpdate);
Expand Down

0 comments on commit 4262ada

Please sign in to comment.