Closed c4-bot-5 closed 6 months ago
The collateralTokenTVL limits are enforced on deposits. Also the max Cap on LST deposits have been removed by EigenLayer.
CloudEllie marked the issue as primary issue
A review of the current parameters for EigenLayer strategies shows indeed that the caps have been removed.
Downgrading to QA, as it is valid input for future iterations of the RestakeManager.
alcueca changed the severity to QA (Quality Assurance)
alcueca marked the issue as grade-a
alcueca marked the issue as grade-b
This previously downgraded issue has been upgraded by alcueca
alcueca marked the issue as duplicate of #532
alcueca marked the issue as not a duplicate
alcueca changed the severity to QA (Quality Assurance)
Lines of code
https://github.com/code-423n4/2024-04-renzo/blob/main/contracts/RestakeManager.sol#L362-L393
Vulnerability details
Impact
Depositing could be reverted due to improper choosing of the operator delegator, even though there may be another appropriate one available.
Proof of Concept
Some strategies of EigenLayer have deposit limitation variables
maxPerDeposit
andmaxTotalDeposits
. So, if the depositing amount exceedsmaxPerDeposit
or causes an overflow of the strategy's total deposit amount, then the transaction will be reverted.However, the
chooseOperatorDelegatorForDeposit()
function does not consider the amount to be deposited. So, if the strategy of the operator delegator chosen by thechooseOperatorDelegatorForDeposit()
function cannot accommodate the given deposit amount, the transaction will be reverted. In this case, it would be better for the function to choose another, more suitable operator delegator.Especially in a scenario where there is no delegator that doesn't exceed it's allocation limit, the function will only choose the first delegator. This increases the likelihood of the above problem occurring, as all deposits will be concentrated on the first delegator.
Tools Used
Manual review
Recommended Mitigation Steps
The mechanism for choosing the operator delegator for a deposit should be improved to account for the deposit limitation variables of the strategies.
Assessed type
Context