Closed sherlock-admin closed 7 months ago
almurhasan
medium
Deposit pool balance can’t be deposited to eigenlayer if any user doesn't withdraw for a long time which will cause shareowed = 0 for a long time.
Those deposit pool asset’s balance will be unutilized and can’t earn any rewards.
https://github.com/sherlock-audit/2024-02-rio-network-core-protocol/blob/main/rio-sherlock-audit/contracts/restaking/RioLRTCoordinator.sol#L133
Manual Review
Remove sharesowed = 0 from the if statement.
Duplicate of #18
This also a valid issue. I think this is not a feature
almurhasan
medium
Deposit pool balance can’t be deposited to eigenlayer in a case.
Summary
Deposit pool balance can’t be deposited to eigenlayer if any user doesn't withdraw for a long time which will cause shareowed = 0 for a long time.
Vulnerability Detail
Impact
Those deposit pool asset’s balance will be unutilized and can’t earn any rewards.
Code Snippet
https://github.com/sherlock-audit/2024-02-rio-network-core-protocol/blob/main/rio-sherlock-audit/contracts/restaking/RioLRTCoordinator.sol#L133
Tool used
Manual Review
Recommendation
Remove sharesowed = 0 from the if statement.
Duplicate of #18