EIPs Explained

ERC-1633 · Stagnant · ERC · 2018-11-18

ERC-1633: Re-Fungible Token Standard (RFT)

Re-Fungible Tokens: an ERC-20 that represents shared ownership of a single ERC-721 NFT, with two getters that point back to the NFT it owns.

What problem does it solve?

Some NFTs are too valuable or too meaningful to belong to one person: a famous artwork, a piece of real estate, a rare in-game item. Splitting ownership into fungible shares gives price discovery and liquidity, and lets many people hold a piece.

The simplest way is an ERC-20 contract that owns the ERC-721 token and issues shares. But a wallet, exchange or NFT marketplace needs to know that a given ERC-20 represents a specific NFT, and that a given NFT is held by such a contract. ERC-1633 standardizes that link with minimal additions to ERC-20.

How it works

A re-fungible token (RFT) is a normal ERC-20 plus two getters:

function parentToken() external view returns (address);   // NFT contract
function parentTokenId() external view returns (uint256);  // NFT token ID

It also implements ERC-165 and returns true for the RFT interface ID 0x5755c3f2, which is parentToken.selector ^ parentTokenId.selector.

Two checks follow from this:

  • Starting from the ERC-20: read parentToken() and parentTokenId(), confirm the parent supports ERC-721 (0x80ac58cd), and confirm that ownerOf(parentTokenId) is the RFT contract itself.
  • Starting from the NFT: read ownerOf(tokenId) and ask that owner whether it supports ERC-165 and 0x5755c3f2.

Both checks matter: the getters alone are just a claim, and the ownerOf check proves the RFT really holds the NFT.

Sample code

Minimal interface in modern Solidity:

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

interface IRFT /* is IERC20, IERC165 */ {
    function parentToken() external view returns (address);
    function parentTokenId() external view returns (uint256);
}
// type(IRFT).interfaceId == 0x5755c3f2

Verifying an RFT with ethers v6:

import { Contract, JsonRpcProvider } from "ethers";

const provider = new JsonRpcProvider(process.env.RPC_URL);

async function isGenuineRFT(rftAddress: string): Promise<boolean> {
  const rft = new Contract(rftAddress, [
    "function parentToken() view returns (address)",
    "function parentTokenId() view returns (uint256)",
  ], provider);
  const [nftAddr, tokenId] = await Promise.all([rft.parentToken(), rft.parentTokenId()]);

  const nft = new Contract(nftAddr, [
    "function supportsInterface(bytes4) view returns (bool)",
    "function ownerOf(uint256) view returns (address)",
  ], provider);
  const isERC721 = await nft.supportsInterface("0x80ac58cd");
  const owner = await nft.ownerOf(tokenId);
  return isERC721 && owner.toLowerCase() === rftAddress.toLowerCase();
}

Things to know

  • Status: Stagnant. It was never finalized, though the "fractional NFT" idea it describes became common through other designs.
  • The standard deliberately leaves out minting, burning, buyouts and governance. Each project decides how shares are created and how (or whether) holders can reclaim the NFT.
  • Because RFTs are plain ERC-20s, any ERC-20 tool can trade them. But that also means holders may not realize a token represents an NFT unless the wallet checks the interface.
  • Fractional ownership of real-world assets can raise securities and legal questions. The standard does not address them.

#nft #fractional #erc20 #erc721 #ownership

Details

Authors
Billy Rennekamp (@okwme), Dan Long <[email protected]>, Kiryl Yermakou <[email protected]>, Nate van der Ende <[email protected]>
Status
Stagnant
Type
Standards Track / ERC
Created
2018-11-18
Requires

Machine-readable: Markdown · JSON