X Protocol grant proposal

Funding Tier:
Tier 2
Grant amount:50k
Project Overview:

Project title : X Predict Market
X Predict Market is a decentralized prediction market built on X Protocol. The objective of X Predict Market is to enable users to participate in the prediction process in various ways by creating topics, discussing, predicting and approving the results. Users are also incentivized by these engaging activities. Beyond the prediction, users can actively interact and socialize with each other within the social system. It is a way to gather people’s wisdom to conduct historical analysis and future exploration. It can also benefit current decision-making. Therefore, our team wants to contribute to such a way to condense the wisdom of the people.

How will this project be integrated into Conflux?
X Protocol plans to deploy X Predict Market on Conflux and also develop a X Cross Chain bridge to connect the Conflux and Polkadot ecosystem.

Why is your team interested in creating this project?
As a community-oriented project, we are exploring the path to a true web3.0 future. Creating X Protocol enables us to build various DApps and attract more users to enter our ecosystem, taking the governance role and adding value to our blockchain. Taking X Predict Market as an example, it allows users to freely initiate prediction proposals and determine the results through community, it demonstrates the value of consensus and DAO.

Project Details:
As an evolving decentralized prediction market, X Predict Market is composed of an initial proposal pool and a formal prediction pool. In the initial proposal pool, users can create a variety of interesting topics for prediction. Meanwhile, other users can vote on the feasibility of the topic, which will enter the formal prediction pool after the vote is casted.

Technical approach :
Each option will generate a token, of which the market making will be automatically conducted by the new Fixed Product Market Maker (referred to as FPMM). Users can make their own analysis and judgment on the potential results, and then obtain prediction tokens by exchanging assets. Users can receive governance token POT as rewards by creating prediction topics, participating in predictions, successfully predicted, and providing liquidity. POT can be used as collateral for becoming a governance node and to participate in community governance events such as on-chain voting.

Product Flow :
Creation of The Prediction Market
Everyone can initiate a prediction proposal in the initial proposal pool through X Predict Market. When creating the topic, users should set up the prediction type, topic, optional results, settlement currency, transaction fee ratio, prediction period, and the actual date when the result is revealed. Besides, any amount of settlement tokens are required to add for initial liquidity, as well as a text describing the key points and merits of the proposal, the source of information, how the results will be validated and secured accurately and etc, which can win the support and attract other users to join the prediction.

Voting in Initial Proposal Pool
In the initial proposal pool, all users can browse and vote for any prediction proposals created by other users, which draw their interests. During the vote, users will need to verify the connected wallet addresses and hold a certain amount of governance tokens. If the number of ‘support’ votes exceeds a certain basic amount, and the support rate surpass 50%, the proposal is passed. If the proposal is finally passed, the users who voted in favor will get the governance tokens of the initial proposal vote as rewards. If it does not pass, the users who vote against it are getting rewards instead.

The Prediction Stage
Proposals that have passed the initial voting will be displayed in the formal prediction pool. Users can choose any of the ongoing prediction topics to submit their opinions. When the topic is created, the creator sets the settlement currency for transaction at the very beginning, such as DOT. Users can either make predictions or add liquidity to the prediction topic. Users will get transaction fee by adding liquidity.
When making a prediction, a certain amount of settlement tokens is required in the wallet, and then the settlement token is exchanged for the prediction tokens. During the prediction period, users are free to sell prediction tokens to make profits or stop losses in a timely manner. When the prediction result is officially announced, the tokens which are successfully predicted will be exchanged for settlement tokens at a ratio of 1:1, otherwise the tokens that fail the prediction will lose value.
Referring to AMM, we set up a new type of fixed product automated market maker (FPMM), which will automatically adjust the value of prediction tokens, eliminating the need for in-depth support of order book, and the liquidity is greatly increased.

As for the specific process of FPMM? For example:
① User JACK created a prediction market X1, 100DOT of basic liquidity are deposited, and the probability is set to 50:50;
② The market automatically converts 100 DOT into 100 X1-Yes tokens and 100 X1-No tokens;
③ JACK received 10 liquidity certificates X1-LP exclusively for the prediction market;
④ Another user Tom purchases 25 DOT worth of X1-YES tokens from the market.
⑤ First of all, assuming the transaction fee is 2%, Tom needs to pay a total of 25.5DOT.
Then, 0.5 DOT is deposited as transaction fee, and the other 25 USDC will be converted into 25 X1-YES tokens and 25 X1-NO tokens.
Then, because the user chose YES, 25 X1-YES tokens will be given to Tom, and another 25 X1-NO tokens will flow into the market. There will be 125 X1-NO tokens in the market. In the absence of new or reduced liquidity, the sum of product of the number of tokens of X1-YES and X1-NO remains a fixed value because of the automatic market-making mechanism of FPMM.
Therefore, the amount of X1-YES tokens in the market will change to 100100/125=80, which is 20 less than the original, and these 20 will also be given to Tom. Therefore, the total number of X1-YES tokens obtained by Tom is: 25+20=45.
⑥ When JACK retrieves liquidity using LP, he will retrieve 80 DOT and 45 X1-N0. When the final prediction result is NO, 45 X1-NO can be exchanged for 45 DOT, and JACK will harvest 125 DOT; Otherwise, JACK will only have 80 DOT left. 90% of the transaction fee will go to the liquidity provider, and 10% to the topic creator. Since JACK is both the topic creator and the only liquidity provider, he will get the full transaction fee of 0.5 DOT. When there are multiple liquidity providers, they are divided proportionally according to the amount of LPs they hold. Part of the fee is allocated to the topic creators to encourage users to discover interesting prediction proposals and introduce them to other users. The larger the pie, the more the liquidity provider will gain, so this is a total win-win mechanism.
⑦ Assuming that the final prediction result is YES, prediction of TOM is successful. When he converts X1-NO to DOT, the platform will charge a 0.5% withdrawal fee: 45
0.5%=0.225DOT, of which 50% will be allocated to the correct prediction Node, 50% is used as the technology development cost of the platform.

Compared with AMM, this can tokenize the two predicted options and control the sum of their prices to 1. The more people who buy one of the options, the higher the price, but the price will never exceed 1. The traditional AMM is only suitable for direct transactions between 1 token and another token, and the price can theoretically increase indefinitely.

2

Prediction Completed
When the prediction period set by the creator of the topic ends, the result is pending. In this process, any new prediction can no longer be proceeded while liquidity can be removed.

Result Uploaded On-chain
When the result is generated reaching the initially set-up timeline, the prediction result is uploaded automatically by the governance node through the oracle and is totally transparent to all users for judgement during the result announcement period.

Market Settlement
After the result is revealed, the price of the token with the opposite position will decrease to zero, and the prediction tokens with successful prediction will be cashed in the settlement tokens at 1:1. When the person who predicts correctly gets the reward, a 2% withdrawal fee will be charged. Within the 2% fee, 50% of which will be allocated to the node for submitting the correct result, and the other 50% will be used as platform revenue for technology development, token buy-back and etc. The transaction fee ratio is set by the creator upon topic creation with a default 2% rate. 90% of the transaction fee will be rewarded to the liquidity provider, and 10% will be rewarded to the topic creator.
3

Prediction interface

Create prediction page

Wallet page

Cross Chain page

Overview of the technology stack being used, including API specifications, and documentation of core components.
9

Ecosystem fit:
X Predict Market in Conflux ecosystem
Our main focus in the early stage of development lies in the development and upgrade in the test chain. X Predict Market will play an important role in the Conflux network as prediction market, an integration prediction platform including event prediction, community governance, cross-chain, market incentive as well as social system. Concerning the settlement currency in prediction market, X Predict Market will give priority to the tokens of the Conflux ecosystem. Besides, we will seek interaction with other projects in terms of the market incentive mining. For example, tokens of a certain project can be chosen as settlement currency of a certain popular topic of X Predict Market. In addition to the prediction mining, users can share the transaction fee by providing liquidity, obtained from which the LP token can be used for yield farm.

Target audience
The target audience of our project is based on users interested in prediction events, but can be extended to the corresponding types of interested users according to the specific types of prediction topics, for instance, price prediction of certain DEFI project can be extended to users in DEFI area, and even focus on users of the project itself; Another example, the prediction of the presidential election can appeal to those who have not been exposed to digital currencies, who simply want to participate in the pre-predictions of the presidential election, who are fans of a certain president or someone who wants to make a profit through gaming in addition to users who are interested in the prediction itself.

Team:
Wenzhu liang (Engineer) https://www.linkedin.com/in/guozhu-liang-lubis-664a981b9/
7 years experience in front-end development HTML, CSS, javascript, Vue, React, Nodejs familiar with Rust,substrate development, project management

Zhijie Jiang (Engineer)
https://www.linkedin.com/in/志杰-蒋-399986208
Rich programming experience, 1 years Solidity development experience familiar with block chain development, master Rust、Substrate.

Hongtao Ji (Engineer)
https://www.linkedin.com/in/宏涛-吉-322985208
3 Years of programming experience, familiar with c/c ,solidity,nodejs,rust,substrate development.

Danling Xiao (Engineer)
https://www.linkedin.com/in/当玲-肖-b01986208
3 years experience in front-end development HTML、CSS、javascript、Vue familiar with React development

Ting Chen (UI)
https://www.linkedin.com/in/tina-chen-291806202
8 years experience in design, rich project experience in block chain finance industry, mature independent design control and innovation ability, good at visual brand design, product design, proficient in photography shop, sketch, illustrator, C4D

Registered Address : Singapore
Registered Legal Entity :GREENCORE FOUNDATION LTD.

Team’s relevant experience
X Protocol is experienced in blockchain product planning, design and development. Having worked in the crypto currency exchange, most of our team members have become seasoned smart contract developers after their experience in DeFi lending and DEX development. Our team members are proficient in Rust, C++, Solidity, Java, JavaScript and other development languages. Among whom Liang Wenzhu is certified by the Parity substrate course as Outstanding Student and has led other members of the team to systematically study substrate.

Github

Development Roadmap: Deliverable

  1. Creating proposal module
    This module provides a method for creating prediction proposals using specific parameters, such as prediction topics, options, settlement currency, transaction fee ratio, and prediction period.

  2. Prediction participation module
    This module provides the functions of using settlement tokens to participate in predictions, swapping prediction tokens, and providing and removing liquidity.

  3. Results uploading module
    This module provides the function of submitting results through oracle.

  4. Market settlement module
    After the results are officially announced, users predicted correctly can exchange their prediction tokens with settlement tokens with equivalent value.Users who provide liquidity automatically remove liquidity after the end and share fees.


er

Long Term Vision:

  1. In the second phase of the product development plan,multiple incentives are designed for users. In addition to gain rewards by predicting correctly, users also have rewards for prediction mining, staking, predicted leaderboard, liquidity providing and yield farming, and etc. Also, there are additional rewards for prediction topic creators and community nodes. The specific rules of this part of the reward are introduced in the white paper.
  2. In the second phase of the product development plan.We will integrate cross-chain mechanism, we’re ready to become a para-chain of Polkadot. At present, the cross-chain will be concentrated between the parachains, the purpose is to make more other parachain assets can participate as the settlement currency of the forecast proposal. In addition, market-driven mining will seek to interact with other projects.
  3. In the third phase of the product development plan.The platform will open up community autonomous nodes, and reporting and supervision mechanisms. Each user will be able to become a governance node by staking governance tokens. The governance node can upload the results and share the revenue from withdrawal fee. The governance node is authorized to upload results and accept the supervision of the entire network. When the result submitted by the node is different from reality, any user can initiate a report through pledge, the reported person will be punished, and the reporter will be rewarded.
  4. In the third phase of the product development plan.Optimize an easier-to-use oracle. In order to encourage more non tech-savvy users to explore the oracle, we will develop a graphical operation interface for the common users to upload results through the oracle.
  5. In the third phase of the product development plan.Add the governance voting pool of the parameters and development of the platform it self. The range of voting concludes the settings of some parameters of the platform, future revisions, iterative upgrades of the platform, such as adding new features.
  6. In the fourth phase of the product development plan, a more designated and user-friendly dashboard will be added to display platform statistics.
  7. In the fourth phase of the product development plan, More than simple prediction, it is a way for actively socialize and interact with passion. Users will be able to discuss topics by predicting topics, and join a forum-style communication system, with social functions such as friends’ group and group chats.

Community Engagement:
Tutorial : https://x-protocol.gitbook.io/x-protocol/
Article : https://medium.com/x-predict-market/x-predict-market-dapp-test-guidelines-9cfb4ffef00a

Delivery Requirements:
github

Other: Please include any further information or attachments that are relevant to your application.
Use case
Our project enables the users to hedge their risks. For instance, farmers in a certain area can hedge their risk of drought by predicting rainfall. If the rainfall is of abundance, a bumper crop is expected, if not, the farmers can receive their hedge profit.
Our project is applicable in consumer preferences investigation.For example, prediction of the sales volume of a certain two competing products in a certain quarter. The competing product can refer to a certain car, food, cosmetics, etc. with public sales statistics (for example, a listed company with quarterly reports), which can guarantee the final result. Ex Ante prediction can gain insight to people’s satisfaction and confidence in different competing products in advance, thereby knowing which products are more popular with consumers, and improving existing products to meet consumer preferences.
Our project is also suitable for the tendency of political elections investigation. For instance, in the US presidential election, the prediction platform can be used to gain insight of people’s authentic thoughts on which candidate people are more biased towards.
For example, our project can be adapted to truth investigation.The true cause of a mystery case may only be known to a few, and then people can suggest whether someone is willing to disclose the truth, or directly select a group of suspects as an option, and those who know the truth will be motivated by the market to reveal the truth with evidence. After the recognition of all, the proof not only restores the truth to the world, but also gains profit out of it, and people can stay anonymous for safety concerns.
Our project also applies to the investigation of market price trends. Like predicting the price of a certain city or even a specific real estate, or predicting how much the highest price of BTC can reach in a certain period of time, revealing people’s true expectations of this type of asset.
The prediction topics of our project are issued from users’ spontaneous discussions, which is featured with great diversification. Evolution is expected with the continuous use case discovery by users. The use case above are merely just some possible examples.

Similar project
We have summarized a form and made a comparison with the most popular prediction-related projects in the current market, as shown in the figure below.

Compared with Option Room in the Polkadot ecology, it has no prediction product available yet. From its disclosed content, compared with X Predict Market, it lacks flexibility and does not operate Automatic market maker based on AMM; Lack of incentives, it is not featured with our prediction mining, LP mining, creator rewards, prediction rank list and other market incentives; lack of sociability, we will create a prediction topics driven Community interaction forum where users can interact with each other.

Compared with projects outside of Polkadot ecology. FTX is a centralized project, which is at the risk of being operated in the dark by the platform and legal issue; Prosper is based on Binance Chain, with only automatically generated short-term price forecasts, and the range of audience is narrow; Omen is not based on Polkadot, it lacks the diversity of cross-chain asset participation, and lacks diversified incentives and sociality;Polymarket is short of community governance and reporting and supervision mechanisms;The homogeneous topic of Catnip cannot even be independently created by users, as well as the absence of community governance and incentives; Augur is the order-book type, not as flexible and liquidity abundant as AMM’s automatic market making, and lacks the participation of cross-chain assets and market incentives.

1 Like

Great project that already has a large and existing community! Happy that you guys have applied!

Are the prediction outcomes binary or can multiple-choice predictions be includes as well?

Hi Christian, thanks for the warm welcome, we are also happy to apply for the Conflux grant. It can be really helpful in terms of expansion of our product.
Currently the prediction outcome is only binary, but we will develop mutiple-choice predictions in our future plan :+1:

Hi X Protocol! Thanks for submitting your application! Would be great to see a prediction market come to the Conflux ecosystem! :slight_smile:

Can you please provide some more details on your cross-chain strategy for X Protocol. I.e. Will there be cross chain governance or will X Protocol issue a Conflux native governance token? Will their be any interaction between the Polkadot instance of X Protocol interact with the Conflux instance?

Also does the grant include the polkadot bridge? It is highlighted at the top of your application, but do not see it specified in the development roadmap.

1 Like

Thanks for applying! And to echo Geoff, would like more info on Polkadot bridge. Can you move metadata across chains?

Hi Geoff, thx for the comment.

About our Cross-chain strategy:
The X Protocol cross-chain bridge solution is a two-way cross-chain token bridge based on chain relay, and our relay solution will have better performance in speed. In detail, X Cross-chain Relay is a novel cross-chain validation Relay.
It implements a lightweight client using a new encryption algorithm-Merkle Mountain Range (MMR), Optimistic Whistleblower System (OWS), Relayer Incentive Model and other technologies.
What’s more, It has realized the function that any historical block can be verified through the latest block, with less storage occupation, on-demand use and lower cost.

Currently our development has not reached the stage of cross chain governance yet, but it is a great option that we can explore in the future. So does the governance token issuance on Conflux.

Regarding the question ‘Will there be any interaction between the Polkadot instance of X Protocol interact with the Conflux instance?’ what does it mean, sorry we did not understand it.

And to the second question, The grant does not include the polkadot bridge, we apply for the Conflux grant using X Predict Market, which is the first DApp of X Protocol. As a polkadot-based cross-chain protocol, it can develop various business scenarios. X Predict Market can benefit from the decentralized,safe and fast bridging solution of X Protocol.

We would love to issue a Conflux native X Protocol governance token once we find suitable DEX on Conflux to work with.

Currently i dont have any questions that are not already echoed by the other committee members.

Side Question:
Is it necessary for all governance votes from the “loser” of the vote to lose all tokens or am i misunderstanding?

Hi Tristception, you understand the mechenism correctly. If user vote for the option that is inconsistent with reality, he would lose all the tokens that he use to vote. And rewards will be distributed to users who voted correctly according to the ratio.

Hi SmoothCB, thx for your comment here. X Protocol develop our own cross chain bridge using the Relay components cross-chain method, which does not require this metadata concept in substrate. Hence we don’t need to move metadata across chains.

Hi! Welcome to Conflux!
I have several questions here:
1.[quote=“XProtocol, post:1, topic:9684”]
Prediction Completed
When the prediction period set by the creator of the topic ends, the result is pending. In this process, any new prediction can no longer be proceeded while liquidity can be removed.
[/quote]
Is this mean a creator can only have one active prediction at the same time?
2. How does the system verify the results?
3. What if multiple users propose similar proposes at the same time(Maybe different on the titles only), how does the system handle it?
4. As a user, can I buy X Yes-coins and Y No-coins, and provide lp directly?
5. Which token will be the governance token?

Hi Coolbit, we would love to answer the questions :blush:
1

This sentence means that, when Prediction proposal A is in the ‘end’ status, which means ‘waiting for result’, and users can not predict in this Prediction proposal A since the voting period has ended and we are waiting for the governance node to upload the results. But people can initiate multiple prediction proposals (active) at the same time.

2 There is a staking system in X Protocol, where people can stake certain amount of POT (governance token) to become a node.

When the result generation time set during the prediction topic creation comes, the
prediction result is uploaded by the governance node through the oracle and should be
accepted by the trial of all users during the result publicity period. In the future, we will
develop a graphical operation interface for non-technical personnel to use the oracle to
upload results. The result publicity period is initially set to 3 days, and it can be revised
through the community voting in the future.
Users can report wrong nodes that upload results that are inconsistent with actual events.
When reporting, it is necessary to stake more than twice of the staked amount of
governance tokens of the reported node. If the reporter cannot raise that many tokens
by himself, he can also initiate a report call, and other users can stake in to support the
reporter. Upon successful staking, the report is formally initiated, which will be voted
and determined by users of the entire network within 3 days.
When more than 50% of the votes support the reporter, the report succeeds, otherwise the
report fails. When the report succeeds, half of the staked tokens of the reported node will
be given to the reporter, and the other half will be distributed to the reporter’s
supporters according to the voting ratio. When the report fails, half of the tokens staked
by the reporter will be given to the reported node, and the other half to the node’s
supporters in proportion to the voting.
After a successful report, it will enter a new round of publicity period. During which
people are also allowed to report, but the staked tokens to initiate the report will be
multiplied by 2 times. The process repeats until no one ever files for a report in a certain
round of publicity period. Then the result of this round will be the final result.
The result has already been produced when the ruling is made, under normal
circumstances, users will vote for the correct result. If a collusion is plotted by the
whales, then they first need to hold the majority of governance token, which is costly,
and if they jointly kidnap the project and tamper with the results the governance
currency of such a project risks to become valueless, which will eventually cause them
to incur a loss. This is not worth the gain. On the other hand, should there be a successful
report against them, their staked governance token will be lost to the reporter. Therefore,
over the long run, nodes will be incentivized towards submitting correct results, which
ensures the fairness.

3
We are not worried about the similarity of the proposals. If users initiate the same prediction proposal, it means that this is a problem that everyone cares about. Under the same proposal, users can go to the community to call on everyone to participate in their own proposals, so as to get higher income. Competition will bring everyone’s attention, which means that for x predict market, the same proposal will bring more liquidity, it is up to the community to create diverse proposals.

4 Correct
Users can even buy Yes coins and No coins at the same time, and they can provide liquidity after the purchase. (To be clear, the Yes / No token are just lp token, which you can exchange for settlement token when the results are uploaded and the prediction ends. But users deposit settlement tokens as liquidity)

5
If we understand the meaning correctly, POT will be the only governance token in X Protocol ecosystem.

What Oracle service will X protocol use on Conflux.

Hi Flarcos

Being the first DApp on X Protocol, X Predict Market can conduct all kinds of prediction event. Including long term/short term cryptocurrency price prediction & real-world off-chain event.

The Oracle service can contribute to X Predict Market’s short term cryptocurrency price prediction with it’s on-chain data feeding function.

We would love to work with Oracle project on Conflux

1 Like

Hi @XProtocol nice product there!

The Witnet decentralized oracle recently launched on Conflux. We’ll be happy to help!

The benefit for a prediction market to use an autonomous oracle service is to improve the certainty of the result and to reduce the resolution time. Some projects even have near-immediate resolution and payouts, like Augur Turbo.

I’ll DM you if that’s ok.

2 Likes

Hi ASDPC
It’s nice to learn about your project, of course we would like to have a further discussion about the cooperation :smile:
I have joined the telegram group chat
Thank you

Hi Flarcos

Being the first DApp on X Protocol, X Predict Market can conduct all kinds of prediction event. Including long term/short term cryptocurrency price prediction & real-world off-chain event.

The Oracle service can contribute to X Predict Market’s short term cryptocurrency price prediction with it’s on-chain data feeding function.

We would love to work with Oracle project on Conflux

3 Likes

Could we include a Witnet oracle integration as a milestone in your grant proposal? :eyes: @ASDPC

2 Likes

That’d be great. Let me know if you need anything from our side to make that happen.

1 Like

Hey Christian, is there any other questions that you would like to ask, we would be glad to answer it :slight_smile: