Dria

Swan
NFTHardhat
21,000 USDC
View results
Submission Details
Severity: low
Invalid

Two functions in Swan contract with wrong natspec

Summary

Two functions in Swan contract with wrong natspec

Vulnerability Details

getListingPrice() and getListing() functions in Swan contract require their natspec to get checked:

the former has a wrong natspec as it describes the status of the asset (not its price), while the latter is uncompleted ("/// @dev Assets can be assumed to be").

Impact

Low impact as it is purely informative, but developer/auditors reading the codebase do not get the accurate information they expect to receive.

Recommendations

Update the natspec of both functions so they are congruent and provide useful information.

Updates

Lead Judging Commences

inallhonesty Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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