Flow

Sablier
FoundryDeFi
20,000 USDC
View results
Submission Details
Severity: low
Invalid

Unused Parameters in tokenURI Function

Summary

The FlowNFTDescriptor contract contains unused parameters in the tokenURI function, potentially reducing clarity and maintainability of the code.

Vulnerability Details

Unused Parameters in tokenURI Function

Impact

The unused parameters, IERC721Metadata sablierFlow and uint256 streamId, do not affect the function output. This can lead to confusion for developers and users, who might assume these parameters impact the resulting URI.

Proof of Concept

In FlowNFTDescriptor.sol, the tokenURI function has parameters defined but not used:

function tokenURI(
IERC721Metadata, /* sablierFlow */
uint256 /* streamId */
)

This creates an ambiguous interface, especially if these parameters are intended to customize the tokenURI.

Recommendations

  • Integrate sablierFlow and streamId within the tokenURI function logic if they are intended to influence the output.

  • If the parameters are placeholders for future development, add clarifying comments, or remove them if unnecessary to avoid confusion.

Updates

Lead Judging Commences

inallhonesty Lead Judge 8 months ago
Submission Judgement Published
Invalidated
Reason: Design choice
Assigned finding tags:

[INVALID] Non-Unique Metadata

Support

FAQs

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