This repository has been archived by the owner on Sep 8, 2024. It is now read-only.
almurhasan - Calling function queueWithdrawalForUserSettlement will revert. #160
Labels
Non-Reward
This issue will not receive a payout
Sponsor Disputed
The sponsor disputed this issue's validity
almurhasan
high
Calling function queueWithdrawalForUserSettlement will revert.
Summary
This function will revert due to a require statement in eigenlayer’s delegationmanager contract.the statement is withdrawer must be staker.but here withdrawer is not staker.
Vulnerability Detail
Here withdrawer must be msg.sender
Impact
Usersettlement will fail.
Code Snippet
https://github.com/sherlock-audit/2024-02-rio-network-core-protocol/blob/main/rio-sherlock-audit/contracts/restaking/RioLRTOperatorDelegator.sol#L217
https://github.com/Layr-Labs/eigenlayer-contracts/blob/dev/src/contracts/core/DelegationManager.sol#L275
Tool used
Manual Review
Recommendation
Make sure withdrawer and msg.sender is same when calling the function queueWithdrawals(delegationManager contract)
The text was updated successfully, but these errors were encountered: