Skip to content

Commit 664f9cd

Browse files
committed
chore: clarify comment
1 parent 86845ac commit 664f9cd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/contracts/core/DelegationManager.sol

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,10 @@ contract DelegationManager is
228228
maxMagnitudes: singleMaxMagnitude
229229
});
230230

231-
// all shares and queued withdrawn and no delegated operator
232-
// reset staker's depositScalingFactor to default
231+
// all shares are queued withdrawn with no delegated operator, so
232+
// reset staker's depositScalingFactor back to WAD default.
233+
// If this is not reset, the depositScalingFactor would be incorrect
234+
// when the staker deposits and queue withdraws in the future.
233235
ssf.depositScalingFactor = WAD;
234236
emit DepositScalingFactorUpdated(staker, strategies[i], WAD);
235237
}

0 commit comments

Comments
 (0)