-
Notifications
You must be signed in to change notification settings - Fork 11.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ERC721 Wrapper #3863
Add ERC721 Wrapper #3863
Conversation
this definitely should be extended to support erc20 and erc1155 |
ERC20Wrapper already exists. The case for ERC1155 might need more discussion imo. |
I mean erc721 wrapper for erc20 |
I would add a "onERC721Received" hook, so you can wrap by doing a safeTransfer to this.
|
Not sure about this. It'll require to use Also, if we decide to only keep What do you think? |
If we add this hook, we can keep safeTransfer in the |
|
OR, we can use "unsafeTransfer" in deposit, which is ok because we know the receiver is able to handle NFTs Either option is good IMO. I really think having the hook brings some value. |
I have to admit I'm a fan of this solution. So I'll go for it. Before implementing, I wonder, is there a case for keeping |
For the record, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is your second approval :
Fixes LIB-647
PR Checklist