Inspiration
The prediction markets are not popular financial products in DeFi due to their risky nature. Some of the existing solutions are based on the "winner takes all" model. The inspiration for the "No-loss" prediction markets was mainly due to the Aave lending protocol. So there is a low barrier for users who want to try out these financial products with essentially no risk.
What it does
Currently, There are two types of markets available:-
Normal Market (High Risk) It's a market where correct predictors will get rewards proportional to their stake plus the interest earned from the Aave lending protocol. And, incorrect predictors will lose their stake.
No Loss Market (Less Risk) Here the interest earned from the Aave lending pool will only be distributed among the correct/winning predictors. So, It's is a less risky market as even an incorrect/losing predictor will get their stake back.
We also have two types of market outcomes:-
- Conditional Outcomes: Here one can predict only "YES or NO", based on condition. Qq For eg. Will the price of ETH go above $500?
Here, there will be only two options YES (For predicting that it will go above $500) and NO (For predicting that it will not go above $500).
Strict Outcomes: Here one has to predict the exact value. For example:
Q. Who will win the 2022 U.S. Presidential election?
-
Joe Birden -
Donald Trump
At the time of the market resolution (sometime in the future), the data is fetched from the chainlink oracles and the market is resolved with the correct results. These results are fetched from a trusted source.
How we built it
We have implemented prediction markets in solidity and deployed the contracts on the Kovan testnet. We make use of chainlink and Aave in our contracts. We are using Chainlink oracles to fetch external data to resolve the market. We believe that Oracle is the only secure way to fetch data into a smart contract.
We are using Aave for maximizing the profits of the users. The user can stake for a limited time span after that the funds are deposited in the Aave lending pool where it earns interest until the market is resolved. At the time of market resolution, the funds are withdrawn from the market to the smart contract. The eligible users can then withdraw their respective rewards anytime they want.
Once the market reaches the market close timestamp, the system automatically displays the resolve market button. On the click of the button, all the funds from Aave get withdrawn and get deposited to the market contract. At the same time, the smart contract calls the chainlink function to get the market result. In few seconds chainlink provides the result and the market gets resolved.
We are using The Graph protocol, to visualize market data like predictions, stake, and market resolution results. This data can be analyzed by the user for risk assessment or due diligence. The subgraph can also be used as an oracle for other markets to supply useful data but such use cases are not explored in this project.
Steps
- You have to connect Metamask and choose the network as Kovan. The system will show all the available markets. It will display both No Loss and Normal prediction markets. One can also see if the market is already closed.
- You can click on any market and the system will direct on the market page. On that page, one can see all the details of the market.
- You can create your position by clicking
Want to Predict button. You have to choose the outcome and need to fill the stake amount, We only support DAI for now. - The system will show you metamask pop-up to approve the token. It will call ERC20 to approve the function.
- After approving, you will get another metamask popup to sign the
submit predictiontransaction. - You can see the result once the market gets resolved at the market close timestamp. If you have any position in the market and made a correct prediction, You can click to
claim rewardbutton. For the No Loss market, also the incorrect predictor will get the buttonGet Staketo get their stake back.
Challenges we ran into
- Calling the API from chainlink.
- Making the conditional market. Creating a generic market for assets like ETH, BTC, etc.
Accomplishments that we're proud of
- We are able to create No Loss as well as Normal prediction markets.
- We successfully created a condition-based market, which is fully decentralized.
- Able to integrate Aave to maximize user profits.
What we learned
- We learned to leverage chainlink oracles to fetch data securely.
- We learned about Aave and Chainlink.
- We got to know the power of The Graph protocol.
What's next for C_LINK Prediction Market
- We want to make our system developer friendly so that anyone can deploy the markets easily. For example, anyone can easily create a market for: "Will Trump win elections of 2022?"
- We want to incentivize the market creators with some fees.
- We want to use The Graph for providing results to Chainlink using External Adapters in the future to get the result of any type of questions.
- Providing interest to the incorrect predictors also in the case of Normal Markets (High Risk).
- We want to use Gelato For automation of Depositing stake on Aave and Resolving Market.
Roadmap
Quarter 1
- Implementing more types of markets and outcomes on the platform, such as sports events, political elections, and stock prices.
- Adding support for more assets, such as ERC20 tokens and stablecoins.
- Improving the user interface to make it even more user-friendly.
Quarter 2
- Integrating more external data sources through Chainlink to make prediction markets even more accurate.
- Implementing a market creator fee system to incentivize users to create more prediction markets.
- Adding support for more DeFi protocols, such as Uniswap and Compound.
Quarter 3
- Implementing a liquidity pool system to allow users to provide liquidity to prediction markets and earn rewards.
- Adding support for margin trading to allow users to leverage their predictions.
- Integrating Gelato for automation of depositing stake on Aave and resolving markets.
Quarter 4
- Implementing a mobile app for easy access to the prediction markets.
- Integrating with other blockchain networks, such as Binance Smart Chain and Polygon, to expand the user base.
- Adding support for NFT prediction markets.
Executive Summary:
C_LINK Prediction Market is a decentralized platform that allows users to create and participate in prediction markets for a variety of events, such as sports events, political elections, and stock prices. The platform leverages Chainlink oracles to fetch data securely and accurately, and integrates with Aave to maximize user profits.
Market Analysis:
The prediction market industry has been growing rapidly in recent years, with a market size of over $20 billion in 2020. This growth is expected to continue, driven by the increasing popularity of decentralized finance (DeFi) and the need for accurate predictions in various industries.
Business Model:
C_LINK Prediction Market generates revenue through market creator fees and liquidity pool rewards. The platform charges a small fee for users who create prediction markets, incentivizing them to create more markets. Additionally, users who provide liquidity to prediction markets can earn rewards.
Marketing Strategy:
C_LINK Prediction Market will target DeFi enthusiasts and prediction market users through social media advertising, influencer marketing, and community building. The platform will also partner with other DeFi protocols and blockchain networks to expand its user base.
Financial Projections:
Assuming a conservative estimate of 10% market share by the end of year 1, C_LINK Prediction Market could generate approximately $2 million in revenue from market creator fees and liquidity pool rewards. With continued growth and expansion, the platform could reach $10 million in revenue by year 3.
Conclusion:
C_LINK Prediction Market is well-positioned to capitalize on the growing prediction market industry and the increasing demand for accurate predictions in various industries. With its innovative features and strong marketing strategy, the platform has the potential to become a leading player in the DeFi ecosystem.
Built With
- chainlink
- javascript
- react
- solidity
Log in or sign up for Devpost to join the conversation.