Gas Optimizations #299
Labels
bug
Warden finding
G (Gas Optimization)
old-submission-method
sponsor disputed
Sponsor cannot duplicate the issue, or otherwise disagrees this is an issue
https://github.com/code-423n4/2022-07-fractional/blob/e2c5a962a94106f9495eb96769d7f60f7d5b14c9/src/Vault.sol#L64:
the revert should be at start to avoid unnecessary wastage of gas
In https://github.com/code-423n4/2022-07-fractional/blob/e2c5a962a94106f9495eb96769d7f60f7d5b14c9/src/Vault.sol#L78 and https://github.com/code-423n4/2022-07-fractional/blob/e2c5a962a94106f9495eb96769d7f60f7d5b14c9/src/Vault.sol#L104 , the for loop can be optimised
for (uint256 i; i<length) {
unchecked {
++i;
}
}
The text was updated successfully, but these errors were encountered: