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