Closed code423n4 closed 3 years ago
hrkrshnn
notHalted
depositMultiple
Since the call to deposit already has the notHalted modifier, doing the check during depositMultiple is redundant. Saves at least 100 gas.
100
https://github.com/code-423n4/2021-09-yaxis/blob/main/contracts/v3/Vault.sol#L194
Duplicate of #70
Handle
hrkrshnn
Vulnerability details
Redundant
notHalted
modifier indepositMultiple
Since the call to deposit already has the
notHalted
modifier, doing the check duringdepositMultiple
is redundant. Saves at least100
gas.https://github.com/code-423n4/2021-09-yaxis/blob/main/contracts/v3/Vault.sol#L194