From 527b6f96a4486450a6334fbff6aea6bf62d18a03 Mon Sep 17 00:00:00 2001 From: gpsanant Date: Thu, 12 Sep 2024 22:41:47 -0700 Subject: [PATCH] remove duped increase operator scaled shares --- src/contracts/core/DelegationManager.sol | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/contracts/core/DelegationManager.sol b/src/contracts/core/DelegationManager.sol index 78b9b1c22e..bb7c4acc9f 100644 --- a/src/contracts/core/DelegationManager.sol +++ b/src/contracts/core/DelegationManager.sol @@ -685,31 +685,8 @@ contract DelegationManager is * The return value will be lower than the input value in the case where the staker has an existing share deficit */ (shares, existingShares) = eigenPodManager.addShares({podOwner: staker, shares: shares}); - address podOwnerOperator = delegatedTo[staker]; - // Similar to `isDelegated` logic - if (podOwnerOperator != address(0)) { - _increaseOperatorScaledShares({ - operator: podOwnerOperator, - // the 'staker' here is the address receiving new shares - staker: staker, - strategy: withdrawal.strategies[i], - shares: shares, - totalMagnitude: totalMagnitudes[i] - }); - } } else { existingShares = strategyManager.addShares(msg.sender, tokens[i], withdrawal.strategies[i], shares); - // Similar to `isDelegated` logic - if (currentOperator != address(0)) { - _increaseOperatorScaledShares({ - operator: currentOperator, - // the 'staker' here is the address receiving new shares - staker: msg.sender, - strategy: withdrawal.strategies[i], - shares: shares, - totalMagnitude: totalMagnitudes[i] - }); - } } } }