One way to elevate our gas efficiency is by updating our require statements. As it stands, our require statement forces us to store this "Chop: no underlying" as a string array. When you consider how each character in this error log is stored individually, it quickly becomes apparent that the logic required to manage it all can be bulky and inefficient, especially when there is a far more gas-friendly alternative available.
with the use of require(underlyingAmount > 0, "Chop: no underlying");
more gas is used.
Manual Review
Custom Error should be introduced in the solidity code and revert function should be used to display the error. This will make the code lighter and less gas will be used.
Invalid as per docs https://docs.codehawks.com/hawks-auditors/how-to-determine-a-finding-validity
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.