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 5fb59b5 commit b576a7cCopy full SHA for b576a7c
src/contracts/core/DelegationManager.sol
@@ -681,7 +681,10 @@ contract DelegationManager is
681
});
682
}
683
684
- /// @dev Calculate the amount of slashing to apply to the staker's shares
+ /// @dev Calculate the amount of slashing to apply to the staker's shares.
685
+ /// @dev Be mindful of rounding in `mulWad()`, it's possible for the slashing factor to round down to 0
686
+ /// even when both operatorMaxMagnitude and beaconChainSlashingFactor are non-zero. This is only possible
687
+ /// in an edge case where the operator has a very low maxMagnitude.
688
function _getSlashingFactor(
689
address staker,
690
IStrategy strategy,
0 commit comments