using operator &&
used more gas
#274
Labels
bug
Something isn't working
G (Gas Optimization)
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
Handle
Tomio
Vulnerability details
Impact
using double require instead of operator
&&
can save more gasProof of Concept
https://github.com/code-423n4/2022-01-insure/blob/main/contracts/Vault.sol#L154
Recommended Mitigation Steps
example:
using &&:
// gas cost 21630
using double require:
The text was updated successfully, but these errors were encountered: