Skip to content

0xF16/nft-swapper

Repository files navigation

NFT-Swapper

Everything you need to swap your NFTs! 🏞

Utility that helps you to make peer-to-peer (P2P) swaps of ERC721 tokens. It is built to be gas efficient to save you hard earned bucks by avoiding OpenSea/Rarible fees.

How does it work?

  1. 💡 Anyone can propose a swap between specific address by giving:
    1. other person's address,
    2. his own NFT that this person wants to swap by giving collection contract address,
    3. collection's address of which that person is interested in
    4. giving the specific token ID from that collection,
    5. specifying time to which the order is valid
  2. ✅ Approve the token to the just created swap contract address
  3. ⏳ Wait for the other person to do the the approval as well
  4. 🏁 Swap is being executed and you both can enjoy just swapped NFT

TODO

  • implement time till which swap could be done
  • restrict functions to be called by either the maker or a taker
  • move testing scripts to the /test folder
  • emit events (eg. when swap is done - also marks the contract as no longer usable)
  • implement minimal proxy (for better gas efficiency)
  • prepare UI which will be simple and which will show active and already executed swaps

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published