EIPs Explained

ERC-7652 · Draft · ERC · 2024-03-10

ERC-7652: ERC-721 Guarantee Extension

A draft ERC-721 extension that adds guarantors (typically DAOs) who promise to buy an NFT back at a set value, aiming to give NFT holders a guaranteed exit price.

What problem does it solve?

NFTs are often hard to sell: pricing is opaque and buyers may not exist when you want to exit. ERC-7652 proposes a guarantor role. Guarantors (individuals pooled in a DAO) state a value they stand behind for a specific token ID. A holder can then hand the NFT back to the guarantor at the highest guaranteed price, and guarantors earn a share of commissions on trades in return.

The authors also see a community angle: when a DAO ends up owning the NFT after honouring a guarantee, the NFT effectively keeps operating under that DAO.

How it works

The spec defines an optional extension interface, IERC721Guarantee, on top of ERC-721:

  • setNFTGuarantedInfo(value, user, weight, tokenId): a guarantor records their valuation and guarantee weight for a token. A new value replaces the old one.
  • establishNFTGuarantee(valueCommission, userGuaranteed, number, tokenId): when a trade happens, builds the guarantee sequence (the DAOs whose guarantees were set before block number) for the new holder and splits the trade commission among guarantors.
  • FulfillGuaranteeTransfer(userGuaranteed, tokenId): the holder exercises the guarantee and transfers the NFT to the guarantor. This starts a new guarantee sequence, so the guarantor can in turn rely on later guarantors.
  • Events: GuaranteeIsEstablshed, GuaranteeIsCancel, GuaranteeSequenceIsEstablshed (spelling as in the spec).

Functions return a numeric "error status" instead of reverting on all failures. Guarantor DAO contracts must implement ERC721TokenReceiver so they can receive the NFT.

Sample code

The interface as given in the spec (names kept verbatim, including spelling):

// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.20;

interface IERC721Guarantee /* is IERC721 */ {
    event GuaranteeIsEstablshed(address user, uint256 value, address DAO, uint256 indexed tokenId);
    event GuaranteeIsCancel(address user, uint256 value, address DAO, uint256 indexed tokenId);
    event GuaranteeSequenceIsEstablshed(address userGuaranteed, uint256 number, address DAOs, uint256 indexed tokenId);

    function setNFTGuarantedInfo(uint256 value, address user, uint256 weight, uint256 tokenId)
        external returns (uint256);

    function establishNFTGuarantee(uint256 valueCommission, address userGuaranteed, uint256 number, uint256 tokenId)
        external returns (uint256);

    function FulfillGuaranteeTransfer(address userGuaranteed, uint256 tokenId)
        external returns (uint256);
}

Things to know

  • Status: Draft, and early: the spec has no reference implementation ("will be provided later"), leaves the ERC-165 interface identifier blank, and its security section says only "needs discussion".
  • Key mechanics are under-specified: how guarantee funds are escrowed, what currency the guarantee is paid in, who may call each function, and how commissions are split. Without escrow, a "guarantee" is only as good as the guarantor's willingness to pay.
  • The guarantee is attached per token ID, not per collection.
  • Treat this as a design proposal rather than something ready to build on.

#nft #erc-721 #liquidity #dao #guarantee

Details

Authors
Liu.C.Dao (@CDao) <[email protected]>, Sam <[email protected]>
Status
Draft
Type
Standards Track / ERC
Created
2024-03-10
Requires

Machine-readable: Markdown · JSON