-
Notifications
You must be signed in to change notification settings - Fork 28
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
[EigenLayer Slashing] (1) update EtherFiRestaker, (2) fixes in EtherFiNode #222
Conversation
Signed-off-by: Jacob T Firek <[email protected]>
…n value in ETH via Liquifier
…aimer-for-restaker Signed-off-by: syko <[email protected]>
Set claimer for stETH restaking rewards
src/EtherFiRestaker.sol
Outdated
|
||
IRewardsCoordinator public immutable rewardsCoordinator; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
src/EtherFiRestaker.sol
Outdated
// shares: sharesArr, | ||
// withdrawer: address(this) | ||
// }); | ||
function _queueWithdrawlsByShares(address _token, uint256 _shares) internal returns (bytes32[] memory) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo Withdrawls -> Withdrawals
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
splitBalanceInExecutionLayer
, convert the share amount to the underlying asset amount_queueEigenpodFullWithdrawal
, convert the share amount to the underlying asset amount + withdraw the full amount if it is the last validator of the podwithdrawalRootToWithdrawal
. the upgrade will be performed when there is no queued withdrawal.withdrawalRootsSet
to help track the queued withdrawalsquoteByFairValue
where neededselClaimerFor