White Elefun
To make NFT swapping a group action and more entertaining for NFT communities. White elefun allows members from same NFT community to swap NFT of the same collection. Yes, similar to classic white elephant!
Screenshots






Problem Statement
White Elefun project introduces a group swapping mechanism, which enables the NFT community members to swap NFTs in the same collection. Organizers would initial the swapping activity with criteria, including collection name, number of participants, etc. Participants could submit their NFTs within the criteria and receive their surprise! The participants could also deposit a specific amount of tokens into the rewards pool, and the rewards would get assigned with NFTs. White Elefun engages the community in a fun and entertaining way!
Solution
We used @Chainlink VRF to ensure the randomness and fairness of the swap matching. We designed algorithms to ensure the quality of the swap, including not getting your own NFT back, not allowing one user to submit more than half of the total number of NFTs, and so on.We designed two algorithms separately for blue chip NFTs and emerging NFTs. In the blue-chip mode, The user will always get their NFT back, and swap could only take place within the same blue-chip collection. We plan to allow users to use @ApeCoin as a payment option while swapping BAYC or MAYC.In the emerging NFT mode, NFTs from different collections could be submitted for swap. However, the user who submitted the NFT from the collection with the lowest floor price will lose the NFT. The NFT will be rewarded to the user who submitted the NFT from the highest floor price collection. Merit gets rewarded!We deploy our project not only to Ethereum but also to Optimism as a cost and performance-enhanced payment option for users.We stored campaign metadata in MySQL currently as we don’t see it necessary to store them in IPFS now. We used next.js and React for the front end.
Hackathon
ETHSanFrancisco 2022
2022