Skip to content

DanielAbalde/NFT-Swapper

Repository files navigation

NFT SWAPPER (BETA)

Peer to peer exchange of multiple NFTs on EVM chains

Instead of listing your NFTs and waiting for an offer, this exchanger registers an agreement to swap specific tokens for other specific tokens. The registry creator chooses who and what to exchange, and the swap takes place when the second party accepts the deal. It is generic or extensible to other types of tokens, both fungible and non-fungible.

The main contract is the NFTSwapper, where swaps are stored and handled. For each type of token, there is a specific contract that follows the ISwapperHandler interface. These are responsible for the transfer, so these are the addresses to be approved as operators by the NFT owners.

Contract Addresses 🔑

Chain Swapper ERC721 ERC1155 LSP7 LSP8
Mumbai 0xa211...c8c 0xE406...825 0x8c5d...a97 0x7eCF...73C 0xC243...04D
L16 0xB5Ed...B69 - - 0xC3C2...9f40 0xa3A3...4fB

Steps 🗺️

  • Create a new swap agreement by registering the bidder, tendered, NFT contract addresses, the token IDs and amounts.
  • Owners of NFTs must approve as operator the Swapper handlers addresses on the NFT contracts.
  • One tendered can claim the swap and both receive the other's NFTs.

Contribute ☕

  • Issues and Pull Request on Github are welcome.
  • Let me know if you deploy the contracts on a different EVM blockchain.
  • Buy me a coffee at 0x4443049b49Caf8Eb4E9235aA1Efe38FcFA0055a1
  • Share it on social media!

Contact ✉️

License ♻️