Current impl will reduce their validator weight on the registry via changeValidatorWeight before removing them via remove. Should we just call remove instead?
|
if (_isInRegistry) { |
|
registry.changeValidatorWeight(_validatorOwner, _newWeight); |
|
if (!_isAboveThreshold) registry.remove(_validatorOwner); |
Current impl will reduce their validator weight on the registry via
changeValidatorWeightbefore removing them viaremove. Should we just callremoveinstead?zkstaker/src/ZkStaker.sol
Lines 475 to 477 in 3228dfa