web3wagmi
← All standards

ERC-7649 Bonding curve-embedded liquidity for NFTs

DraftERCcreated 2024-02-28requires ERC-721

Embedding liquidity into Non-Fungible Tokens (NFTs) without modifications to ERC-721.

Authors: Arif Khan, Ahmad Matyana, Basil Gorin (@vgorin), Vijay Bhayani (@unblocktechie)

ERC-165 interface ids

Computed here as the XOR of the selectors each interface defines.

BondingCurve0x5cf4ee91

Functions this standard introduces (19)

0xd1a93d18buyShares(uint256)payable
0x427e3618buySharesTo(uint256,address)payable
0xc157253dgetBuyPrice(uint256,uint256)pure
0x08d4db14getBuyPrice(uint256)view
0x19224cb4getBuyPriceAfterFee(uint256,uint256,uint256,uint256,uint256)pure
0x6b4ed02agetBuyPriceAfterFee(uint256)view
0xbe74264dgetFeePercent()view
0x5cf4ee91getPrice(uint256,uint256)pure
0x9477d85dgetSellPrice(uint256,uint256)pure
0xba730e53getSellPrice(uint256)view
0xa58379a1getSellPriceAfterFee(uint256,uint256,uint256,uint256,uint256)pure
0x08f97dd8getSellPriceAfterFee(uint256)view
0x19786af8getSharesBalance(address)view
0x7573af8egetSharesIssuer()view
0x06ae0df9getSharesSubject()view
0x20357321getSharesSupply()view
0xbe1125b5getTradeVolume()view
0x4ba8ae81sellShares(uint256)
0xd7c94230sellSharesTo(uint256,address)

Events (1)

Topic0 is the keccak256 hash of the signature, which is what a log filter matches on.

0x9adcf0ad0cda63c4d50f26a48925cf6405df27d422a39c456b5f03f661c82982Trade(address,address,bool,uint256,uint256,uint256,uint256)

Depends on (1)

Proposals this one names in its requires field.

What the specification covers

Compare with

Parsed from the canonical specification · discussion