DApp & Smart Contract — Research Funding Club NFT
Story / Experience
March 15, 2022 - Present
While I was working as a freelancer on Upwork. I received an offer to work at Research Funding Club as a Smart Contract and Web3 Developer. I was tasked with building a smart contract that was efficient and gas effective during mint as well as integrating web3 into the existing web application with the help of a designer who worked on the frontend.
Overall, this project took about a month with a lot of experimentation with the smart contract which allowed me to bring the average mint gas fee from 200K to 85K GWEI. Furthermore, I also worked as a consultant for my client by providing details about the marketing strategy, launch target, community building, etc.
Currently, the project has raised over $2000 and has pledged to donate about 90% to the Charity. I hope to work with this team in the future for their future endeavors.
More details about the Smart Contract and web3 integration below.
Smart Contract
(TL;DR) Lowered Gas cost from 221k ($15 - $30) to 68K ($3 to $7)
This turned out to be a very gas expensive mint which would have turned most users away. Thus, I began looking into specific ways to lower gas fees:
Gas Saving statistics
Key takeaways:
Mint gas cost went from 221K to 68K.
Reveal gas cost went from 28K to 23K.
NewDrop gas cost went from 57K to 75K.
The owner writes to the custom URI storage, which is less frequent thus, the increase in gas is not costly.
Reveal gas cost went from 28K to 100K.
The owner writes to the custom URI storage, which is less frequent thus, the increase in gas is not costly.
(LEFT (BEFORE): ERC721 and ERC721URIStorage RIGHT (AFTER): ERC721A and Custom StorageURI)
Web3 Integration
After deploying the smart contract on the Ethereum Blockchain through the owner, I integrated the web3 into the existing frontend to be able to access the mint functionality. Furthermore, I added over 15+ wallet supports so a hugely diverse group of users can mint without any hassle.