diff --git a/src/contracts/core/DelegationManager.sol b/src/contracts/core/DelegationManager.sol index f8ab5a2dd4..e8799856e7 100644 --- a/src/contracts/core/DelegationManager.sol +++ b/src/contracts/core/DelegationManager.sol @@ -427,6 +427,9 @@ contract DelegationManager is uint256 shares, uint256 proportionPodBalanceDecrease ) external onlyEigenPodManager { + // read doc to understand this + + // a_n uint256 scaledSharesBefore = shares * beaconChainScalingFactors[staker] / SlashingLib.PRECISION_FACTOR @@ -434,6 +437,7 @@ contract DelegationManager is beaconChainScalingFactors[staker] = beaconChainScalingFactors[staker] * (SlashingLib.PRECISION_FACTOR - proportionPodBalanceDecrease) / SlashingLib.PRECISION_FACTOR; + // a_{n+1} uint256 scaledSharesAfter = shares * beaconChainScalingFactors[staker] / SlashingLib.PRECISION_FACTOR