From 70dcd43f0207a2df5f8195c8a518df86860d6ee6 Mon Sep 17 00:00:00 2001 From: Michael Sun Date: Fri, 13 Sep 2024 10:49:09 -0400 Subject: [PATCH] chore: fmt --- src/contracts/core/DelegationManager.sol | 27 +++++++++++++++++------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/src/contracts/core/DelegationManager.sol b/src/contracts/core/DelegationManager.sol index 331c3b7da..2296cdfb2 100644 --- a/src/contracts/core/DelegationManager.sol +++ b/src/contracts/core/DelegationManager.sol @@ -73,7 +73,16 @@ contract DelegationManager is IAVSDirectory _avsDirectory, IAllocationManager _allocationManager, uint32 _MIN_WITHDRAWAL_DELAY - ) DelegationManagerStorage(_strategyManager, _slasher, _eigenPodManager, _avsDirectory, _allocationManager, _MIN_WITHDRAWAL_DELAY) { + ) + DelegationManagerStorage( + _strategyManager, + _slasher, + _eigenPodManager, + _avsDirectory, + _allocationManager, + _MIN_WITHDRAWAL_DELAY + ) + { _disableInitializers(); ORIGINAL_CHAIN_ID = block.chainid; } @@ -632,7 +641,8 @@ contract DelegationManager is // Take already scaled staker shares and scale again according to current operator totalMagnitude // This is because the totalMagnitude may have changed since withdrawal was queued and the staker shares // are still susceptible to slashing - sharesToWithdraw = SlashingLib.calculateSharesToCompleteWithdraw(withdrawal.scaledShares[i], totalMagnitudes[i]); + sharesToWithdraw = + SlashingLib.calculateSharesToCompleteWithdraw(withdrawal.scaledShares[i], totalMagnitudes[i]); } // Withdraws `shares` in `strategy` to `withdrawer`. If the shares are virtual beaconChainETH shares, @@ -814,12 +824,13 @@ contract DelegationManager is } uint256 stakerScalingFactor = _getStakerScalingFactor(staker, strategies[i]); require( - sharesToWithdraw[i] <= SlashingLib.getWithdrawableShares({ - staker: staker, - stakerScalingFactor: stakerScalingFactor, - shares: totalShares, - currTotalMagnitude: totalMagnitudes[i] - }), + sharesToWithdraw[i] + <= SlashingLib.getWithdrawableShares({ + staker: staker, + stakerScalingFactor: stakerScalingFactor, + shares: totalShares, + currTotalMagnitude: totalMagnitudes[i] + }), WithdrawalExeedsMax() );