Skip to content

Commit

Permalink
BUGFIX: delegate correct amount of shares in `EigenPod.restakeBeaconC…
Browse files Browse the repository at this point in the history
…hainETH`
  • Loading branch information
ChaoticWalrus committed Oct 6, 2023
1 parent 9235ece commit 5dacb7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/contracts/pods/EigenPodManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ contract EigenPodManager is
address podOwner,
uint256 amountWei
) external onlyEigenPod(podOwner) onlyNotFrozen(podOwner) nonReentrant {
_addShares(podOwner, amountWei);
uint256 sharesAddedAboveZero = _addShares(podOwner, amountWei);
delegationManager.increaseDelegatedShares({
staker: podOwner,
strategy: beaconChainETHStrategy,
shares: amountWei
shares: sharesAddedAboveZero
});
emit BeaconChainETHDeposited(podOwner, amountWei);
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/EigenPod.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1183,7 +1183,7 @@ contract EigenPodTests is ProofParsing, EigenPodPausingConstants {
"withdrawableRestakedExecutionLayerGwei not decremented correctly");
}
*/
function _verifyEigenPodBalanceSharesInvariant(address podowner, IEigenPod pod, bytes32 validatorPubkeyHash) internal {
function _verifyEigenPodBalanceSharesInvariant(address podowner, IEigenPod pod, bytes32 validatorPubkeyHash) internal view {
int256 shares = eigenPodManager.podOwnerShares(podowner);
uint64 withdrawableRestakedExecutionLayerGwei = pod.withdrawableRestakedExecutionLayerGwei();

Expand Down

0 comments on commit 5dacb7d

Please sign in to comment.