Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EigenLayer Slashing] (1) update EtherFiRestaker, (2) fixes in EtherFiNode #222

Conversation

seongyun-ko
Copy link
Contributor

@seongyun-ko seongyun-ko commented Dec 30, 2024

  • EtherFiNode
    • at splitBalanceInExecutionLayer, convert the share amount to the underlying asset amount
    • at _queueEigenpodFullWithdrawal, convert the share amount to the underlying asset amount + withdraw the full amount if it is the last validator of the pod
  • EtherFiRestaker
    • update according to EigenLayer upgrade
    • deprecate the contract variable withdrawalRootToWithdrawal. the upgrade will be performed when there is no queued withdrawal.
    • keep withdrawalRootsSet to help track the queued withdrawals
    • use quoteByFairValue where needed
    • add selClaimerFor

@seongyun-ko seongyun-ko requested a review from solipsis December 30, 2024 05:19
@seongyun-ko seongyun-ko changed the title (1) update EtherFiRestaker, (2) fixes in EtherFiNode [EigenLayer Slashing] (1) update EtherFiRestaker, (2) fixes in EtherFiNode Dec 30, 2024

IRewardsCoordinator public immutable rewardsCoordinator;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe removing the mapping and then declaring this new variable as immutable causes a storage issue since the immutable variable won't be in storage. There will be a conflict for the next storage variable we add in a future upgrade

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense. we can keep the mapping variable putting DEPRECATED_ prefix

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

// shares: sharesArr,
// withdrawer: address(this)
// });
function _queueWithdrawlsByShares(address _token, uint256 _shares) internal returns (bytes32[] memory) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo Withdrawls -> Withdrawals

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@seongyun-ko seongyun-ko requested a review from solipsis December 31, 2024 23:53
@solipsis solipsis merged commit e9fb045 into syko/feature/el_slashing/ether_fi_node Dec 31, 2024
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.

3 participants