From 33aab3817922556347572a0edf8e401ab569f30f Mon Sep 17 00:00:00 2001 From: madlabman <10616301+madlabman@users.noreply.github.com> Date: Tue, 10 Dec 2024 12:01:07 +0100 Subject: [PATCH] chore: update comment for slashing initial penalty accounting --- src/CSModule.sol | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/CSModule.sol b/src/CSModule.sol index 5104c568..f0ba0bb3 100644 --- a/src/CSModule.sol +++ b/src/CSModule.sol @@ -891,7 +891,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;