Inspiration
- What happened to the good old days when we traded valuable collectibles like base-ball player card,we'd make deals and bargain on which players i give you in echange for a player you have that i like. why cant we do that with nfts, must I lalways use a Market place?
- currently the most popular way of exchanging nfts is by directly transfering it to a friend or buy it from a market place, shouldn't there be some other criteria or medium for the exchange of nfts, you might have a bored and I have 2 punks, you like the punks and their communities and I like that of the bored apes, Why dont we make the exchange or Swap.
- how can we make this swap in a secure trust free and truth based procedure?
- Why cant we exchange our nfts with who ever all over the world through a direct swap or exchange without the need to get on an Nft market place to by one?
- we strike a deal and exchange value for value, NFTs for NFTs!
What it does
- NDegenerate swap is a Tool that brings a new Use or Method of Exchange of NFTs possible! NDegenerate Swap lets you disscuss, Haggle,Trade and Exchange NFTS for NFTS through trust minimized swaps.
- it is a smart contract that allows for automatic swaps between users backed by truth
- Users can come on the platform and provide details of the deal they want to create,
- Our nftSwapper contract then collects these details and transfers these nfts from the creator to itself using the setApprovalforAll and SafeTransferFrom methods, it stores this deal.
- next someone else comes on the platform sees this deal and likes it, they provide the Nfts and the swap is made instantly!
How we built it
- NDegenrate Swap makes use of one contract called the nftSwapper see here, this contract is designed in a such a way as to collect details concerning a swap deal, then performs the swaps when someone else fullfills the swap deal details, a fee of 0.001 is collected to create a swap deal.
- before any deal is fullfilled the user has the pportunity to close/cancel th deal and get back their nfts and Matic
- It was built using Hardhat , Solidity ,React
Challenges we ran into
- A challenge we ran into was ensuring the contract calls where gas efficient and yet still secure
- Another pain point was how to represent data collected from the contract and rendering it while considering good user experience
Accomplishments that we're proud of
- we are proud that we where able to come this far with the project even with everyone's tight schedule
- we mastered gas optimization when writing Solidity smart contracts
- One of us learned about the Wagmi toolkit for making frontend interactions with smart contracts easier
What we learned
- We fully mastered the Erc721 interface and how it works
- We learned a few more tricks about React using it as our frontend framwork
What's next for NDegenerate Swap
- Improve the UI
- Add support for chainlink datafeeds and Any api, to handle price to create a deal, retreiving of NFT images from our api, to mention a few
- A better Bond center or chat, to seperate discussions and support rooms
- Improved support for ERC1155
- Mainnet launch
Log in or sign up for Devpost to join the conversation.