Skip to content

Commit

Permalink
feat: utility for removing shares from a strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
nican0r committed May 31, 2024
1 parent 8d0c93b commit 7de3c59
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/test/recon/EigenLayerSetupV2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,12 @@ contract EigenLayerSetupV2 {
strategyManager.addStrategiesToDepositWhitelist(deployedStrategiestemp, thirdPartyTransfers);
}

// @notice utility for removing shares from a strategy because IStrategy interface used on Renzo causes conflicts when trying to call removeShares directly
function _removeSharesFromStrategyManager(address staker, address strategy, uint256 sharesToRemove) internal {
IStrategy strategyToRemoveFrom = IStrategy(strategy);
strategyManager.removeShares(staker, strategyToRemoveFrom, sharesToRemove);
}

// @audit this function sets contract addresses with those deployed on mainnet
function _setAddresses() internal {
// eigenLayerProxyAdminAddress = stdJson.readAddress(config, ".addresses.eigenLayerProxyAdmin");
Expand Down

0 comments on commit 7de3c59

Please sign in to comment.