Inspiration
DAOs that have been able to fundraise and build a treasury and community
What it does
Allows users to deposit ETH through the front-end to mint the AI token and burn the AI token to get back their ETH. Users can also see their ETH and AI balance, as well as how much ETH they have deposited.
How we built it
Built with Solidity for the smart contract, React for the front-end and Ethers to allow the user to interact with the smart contract.
Challenges we ran into
It was a challenge to try and get the balances and deposit amounts to show up properly on the front-end. The main difficulty was figuring out the difference between the signer and the address of the account, and then learning that I needed to getAddress on the signer and then convert to a string.
Accomplishments that we're proud of
Finally getting the right values to show up on the front-end. Also getting the deposit and burn interactions of the smart contract to work through the front-end.
What we learned
This was my first hackathon project and non-tutorial full-stack web3 project. I've been learning Solidity but am still fairly new to React and web3/ethers. I learnt a lot about how get the front-end to interact with the smart contract by running into errors, reading the docs, failing a lot until getting it to work.
What's next for AiDAO
At the moment, a user can deposit and withdraw ETH at anytime by burning AI whenever they want. The burning mechanism was added mostly to see if it could work, but may be removed such that ETH deposited becomes treasury owned.
Limited permissions could then be added to the smart contract to handle the treasury i.e. a multi-sig so that the treasury could then be used to make donations to or fund research or projects in A.I. and robotics!
Also in mind is the ability to mint NFTs or to make NFT rewards that could be airdropped to AI holders, which could then help fund the goal of the DAO.
Built With
- ethers
- hardhat
- javascript
- react
- soldity
Log in or sign up for Devpost to join the conversation.