sherlock-audit / 2024-06-leveraged-vaults-judging

9 stars 8 forks source link

0xrobsol - Incomplete Handling of Liquidation Events in _finalizeWithdrawsManual #124

Closed sherlock-admin4 closed 2 months ago

sherlock-admin4 commented 2 months ago

0xrobsol

High

Incomplete Handling of Liquidation Events in _finalizeWithdrawsManual

Summary

The _finalizeWithdrawsManual function manages the finalization of withdraw requests for a specific account within a vault. However, it fails to consistently handle cases where the account's withdraw request has been split or remains unfinalized, potentially resulting in unintended consequences during liquidation events.

Vulnerability Detail

The function _finalizeWithdrawsManual is designed to execute finalization logic for withdraw requests associated with a given account.

Impact

Code Snippet

https://github.com/sherlock-audit/2024-06-leveraged-vaults/blob/main/leveraged-vaults-private/contracts/vaults/common/WithdrawRequestBase.sol#L189-L194

Tool used

Manual Review

Recommendation

sherlock-admin4 commented 2 months ago

1 comment(s) were left on this issue during the judging contest.

0xmystery commented:

Low/QA at most