Closed sherlock-admin closed 1 year ago
2 comment(s) were left on this issue during the judging contest.
Trumpero commented:
invalid, QA
YakuzaKiawe commented:
invalid as gas optimizations and low severity bugs are not included in Criteria for Issue Validity
JP_Courses
false
Some minor issues & recommendations
Summary
if statements
along with custom errors, instead of require statements, is better overall.external
.Vulnerability Detail
https://github.com/sherlock-audit/2023-07-kyber-swap/blob/main/ks-elastic-sc/contracts/Factory.sol#L139
Existing comment: "Returns true if removal was successful, that is if it was not already present"
Recommendation: Corrected comment: "Returns true if removal was successful, that is if it was already present"
external
.https://github.com/sherlock-audit/2023-07-kyber-swap/blob/main/ks-elastic-sc/contracts/Factory.sol#L153
https://github.com/sherlock-audit/2023-07-kyber-swap/blob/main/ks-elastic-sc/contracts/Factory.sol#L158-L160
From below comment I suspect/assume that the max acceptable value for tick distance is actually 16384, which leads me to conclude that using < is wrong:
Recommendation:
Impact
QA/LOW impact.
Code Snippet
Tool used
VSC. Manual Review
Recommendation
As per above.