Closed sherlock-admin2 closed 1 year ago
2 comment(s) were left on this issue during the judging contest.
0xyPhilic commented:
invalid because it is not possible to transfer ETH - if the underlying is WETH it is WETH which is transferred across the whole flow
Kral01 commented:
this is not a valid issue
feelereth
high
Risk of ETH becoming locked in the contract
Summary
risk of ETH becoming locked in the contract if the underlying token is WETH (wrapped ETH)
Vulnerability Detail
The key parts of the code related to this risk are:
The issue is that if uToken is WETH, the safeTransfer will send ETH directly to the contract. Since the contract does not implement any logic to withdraw ETH, it could become stuck.
Example:
Impact
ETH deposits would be unusable and locked forever
Code Snippet
https://github.com/sherlock-audit/2023-07-blueberry/blob/main/blueberry-core/contracts/vault/SoftVault.sol#L125 https://github.com/sherlock-audit/2023-07-blueberry/blob/main/blueberry-core/contracts/vault/SoftVault.sol#L128-L129 https://github.com/sherlock-audit/2023-07-blueberry/blob/main/blueberry-core/contracts/vault/SoftVault.sol#L142
Tool used
Manual Review
Recommendation
Implement a withdrawal pattern to allow the owner to sweep stuck ETH.