Lack of Consistency Check Between numVaultGroups and vaults Length
The FundFlowController contract does not perform any checks to ensure that the numVaultGroups variable is consistent with the length of the vaults array obtained from the IVaultControllerStrategy contract. This inconsistency can lead to various operational issues and vulnerabilities.
Functions like _getVaultDepositOrder and _getVaultWithdrawalOrder may encounter out-of-bounds errors if numVaultGroups and vaults lengths are inconsistent.
vscode
Implement a check during the initialization of the FundFlowController contract to ensure that the length of the vaults array is a multiple of numVaultGroups. This will help maintain consistency and prevent operational errors.
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.