LendingPool::setCurveVaultcan be called by the owner to update the curveVault that will receive the values from rebalance transactions.
The owner can update the vault address without manually checking totalVaultDeposits the variable, it will temporarily lock funds away until it is updated again. If a new address is added and also receives deposits, the liquidity would be split through different pool addresses.
Withdrawals will be temporarily halted, resulting in a denial of service for withdrawal functions. If this issue is identified after a delay, the situation can worsen, potentially fragmenting the protocol's liquidity across various vaults.
Code Review
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.