taiko-mono icon indicating copy to clipboard operation
taiko-mono copied to clipboard

feat(protocol): change to transfer-and-burn pattern with NFT vaults

Open adaki2004 opened this issue 9 months ago • 3 comments

To remove additional trust assumption, and do not allow vaults (if compromised) to arbitrarily burn tokens. Adapt the ‘transfer and burn’ pattern for NFTs as well (as we did for ERC20).

adaki2004 avatar May 08 '24 14:05 adaki2004

feat(protocol): change to transfer-and-burn pattern with NFT vaults

Generated at commit: 67b945110d6c2a618f37be83f83f9613f8c236f6

🚨 Report Summary

Severity Level Results
Contracts Critical High Medium Low Note Total 2 2 0 6 41 51
Dependencies Critical High Medium Low Note Total 0 0 0 0 0 0

For more details view the full report in OpenZeppelin Code Inspector

openzeppelin-code[bot] avatar May 08 '24 14:05 openzeppelin-code[bot]

@KorbinianK @cyberhorsey I think you guys need to know about this change (similar to what we did to BridgedERC20 vaults). Now you always have to get approvals first before burning bridged NFTs, just like what you do with canonical NFTs.

dantaik avatar May 08 '24 14:05 dantaik

@KorbinianK @cyberhorsey I think you guys need to know about this change (similar to what we did to BridgedERC20 vaults). Now you always have to get approvals first before burning bridged NFTs, just like what you do with canonical NFTs.

@KorbinianK Yes, so for bridged tokens, while bridging back we now require approve() for erc721 and setApprovalForAll() for erc1155.

adaki2004 avatar May 08 '24 14:05 adaki2004