Sablier

Sablier
DeFiFoundry
53,440 USDC
View results
Submission Details
Severity: medium
Invalid

wrong implement of "tokenURI" in SablierV2Lockup.

Summary

wrong implement of "uri = nftDescriptor.tokenURI({ sablier: this, streamId: streamId });".

Vulnerability Details

function tokenURI(uint256 streamId) public view override(IERC721Metadata, ERC721) returns (string memory uri) {
// Check: the stream NFT exists.
_requireOwned({ tokenId: streamId });

    // Generate the URI describing the stream NFT.
 @>>   uri = nftDescriptor.tokenURI({ sablier: this, streamId: streamId });
}

Impact

wrong calculation of uri.

Tools Used

Recommendations

 @>>   uri = nftDescriptor.tokenURI({ sablier:address( this), streamId: streamId });
Updates

Lead Judging Commences

inallhonesty Lead Judge over 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.