|
function _stakeMore(Deposit storage deposit, DepositIdentifier _depositId, uint256 _amount) |
|
internal |
|
virtual |
|
override(Staker, StakerCapDeposits) |
|
{ |
|
address _depositValidator = validatorForDeposit[_depositId]; |
|
validatorForAtomicEarningPowerCalculation = _depositValidator; |
|
|
|
validatorStakeWeight[_depositValidator] += _amount; |
|
_changeValidatorWeight(_depositValidator); |
|
StakerCapDeposits._stakeMore(deposit, _depositId, _amount); |
|
|
|
validatorForAtomicEarningPowerCalculation = address(0); |
|
} |
what are the consequences? we should probably no-op rather than increase address(0)'s stake weight...
zkstaker/src/ZkStaker.sol
Lines 414 to 427 in 3228dfa
what are the consequences? we should probably no-op rather than increase
address(0)'s stake weight...