First Flight #18: T-Swap

First Flight #18
Beginner FriendlyDeFiFoundry
100 EXP
View results
Submission Details
Severity: low
Invalid

not stylish code , not used require

Summary

    if (amount == 0) {
        revert TSwapPool__MustBeMoreThanZero();
    }
    _;

typycally using
require( condition, " some alert what went wrong ")
_;

Vulnerability Details

Good to have some alert and know better what went wrong when error occur.

Impact

Users might get confused. What mus be more than zero ?

Tools Used

Code review.

Recommendations

use require and more detailed error description so the user would know what actions need to perform.

Updates

Appeal created

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.