Missing Check for Removed Vaults in VaultControllerStrategy Contract
In the _depositToVaults function of the VaultControllerStrategy contract, there is a loop for depositing into ungrouped vaults. However, this loop lacks a check for whether the vault has been removed (isRemoved). This could potentially lead to depositing funds into deactivated vaults, resulting in fund loss or mismanagement.
Implementing this change will enhance the contract's security and reliability by preventing funds from being erroneously deposited into removed vaults.
vscode
Add a check for vault.isRemoved() before performing any deposit operations. This will ensure that only active vaults receive deposits. The suggested code modification is as follows:
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.