Skip to content

Conversation

zeevick10
Copy link


Description

This PR improves the security of the EigenPod contract by moving ETH refunds to the sender before any external calls are made in the consolidation and withdrawal request functions.

  • Refunds any excess ETH to the user before invoking external .call operations.
  • Prevents potential reentrancy vulnerabilities.
  • Follows best practices recommended by security auditors and OpenZeppelin.

Rationale:
Returning ETH after external calls is a known anti-pattern and can open the door to reentrancy attacks. This change ensures the contract is robust against such issues.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant