Skip to content

Commit

Permalink
chore: update comment for slashing initial penalty accounting
Browse files Browse the repository at this point in the history
  • Loading branch information
madlabman committed Dec 10, 2024
1 parent 8820eb7 commit dded936
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/CSModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,9 @@ contract CSModule is
emit WithdrawalSubmitted(nodeOperatorId, keyIndex, amount, pubkey);

if (isSlashed) {
// XXX: Can't remove the check so far.
// NOTE: Can't remove the check so far to avoid double-accounting of penalty. Make sure
// we decided to go with CSVerifier with no processSalshingProof function deployed first
// with some meaningful grace period.
if (_isValidatorSlashed[pointer]) {
unchecked {
amount += INITIAL_SLASHING_PENALTY;
Expand Down

0 comments on commit dded936

Please sign in to comment.