Skip to content

Who can toggle an NFT transfer? #1050

Closed Answered by PaulRBerg
gabrielstoica asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Gabriel, thanks for your question.

If the user approves an operator through the ERC-721 approve method, then it is a perfectly legitimate behavior for the operator to be able to (i) withdraw the maximum withdrawable amount from the stream and (ii) transfer the NFT.

This makes me think that maybe we should rewrite the check here to call _isCallerStreamRecipientOrApproved instead of checking just the recipient.

cc @sablier-labs/solidity

is there another way to accomplish it?

No, at the moment, you would have to call the two functions separately. But, as I've said, it should be fine to modify the code to allow this behavior to be enacted through the withdrawMaxAndTransfer function direc…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by gabrielstoica
Comment options

You must be logged in to vote
1 reply
@PaulRBerg
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants