Skip to content

Commit

Permalink
chore: update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
wadealexc committed Nov 14, 2024
1 parent 7964785 commit 080a510
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/contracts/libraries/SlashingLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,13 @@ library SlashingLib {
uint256 addedShares,
uint256 slashingFactor
) internal {
// If this is the staker's first deposit for this operator, set the scaling factor to
// the inverse of slashingFactor
if (existingDepositShares == 0) {
// if this is their first deposit for the operator, set the scaling factor to inverse of maxMagnitude
/// forgefmt: disable-next-item
dsf._scalingFactor = uint256(WAD).divWad(slashingFactor);
return;
}

/**
* Base Equations:
* (1) newShares = currentShares + addedShares
Expand Down

0 comments on commit 080a510

Please sign in to comment.