Skip to content

Commit

Permalink
chore: clarify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
8sunyuan committed Oct 21, 2024
1 parent 86845ac commit 664f9cd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/contracts/core/DelegationManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,10 @@ contract DelegationManager is
maxMagnitudes: singleMaxMagnitude
});

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

0 comments on commit 664f9cd

Please sign in to comment.