Introduction

Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.

I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.

I also build and publish a variety of tools, libraries, and open-source projects.

ERC-7652 proposes a guarantor role for NFTs so that holders can redeem them for an agreed price at any time.

This article translates, summarizes, and expands on the proposal below.

I also cover other EIPs, BIPs, SLIPs, CAIPs, ENSIPs, RFCs, and ACPs.

Overview

ERC-7652 proposes adding a guarantor role to ERC-721. A guarantor provides a price guarantee for a particular NFT, identified by its token ID.

The proposal defines information and behavior for each NFT. A guarantee records a user-supplied valuation, representing the minimum value the guarantor assigns to the NFT. It also records the guarantee weight, which indicates how much of that value is covered.

In exchange for taking on the guarantee obligation, a guarantor is entitled to interest or other compensation. ERC-7652 incorporates these rights and obligations into the NFT transaction flow.

Contracts implementing the specification can use the NFT's token ID to query or set its guaranteed price. When an NFT is sold or transferred, the guarantee process can distribute interest and carry out the guarantor's obligation automatically.

Standardized events announce changes to a guarantee. Wallets, marketplaces, and indexers can use them to track guarantee status. ERC-7652 builds on ERC-721 and adds guarantee functionality while preserving the base NFT specification.

Motivation

Liquidity in NFT markets

NFTs generally have low market liquidity, largely because prices are difficult to establish. Many lack clear valuation benchmarks, making it hard to know in advance what a buyer will pay. A holder may struggle to find a buyer, or may have to cut the asking price substantially. That uncertainty makes it harder for users to enter the market.

Price assessments from guarantors

ERC-7652 introduces guarantors to address this problem. Several guarantor groups can offer price guarantees for the same NFT based on their own criteria. The resulting valuations reflect a set of commitments from different groups, giving users more information when deciding whether to trade.

Buybacks as protection for holders

A holder can return the NFT to a guarantor at any time for the highest price guaranteed under the arrangement. This gives the holder a defined floor, limiting the risk of a decline in the market price and reducing the uncertainty and financial burden of holding the NFT.

Passing on the guarantee

After a guarantor fulfills its obligation, it can ask the next guarantor to take over. This allows coverage to continue as the NFT changes hands or circumstances change. Responsibility for the guarantee can move from one guarantor to another throughout the NFT's life.

Ownership and management by DAOs

A guarantor can be an individual or a decentralized autonomous organization (DAO). When a guarantor DAO holds an NFT, the organization can continue to manage it through its governance process. The NFT can thus accrue value through its community and social context as well as through its ownership as an asset.

Specification

Interface

IERC721Guarantee.sol
pragma solidity ^0.8.20;

// import {IERC721} from "@openzeppelin/contracts/token/ERC721/IERC721.sol";

/// @title EIP-721 Guarantor Role extension
///  Note: the EIP-165 identifier for this interface is


interface IERC721Guarantee /*is IERC721*/{
    /// @notice           Emitted when `guarantee contract` is established for an NFT
    /// @param user       address of  guarantor
    /// @param value      The guarantee value provided by dao
    /// @param DAO        DAO organization providing guarantee
    /// @param tokenId    Guaranteed NFT (token ID),
    event GuaranteeIsEstablshed(
        address user,
        uint256 value,
        address DAO,
        uint256 indexed tokenId
    );

    /// @notice           Emitted when `guarantee contract` is canceled
    /// @dev              Some users in the closed DAO request a reduction in their guarantee share
    /// @param user       address of  guarantor
    /// @param value      The guarantee value provided by dao
    /// @param DAO        DAO organization providing guarantee
    /// @param tokenId    Guaranteed NFT (token ID),
    event GuaranteeIsCancel(
        address user,
        uint256 value,
        address DAO,
        uint256 indexed tokenId
    );

    /// @notice           Emitted when `Guarantee sequence` is established for an NFT
    /// @param userGuaranteed      address of guaranteed
    /// @param number  block.number of transaction,
    ///                and all DAOs established before this point will enter the guarantee sequence
    /// @param DAOs   DAO sequence providing guarantee
    /// @param tokenId Guaranteed NFT (token ID),
    event GuaranteeSequenceIsEstablshed(
        address userGuaranteed,
        uint256 number,
        address DAOs,
        uint256 indexed tokenId
    );

    /// @notice   A user's evaluation for an NFT (token ID)
    /// @dev      Set the guarantee information for one guarantor,
    /// Throws if `_tokenId` is not a valid NFT
    /// @param value  user's evaluation for  an NFT, the oledr value is canceled,
    /// @param user   address of guarantor
    /// @param weight guarantee weight for guarantor
    /// @param tokenId The NFT
    /// @return the error status of function execution
    function setNFTGuarantedInfo(
        uint256 value,
        address user,
        uint256 weight,
        uint256 tokenId
    ) external returns (uint256);

    /// @notice   Establish guarantee sequence for an NFT (token ID) and split the commission
    /// @dev      Each NFT(token ID) retains a current guarantee sequence,
    ///           and expired guarantee sequences are no longer valid,
    ///           Throws if `_tokenId` is not a valid NFT
    /// @param valueCommission Commission for a transactions
    /// @param userGuaranteed   address of guaranteed
    /// @param number  block.number of transaction,
    ///              and all DAOs established before this point will enter the guarantee sequence
    /// @param tokenId The NFT
    /// @return the error status of function execution
    function establishNFTGuarantee(
        uint256 valueCommission,
        address userGuaranteed,
        uint256 number,
        uint256 tokenId
    ) external returns (uint256);

    /// @notice   Transactions that fulfill the guarantee responsibility
    /// @dev      The new accountability transaction also requires
    ///           the construction of a new guarantee sequence
    ///           Throws if `_tokenId` is not a valid NFT or userGuaranteed is not right

    /// @param  userGuaranteed   address of guaranteed
    /// @param  tokenId The NFT
    /// @return the error status of function execution
    function FulfillGuaranteeTransfer(address userGuaranteed, uint256 tokenId)
        external
        returns (uint256);
}

Events

GuaranteeIsEstablshed
javascript
event GuaranteeIsEstablshed(
    address user,
    uint256 value,
    address DAO,
    uint256 indexed tokenId
);

Emitted when a guarantee is established for an NFT. It records when a guarantor and DAO have formally set up coverage for a particular NFT. The guaranteed value and the parties responsible are visible on-chain, so external systems can detect when coverage begins.

Parameters

  • user
    • The guarantor's address.
  • value
    • The guaranteed valuation provided by the DAO.
  • DAO
    • The address of the DAO providing the guarantee.
  • tokenId
    • The token ID covered by the guarantee.
GuaranteeIsCancel
javascript
event GuaranteeIsCancel(
    address user,
    uint256 value,
    address DAO,
    uint256 indexed tokenId
);

Emitted when a guarantee for an NFT is canceled. A DAO decision can invalidate an existing guarantee, for example if the guarantee share is reduced or the DAO dissolves and can no longer provide coverage.

Parameters

  • user
    • The guarantor's address.
  • value
    • The guaranteed valuation at the time of cancellation.
  • DAO
    • The address of the DAO that provided the guarantee.
  • tokenId
    • The token ID whose guarantee was canceled.
GuaranteeSequenceIsEstablshed
javascript
event GuaranteeSequenceIsEstablshed(
    address userGuaranteed,
    uint256 number,
    address DAOs,
    uint256 indexed tokenId
);

Emitted when a guarantee sequence is established for an NFT. It records the order of guarantees when an NFT is traded or a guarantor fulfills an obligation. DAOs that had established guarantees before the specified block number take part in the sequence.

Parameters

  • userGuaranteed
    • The address of the user receiving the guarantee.
  • number
    • The reference block number.
  • DAOs
    • The address of the DAO participating in the guarantee sequence.
  • tokenId
    • The token ID covered by the sequence.

Functions

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

Registers the valuation and guarantee weight offered by a guarantor for a particular NFT. If a record already exists for that guarantor, the previous values are invalidated. The call fails if the token ID is invalid.

Arguments

  • value
    • The valuation the guarantor assigns to the NFT.
  • user
    • The guarantor's address.
  • weight
    • The share or weight of the guarantee taken on by the guarantor.
  • tokenId
    • The token ID covered by the guarantee.

Return value

  • uint256
    • A status code indicating the result of the call.
establishNFTGuarantee
javascript
function establishNFTGuarantee(
    uint256 valueCommission,
    address userGuaranteed,
    uint256 number,
    uint256 tokenId
) external returns (uint256);

Establishes the active guarantee sequence for an NFT and distributes the commission. A new sequence supersedes previous sequences and sets the order in which guarantors are responsible. The proposal also anticipates dividing the transaction commission among guarantors at this point.

Arguments

  • valueCommission
    • The commission charged on the transaction.
  • userGuaranteed
    • The address of the user receiving the guarantee.
  • number
    • The reference block number.
  • tokenId
    • The token ID covered by the guarantee.

Return value

  • uint256
    • A status code indicating the result of the call.
FulfillGuaranteeTransfer
javascript
function FulfillGuaranteeTransfer(
    address userGuaranteed,
    uint256 tokenId
) external returns (uint256);

Transfers the NFT to fulfill the guarantee obligation once its conditions are met. After this operation, a new guarantee sequence must be established. The call fails if the guaranteed user is incorrect or the NFT is invalid.

Arguments

  • userGuaranteed
    • The address of the user receiving the guarantee.
  • tokenId
    • The token ID covered by the guarantee.

Return value

  • uint256
    • A status code indicating the result of the call.

Additional notes

Fair distribution of commissions

NFT transactions and guarantee fulfillments can generate a commission. Several guarantor groups may be involved, so fair allocation both across and within those groups is a design requirement.

  • Multiple DAOs may offer guarantees for one NFT under different terms.
  • The compensation due to each participant can depend on its guarantee weight and position in the sequence.

ERC-7652 uses guarantee sequences and weights to allocate commissions according to each guarantor's involvement and avoid giving one DAO or guarantor an unfair advantage.

Limiting the number of groups and the growth of contract state

Maintaining an unrestricted list of DAOs and every past guarantee would give implementations more flexibility, but could increase the contract's size and gas costs and make its state harder to interpret.

ERC-7652 takes the following approach.

  • Keep the currently active guarantee sequence explicit.
  • Use events to make past guarantees traceable and retain only the necessary state.

This keeps the on-chain state limited to information the contract needs.

Guarantor groups are DAOs

An ERC-7652 guarantor group is a DAO contract. The DAO must implement the ERC721TokenReceiver interface so that it can safely receive an NFT when it fulfills a guarantee. Without that interface, the NFT cannot be delivered by safe transfer and the guarantee cannot be fulfilled that way.

This requirement has two purposes.

  • Prevent the NFT from being lost when a guarantor fulfills its obligation.
  • Establish that the DAO can receive and manage the NFT.

Keeping the interface simple

ERC-7652 introduces a guarantor role, guaranteed valuations, and guarantee sequences while keeping responsibilities clear.

  • Keep the interface to the necessary functions and events.
  • Make guarantee state transitions traceable through events.
  • Standardize common behavior while leaving room for different implementations.

Implementers can adopt the interface without taking on unnecessarily complex logic.

Gas efficiency

A guarantee extension has to account for Ethereum gas costs. The proposal adopts the following approach.

  • Avoid unnecessary storage writes.
  • Represent historical information through events.
  • Keep the guarantee sequence structure simple.

The goal is to add guarantee functionality with minimal extra gas overhead for ordinary NFT transactions.

Compatibility

ERC-7652 is compatible with ERC-721. It adds the guarantor role as an extension while preserving the base behavior.

  • Existing NFT contracts continue to operate as before.
  • NFTs that do not implement ERC-7652 can still trade on the market.

The proposal also notes that earlier NFT standards had not defined a guarantee role, and that other ERC-721-related standards did not use the name Guarantor, reducing the chance of role conflicts or confusion.

Citation

Liu.C.Dao (@CDao) iunknow@163.com, Sam 1047180870@qq.com, "ERC-7652: ERC-721 Guarantee Extension [DRAFT]," Ethereum Improvement Proposals, no. 7652, March 2024. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-7652.

Conclusion

ERC-7652 proposes a way for NFT holders to redeem a token at a guaranteed price. It describes how guarantors record valuations, establish an order of responsibility, and fulfill a buyback while the NFT continues to use ERC-721.

If you have questions, feel free to send me a direct message.

Twitter @cardene777

You can find my other writing here.