The Vault.depositMultiple function has a notHalted multiplier that the subcalls to deposit already check.
Furthermore, all repeated deposit calls check the notHalted modifier each time.
Recommended Mitigation Steps
Consider refactoring the code such that the notHalted modifier is only evaluated once instead of _tokens.length + 1 times.
Handle
cmichel
Vulnerability details
The
Vault.depositMultiple
function has anotHalted
multiplier that the subcalls todeposit
already check. Furthermore, all repeateddeposit
calls check thenotHalted
modifier each time.Recommended Mitigation Steps
Consider refactoring the code such that the
notHalted
modifier is only evaluated once instead of_tokens.length + 1
times.