PredictX
PredictX is a prediction market for X milestones (followers, likes, views, retweets, no. of posts, etc...) managed by CRE workflows
What it is
Live app - https://predictx-sandy.vercel.app/
PredictX allows users to speculate on X statistics like views/likes/retweets on a post, follower count of an account, no. of posts on a specific topic, etc...
The admin can create markets for any statistic that the X api can provide, set a betting deadline and a market resolution time, once the CRE workflow manages the market by automatically populating statistics and creating a graph for traders, and also resolves the market when the time comes.
Multiple markets can be created simultaneously and for every stat the X API provides.
The project so easy to deploy that can be live on any chain in less than 10 minutes given that CRE workflows are supported on that chain.
The data for the market comes directly from official X API via the CRE workflow to onchain making the data accurate and hard to dispute on.
How it Works
Live app - https://predictx-sandy.vercel.app/
PredictX uses Chainlink CRE workflow for market data fetching every 30 mins the workflow would get the data/metric for unresolved markets and populate it in the database so that a very user friendly graph can be created for trader and allow them to speculate better.
Currently the above is done via cron job because the CRE workflow could not be deployed, I contacted Thomas.
The same workflow also resolves the market (currently manually invoked) but if it was deployed it would scan for unresolved markets, get data needed for resolution and resolve the markets every 15 mins.
There are 4 components:
- Web - the web interface.
- Indexer - it watches for new bets and market-resolution events and lets the UI update accordingly.
- Smart contracts - For market metadata, resolution, and betting pool.
- CRE workflow - periodical market data fetching to create graphs for each market and market resolution.
Links
Created by
- Harpalsinh Jadeja