Inspiration
Polls are the most intuitive form of engagement, and we've seen this on platforms like twitter, so we wondered what would happen if we found a way for people to engage with polls, but also earn on their sentiments. literally putting your money where your mouth is.
What it does
Polls market enables users to make a prediction about the outcome of a real life event on the polygon blockchain network. Users who make a prediction are issued an NFT token that they can trade or transfer on secondary markets.
How we built it
We took a mobile first approach.
We took some learnings from the ERC721A and extended the TokenOwnership struct to contain a bytes32 representation of a prediction. Thus each NFT carries it's own prediction metadata that any user who owns it has ability to the staked earnings on that NFT.
Earnings are calculated by summing up the losing predictions and accumulating them to the single winning predictions based on the balanceOf and total ownerOf within the NFT contract.
Challenges we ran into
- Time: We discovered this challenge a bit late.
- Also figuring out the best way to create a market was a struggle.
- We wanted to dynamically generate the NFT images and upload the IPFS for each prediction. we sorta figured this out, but it gonna take a while to write the implementation.
Another challenge we are looking toward to tackle is the launch of the platform and adoption
Accomplishments that we're proud of
We did a comprehensive user research to fine tune our flow, and created the designs and workflows too.
What we learned
NFTs are not just pictures of monkeys. there is so much hidden potential yet to be unlocked and explored.
Features
- [ ] Smart contract to enable staking
- [ ] Smart contract can compute payouts from a winning prediction
- [ ] Smart contract enables a percentage % commission to be paid to admins from every successful stake event
- [ ] Users can authenticate on the dApp
- [ ] Users can connect their wallet on the dApp
- [ ] Users can stake on an event on the dApp
- [ ] Individuals can curate events
- [ ] Curators can be granted access based on their ownership of an NFT
- [ ] Curators can earn percentage % from their event outcomes
- [ ] Curators cannot stake on their own events.
Edge Cases & Non Goals
These are cases, where we think there might be a loop-hole in our system, however they should not be top of the mind at the moment, and we could batch these up as roadmap deliverables.
- [ ] Curator updates wrong outcome
- [ ] FIX: Admin can override outcome earning
- [x] FIX: Chainlink Oracle to produce outcome, which means we will actually curate the events, then only allow curators to pick from our list of possible events and use those I.D to initialize their contracts with our Chainlink Adapters.
- [x] Curators will fund their contracts with LINK TOKEN
- [ ] Curators must have staked in 5 events on the platform to be eligible
Technical Preferences
- Nextjs
- React
- Moralis
- Polygon
- Brownie
- Typescript
- Solidity
- Remix IDE
- Bootstrap, Chakra UI
Built With
- brownie
- nextjs
- polygon
- react
- remix
- typescript
Log in or sign up for Devpost to join the conversation.