H-02 MitigationConfirmed #51
Labels
edited-by-warden
mitigation-confirmed
MR-H-02
satisfactory
satisfies C4 submission criteria; eligible for awards
Lines of code
Vulnerability details
C4 Issue
H-02: code-423n4/2024-04-renzo-findings#395
Issue Details
Function getTokenBalanceFromStrategy is used to calculate the amount of ezETH to mint against a given value in collateral tokens. But in checking condition, it wrongly used
address(this)
instead ofaddress(token)
, which lead to failing to consider collaterals in the withdrawal process for calculation.Mitigation
Mitigation successfully mitigates the original issue by modifying
address(this)
toaddress(token)
Additional code refactoring has been made so that the code is leaner.
Conclusion
Mitigation confirmed.
The text was updated successfully, but these errors were encountered: