Swan contract contains misleading comments about a function that does not exist anywhere in the code and omits the implementation of a useful getter function.
In Swan.sol, just above getListingPrice() function, there are comments suggesting that the following function should return the asset status (Active, Inactive or Sold) of a given asset. But the following function is function getListingPrice, and it returns the price of a given asset.
This situation creates confusion. Also the code could use that possible useful function in other parts for code effectiveness.
Low, since the omitted function is not falsely called anywhere in the code, but it affects code readibility.
Manual review
Either remove the comments, or add an actual getAssetStatus function.
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.