BaseStrategyVault::liquidateVaultCashBalance() are not override in BaseStakingVault.sol
Summary
BaseStrategyVault::liquidateVaultCashBalance() are not override in BaseStakingVault.sol
Vulnerability Detail
The BaseStakingVault contract inherits from the BaseStrategyVault contract. In the BaseStakingVault.sol contract, the deleverageAccount function is overridden to handle the WithDrawRequest scenario. However, the liquidateVaultCashBalance() function is not overridden. If a liquidator uses liquidateVaultCashBalance() for liquidation, it will fail to handle the WithDrawRequest scenario.
ZeroTrust
High
BaseStrategyVault::liquidateVaultCashBalance()
are not override in BaseStakingVault.solSummary
BaseStrategyVault::liquidateVaultCashBalance()
are not override in BaseStakingVault.solVulnerability Detail
The BaseStakingVault contract inherits from the BaseStrategyVault contract. In the BaseStakingVault.sol contract, the deleverageAccount function is overridden to handle the WithDrawRequest scenario. However, the liquidateVaultCashBalance() function is not overridden. If a liquidator uses liquidateVaultCashBalance() for liquidation, it will fail to handle the WithDrawRequest scenario.
Impact
This results in users being unable to withdraw their funds.
Code Snippet
https://github.com/sherlock-audit/2024-06-leveraged-vaults/blob/main/leveraged-vaults-private/contracts/vaults/staking/BaseStakingVault.sol#L208
Tool used
Manual Review
Recommendation
Handle the WithDrawRequest scenario similarly to how it is done in BaseStakingVault::deleverageAccount.