Skip to content

Commit

Permalink
feat: add podSharesUpdated to withdrawSharesAsTokens
Browse files Browse the repository at this point in the history
  • Loading branch information
ypatil12 committed Jan 25, 2024
1 parent ca1dd39 commit bd1161a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/contracts/pods/EigenPodManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,11 @@ contract EigenPodManager is
if (shares > currentShareDeficit) {
podOwnerShares[podOwner] = 0;
shares -= currentShareDeficit;
emit PodSharesUpdated(podOwner, currentShareDeficit);
// otherwise get rid of as much deficit as possible, and return early, since there is nothing left over to forward on
} else {
podOwnerShares[podOwner] += int256(shares);
emit PodSharesUpdated(podOwner, shares);
return;
}
}
Expand Down

0 comments on commit bd1161a

Please sign in to comment.