The withdrawal mechanism in the strategy fails to account for WETH balances transformed from ALETH in the Transmuter. As a result, users(whales) may experience withdrawal blockage when a significant portion of ALETH has been transformed into WETH but remains unswapped. This forces users to either delay their withdrawal until a keeper calls claimAndSwap, creating a suboptimal and potentially harmful user experience.
The Mechanism : Deposited ALETH is sent to the Transmuter, where it is transformed into WETH over time. The transformed WETH is later swapped back into ALETH via a router mechanism and the increasing ALETH actually means the yield. However, this causes some issues since the withdrawal mechanism in the strategy fails to account for WETH balances transformed from ALETH in the Transmuter.
Take withdraw for example:
During withdrawal, the availableWithdrawLimit calculates the maximum withdrawable amount as the sum of ALETH held in the strategy and the unexchangedBalance in the transmuter. However, the availableWithdrawLimit does not include the value of WETH that has been transformed but not yet swapped.
The maxWithdraw function restricts withdrawals to the minimum of the calculated limit and the user’s balance.
If significant ALETH has been transformed into WETH, the maxWithdraw function will return a reduced value, blocking large withdrawals until a keeper calls claimAndSwap. For users with large deposits (e.g., whales), this mechanism can prevent timely access to funds, especially during periods of high transformation rates where most ALETH is held as WETH.
If significant ALETH has been transformed into WETH, the maxWithdraw function will return a reduced value, blocking large withdrawals until a keeper calls claimAndSwap. For users with large deposits (e.g., whales), this mechanism can prevent timely access to funds, especially during periods of high transformation rates where most ALETH is held as WETH.
Manual
A possible way is to allow a partial swap of WETH back into ALETH.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.