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-7649 proposes attaching an external liquidity contract to an NFT. The contract uses a bonding curve to establish prices and support ongoing trading, while the NFT continues to follow ERC-721.

This article explains the proposal below and adds context for its design.

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

Overview

ERC-7649 proposes a standard for providing bonding curve liquidity for ERC-721 NFTs without changing the existing standard.

Terminology

  • Non-fungible token (NFT) A token with its own identity or value. ERC-721 is a widely used NFT standard.
  • Bonding curve A formula that sets a token's price based on its supply. A typical curve raises the price as demand increases and buyers expand the supply. This can serve as a form of automated market making.
  • Liquidity How easily an asset can be bought or sold. More liquid assets tend to trade more actively and have more stable prices.

Embedding liquidity through Tradable Shares

The standard connects each NFT to a dedicated external liquidity contract called Tradable Shares.

Tradable Shares have these properties.

  • A standalone contract is associated with an ERC-721 NFT.
  • The contract offers divisible value in the form of shares, separate from ownership of the NFT.
  • A bonding curve automatically prices the shares.

The resulting arrangement has three components.

Component Role
ERC-721 NFT Represents the asset, rights, or content
Tradable Shares Provides liquidity and price discovery associated with the NFT
Bonding curve Automatically prices shares according to supply

The NFT remains an ERC-721 token. Participants can buy and sell shares representing part of its economic value, providing a route for ongoing liquidity.

Motivation

Limitations of ERC-721

ERC-721 defines NFT ownership and transfers, but has several limits.

  • It does not specify how an NFT's price should be formed.
  • It has no built-in automated liquidity mechanism such as a bonding curve.
  • As a result, an NFT often sits idle after issuance until someone buys or sells it.

These limits make it difficult to develop new economic models and ongoing revenue streams for NFTs.

A standardized approach

ERC-7649 defines how to connect bonding curve liquidity through an external contract while retaining the existing ERC-721 standard.

  • Projects can extend functionality and retain ERC-721 compatibility.
  • Each project can design its own bonding curve.
  • Existing NFT marketplaces and tools remain compatible.

The goal is to expand the options for NFT design and economics within the existing ecosystem.

Ongoing compensation for creators

The design calls for a creator fee on trades in Tradable Shares.

  • Creators can earn recurring compensation as secondary trading continues.
  • Projects can build business models beyond a one-off sale.
  • Greater liquidity strengthens the incentive for creators.

The NFT can support ongoing economic activity after its initial sale.

Potential use cases in decentralized AI services

The standard is general-purpose. Decentralized AI services are one area where the design may be useful.

AI model marketplaces

A project can represent each AI model as an NFT and attach a dedicated Tradable Shares contract. This gives participants a way to trade shares associated with the model.

Buying and selling shares lets users express expectations about the model and its demand. The resulting price can reflect expectations about future value as well as current use.

The bonding curve sets the terms of those trades. Strong evaluations or growing adoption can increase demand for shares. As purchases increase the supply, the formula raises the share price automatically. Market participants' valuations become visible through the on-chain price.

Model creators can tune parameters such as the starting price and the rate of increase. A mature, stable model could use a gentler curve, while an experimental model with greater scope for growth could use a steeper one.

This arrangement can create a market in which liquidity providers, model users, and AI developers can each benefit from participating.

Allocating decentralized GPU and storage resources

A decentralized resource market can represent compute resources, such as GPUs and storage, as NFTs with attached Tradable Shares. A GPU or storage pool is issued as an NFT, and participants trade its associated shares.

Share prices reflect supply and demand for the resources. When more users want access, demand for shares increases and purchases raise the price along the bonding curve. The price can adjust as demand eases.

Providers can use the curve to compete with other pools. They can tune pricing based on available compute capacity, performance, and operational track record.

Trading fees also provide ongoing revenue to resource providers, giving them an incentive to keep offering reliable, high-quality resources.

The result can be a competitive decentralized resource market that adjusts to changes in demand.

Specification

Basic design for bonding curve liquidity

Relationship to ERC-721

ERC-721 defines NFT ownership and transfers. ERC-7649 sets out these requirements for integrating liquidity.

  • Implement bonding curve liquidity in a separate contract.
  • Leave the ERC-721 specification and implementation intact.
  • Give the external contract responsibility for liquidity management.

The specification recommends a separate liquidity contract and prohibits changes to the base ERC-721. Existing NFT marketplaces and tools can therefore continue working with the NFT.

The role of Tradable Shares

Tradable Shares are assets that can be bought and sold in units associated with an NFT.

  • They behave similarly to ERC-20 tokens, but holders cannot freely transfer them.
  • Purchases and sales use the bonding curve price.
  • Each NFT has independent share liquidity.

The NFT remains unique while participants can trade its associated economic value in divisible units.

How the bonding curve works

Pricing model

A bonding curve calculates a trade price from the current supply and the amount being traded.

  • As the number of shares in circulation rises, the price increases.
  • Sales reduce the supply, lowering the price.
  • The formula sets the price automatically.

Pricing follows the same on-chain rules for all participants.

Customizable parameters

Depending on the implementation, NFT creators can set:

  • How quickly the price rises (the slope).
  • The starting price (the intercept).
  • The curve's shape, such as linear, exponential, or another chosen formula.

Creators can choose a design suited to growth-oriented or stability-oriented NFTs.

Creator compensation

Required mechanism

ERC-7649 requires the following.

  • Each share purchase or sale incurs a fee.
  • A portion of the fee must go to the NFT creator.
  • Implementations cannot remove this mechanism.

As secondary activity increases, creators can earn more from trading.

Fee flexibility

  • An implementation can let the creator set the fee rate.
  • The creator fee can be combined with protocol or holder fees.

The compensation is tied to liquidity activity, beyond a conventional NFT royalty.

Payment methods

Supported currencies

The source summarizes the payment options as follows.

Payment method Required or optional
ETH Required
ERC-20 tokens Optional

The source also describes ETH-only, ERC-20-only, and dual-currency implementations as possible. The specification resolves the discrepancy: implementations must support at least one of native ETH and ERC-20, and may support both.

BondingCurve interface

Functions

getPrice
javascript
function getPrice(uint256 supply, uint256 amount) external pure returns(uint256);

Calculates a total share price using the bonding curve formula, given the current supply and the number of shares being bought or sold.

Arguments

  • supply
    • Current total share supply.
  • amount
    • Number of shares in the trade.

Return value

  • Price
    • Total price for the specified quantity of shares.

TradeableShares interface

Structs

SharesSubject
javascript
struct SharesSubject {
	address tokenAddress;
	uint256 tokenId;
}

Identifies the NFT associated with the shares and the liquidity contract. The ERC-721 contract address and token ID together identify it uniquely.

Parameters

  • tokenAddress
    • Address of the ERC-721 contract.
  • tokenId
    • ID of the NFT.

Events

Trade
javascript
event Trade(
	address indexed beneficiary,
	address indexed issuer,
	bool indexed isBuy,
	uint256 sharesAmount,
	uint256 paidAmount,
	uint256 feeAmount,
	uint256 supply
);

Emitted for either a purchase or a sale. It records the trade, payment, fees, and resulting supply. Indexed parameters make the event easier to use for analytics and user interfaces.

Parameters

  • beneficiary
    • Address receiving the shares or funds.
  • issuer
    • Owner of the NFT.
  • isBuy
    • true for a purchase or false for a sale.
  • sharesAmount
    • Number of shares traded.
  • paidAmount
    • Amount paid or received.
  • feeAmount
    • Total fee paid.
  • supply
    • Total share supply after the trade.

Functions

getSharesSubject
javascript
function getSharesSubject() external view returns(SharesSubject calldata);

Returns the NFT associated with the shares. The value is immutable, so clients can cache it.

getSharesIssuer
javascript
function getSharesIssuer() external view returns(address nftOwner);

Returns the current NFT owner. This value can change when the NFT is transferred. Because of front-running risk, off-chain consumers should avoid relying on it.

buyShares
javascript
function buyShares(uint256 amount) external payable;

Buys the specified quantity of shares. Payment uses ETH or an ERC-20 token. Only the NFT owner can buy the first share.

Arguments

  • amount
    • Number of shares to buy.
sellShares
javascript
function sellShares(uint256 amount) external;

Sells the specified quantity of shares. The sale must leave the total supply above zero, so the final share cannot be sold.

Arguments

  • amount
    • Number of shares to sell.
getTradeVolume
javascript
function getTradeVolume() external view returns(uint256);

Returns cumulative trading volume across all purchases and sales. The value does not decrease and can be used for analytics and fee calculations.

Additional notes

Bonding curve liquidity and the Tradable Shares contract

Integration with ERC-721

ERC-721 is widely used, so the design preserves compatibility by attaching an external contract to the NFT.

Consideration Benefit
Compatibility Existing ERC-721 marketplaces and tools can still be used.
Implementation effort Developers do not need to reimplement or extend ERC-721.
Stability Projects avoid the risks of changing the existing standard.

The arrangement lets developers attach liquidity to an existing NFT.

Why liquidity management is in a dedicated contract

Pricing, supply management, and fee distribution involve several responsibilities. Adding them to the NFT contract would make it larger and harder to maintain.

The Tradable Shares contract therefore takes full responsibility for the bonding curve.

  • The formula calculates prices automatically.
  • Prices can move with supply and demand.
  • The curve keeps NFT shares available for ongoing trading.

This gives participants a persistent route to trade shares associated with an NFT.

Why use a bonding curve?

Dynamic pricing

A bonding curve determines the Tradable Shares price. The design does not rely on fixed prices or auctions.

  • Stronger demand and more purchases raise prices.
  • As demand eases and participants sell, prices can fall.
  • The curve requires no manual repricing.

The market can reflect current conditions. Liquidity providers have a reason to participate as prices change.

Creator customization

NFTs and projects have different economics. Creators can choose the parameters and the formula itself.

  • A stability-oriented curve can raise prices gradually.
  • A growth-oriented curve can start at a low price and rise sharply as demand grows.

This flexibility gives creators room to experiment with NFT economics and design.

Why require a creator fee?

Creator incentives

An ERC-721 ecosystem needs ways for creators to earn compensation over time.

  • Every share purchase or sale incurs a fee.
  • A portion of the fee goes to the NFT creator.
  • The creator can define the fee rate.

Creators can benefit as trading continues. Their compensation comes from the liquidity mechanism itself rather than a conventional royalty.

Payment design

Developer flexibility

The design rationale describes several options for payments.

  • Implementations that use ETH.
  • Implementations that use ERC-20 tokens.
  • Implementations that support both.

Projects have different requirements. Developers can account for gas costs, user experience, and the existing token economy when choosing an approach.

Relationship to other proposals

Bonded Fungible Tokens (1671)

The design shares ideas with Bonded Fungible Tokens (EIP-1671). Both use a bonding curve for price formation. ERC-7649 applies the approach specifically to ERC-721 NFTs.

Security considerations

Smart contract security

Contracts implementing Tradable Shares or bonding curves handle funds directly and should receive a thorough security audit.

  • Protect against overflow and underflow.
  • Protect against reentrancy.
  • Prevent incorrect price calculations.

Failures in these areas can put the entire liquidity pool at risk.

Creator fee distribution

Distributing compensation requires particular care.

  • Calculate fees accurately.
  • Update the payment recipient correctly.
  • Prevent unauthorized changes to the recipient.

A transparent, verifiable implementation makes the distribution easier to trust.

ERC-721 compatibility

Compatibility with ERC-721 also supports safe operation.

  • Track changes to NFT ownership correctly.
  • Avoid conflicts with existing ERC-721 implementations.

This helps prevent integration problems and unexpected behavior.

User experience

Security also depends on the user experience.

  • Keep interactions simple.
  • Show prices and fees clearly.
  • Help users avoid unintended operations.

A design can be technically correct yet impractical if it misses these requirements.

Citation

Arif Khan arif@alethea.ai, Ahmad Matyana ahmad@alethea.ai, Basil Gorin (@vgorin), Vijay Bhayani (@unblocktechie), "ERC-7649: Bonding curve-embedded liquidity for NFTs [DRAFT]," Ethereum Improvement Proposals, no. 7649, February 2024. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-7649.

Conclusion

ERC-7649 proposes attaching an external bonding curve liquidity contract to an NFT. The contract handles pricing and ongoing share trading without changing ERC-721.

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

Twitter @cardene777

I also publish on these platforms.