The require are very helpful and easy to understand, but the problem with require statements is that they store a string as an error message. And strings are not much gas optimized.
Solidity v0.8.4 introduces custom errors, a gas-efficient way to explain operation failures. Unlike costly string messages, custom errors are defined using the error statement and can be used in contracts, interfaces, and libraries.
Inefficient Gas Usage
Manual Review
To make the contract gas optimized we use custom errors within if-else statements or use assembly
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.