Development of Valorize DAO’s Unity NFT: Part 2 — Membership NFT (Smart Contract)
By Marco Huberts
Our Unity NFT is architected to include everything NFT enthusiasts desire: a passionate team of Valorize DAO contributors, multiple top-tier artists and experienced smart contract developers. Together, we have built an unprecedented collection to reflect the diversity at the heart of Web3 and manifest a solar punk vision for the future. A two-part work, Part 1: the Product Collection launched September 20th, 2022 (live now). Part 2: The Membership NFT, launches October 25th, 2022. Keep reading below to learn more about the collection that completes our vision for a better world. In this article we will talk about the smart contract that was developed for the Membership NFT project.
Floor price for a Membership NFT is 0.1 ETH. Visit our website to mint your NFT: https://nft.valorize.app/
Membership NFT Smart Contract Development
Preventing rarity sniping
A common problem with NFT projects is that people have a range of tricks to find out what the next rarity is of the NFT that can be minted. With these tricks, they hope to mint the highest rarity possible. As described above, getting the highest rarity is the most rewarding as it will have the most value/utility or, in the case of the Membership NFT, higher amounts of token airdrops. In order to reduce the chances of this phenomenon called rarity sniping and to give everyone the opportunity to receive a high rarity NFT, we introduced (pseudo-)randomness in our smart contract. The smart contract code can be found here on Valorize DAO’s GitHub.
Development of pseudorandom minting functions with on-chain rarity
To gamify the minting and to prevent rarity sniping, we created three minting functions using OpenZeppelin’s ERC721 NFT standard: Whale, Seal and Plankton mint, whereby you will not know which rarity will be minted next. So, when you click on the minting functions and you confirm the transaction, the following will happen:
- A (pseudo-)random number will be generated.
- This number then determines which rarity will be picked.
- The picked rarity will be minted and the token Id associated with that rarity will be sent to the user that initiated this transaction.
Each Whale, Seal or Plankton minting function gives you a chance to receive a certain rarity per minting function. Here is an overview:
Royalty distribution to twelve artists & EIP-2981 Implementation
Previously, we created a smart contract that allows the distribution of royalties to artists, this can be found here. As we have twelve artists that need to receive royalties only for the art they made, we need to deploy the royalty distributor for each artist. Following the EIP-2981 implementation we added the royaltyInfo function that sends royalties to one of the deployed royalty distributor smart contracts when a token Id is traded.
The Membership NFT project will launch the 25th of October 2022.
Valorize DAO is building no-code tools to help communities coordinate at scale for the next 100 years and beyond. We host a free, bi-weekly tokenomics academy to help others understand the emerging science of tokenomics. The Product NFT — Part I of our UNITY NFT collection — is live now at https://nft.valorize.app/; Learn more about our community by following us on Twitter, get involved in our Discord, follow our Instagram, visit our Spatial or launch your own token / cryptocurrency today at https://valorize.app.
New to trading? Try crypto trading bots or copy trading