We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86845ac commit 664f9cdCopy full SHA for 664f9cd
src/contracts/core/DelegationManager.sol
@@ -228,8 +228,10 @@ contract DelegationManager is
228
maxMagnitudes: singleMaxMagnitude
229
});
230
231
- // all shares and queued withdrawn and no delegated operator
232
- // reset staker's depositScalingFactor to default
+ // all shares are queued withdrawn with no delegated operator, so
+ // 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.
235
ssf.depositScalingFactor = WAD;
236
emit DepositScalingFactorUpdated(staker, strategies[i], WAD);
237
}
0 commit comments