--- tags: Raid --- # PreGov > PreGov is an embeddable widget that provides information on the impact your governance decisions will have on the price of your governance tokens. All using the power of prediction markets. <br> ## Motivation As more protocols add voting to their governance, Gnosis wants to empower token holders to make more informed decisions around voting proposals. By leveraging the power of prediction markets, we're able to forecast the predicted price impact on the governance token price. <br> ## Build Details For version 1 of PreGov, the request is to build an embedable app for users to create and view PreGov instances. The app leverages the exisiting Omen infrastructure for the prediction markets and price predictions. This means the main functionality we're building is the ability to collect the prediction market information and run the calculation to determine the price impact. A PreGov instance is defined with the following features: - Predicted Price Impact - Price of Governance Token if proposal passes - Price of Governance Token if proposal is rejected Here is a breakdown of functionality: - **UI - Web App:** Building the UI of the app. Gnosis has provided a clickable prototype that provides a baseline to start on. - Hours Estimate: 8-10 hrs - **Creating the Embed Code:** Building the UI code so it can be embedded in an iframe. This includes having a place apps can copy the embed code to place in their app. - Hours Estimate: 5-8 hrs - **Creating PreGov Instance:** Creating an PreGov instance requires providing the QuestionID's of the Omen Markets and the token addresses for the collateral token and governance token. This includes a backend to store the different instances. (NOTE: For v1, creation of the prediction markets on Omen will be a manual process a user does on Omen) - Hours Estimate: 5-10 hrs - **Predicted Price Impact (PPI) Calculation:** Ability to automatically calulate the PPI of each governance decision based on the data points from the prediction markets. Data required: Probability of each outcome, price governance token in collateral token - Hours Estimate: 5 hrs - **Viewing PreGov Instances:** Ability for users to view the embedable app and navigate to the relevant PreGov Instance. From the insance, the user should be able to click a url to the Omen markets. - Hours Estimate: 15 hrs <br> ## Design Details The target customer of v1 is snapshot. For the future version, we're going to match the styling of snapshot. <br> ## Project Budget, Timeline, Milestones Development Time: 38 - 48 hrs Project Budget: $3550 Assumed Start Date: 10/1/2020 Delivery Date: 10/14/2020 Milestone 1: Frontend UI presented for signoff - 10/7/2020 Milestone 2: Project Delivered for sign off - 10/14/2020 **NOTE:** Delivery and milestone dates will move according to when the proposal is agreed signed. (i.e. if Proposal agreed to on 9/28, delivery moves to 10/9) ## Future Plans The goal of PreGov would be to allow protocols and governance tools to easily integrate PreGov into their app. To better achieve that goal, v2 of PreGov can be a npm library to allow the app to use the PreGov functionality. We want to ensure we build v1 with v2 in mind to allow for an lower lift when upgraded. Scope of v2 will be dependent on the usage and feedback of v1 of PreGov. <br> ## Sign Off Criteria Milestone 1 Sign Off Criteria: - [x] UI Paint Sign Off per Wireframe in Proposal - Sign off given from Auryn on 9/30 Milestone 2 Sign Off Criteria: - [ ] Ability for user to create a PreGov from 2 existing Omen Markets. - [ ] Ability for users to embed PreGov instances on Governace Voting Pages. - [ ] Ability for user to navigate and view any PreGov instance directly from the embeded PreGov instance (PreGov instance defined in Build Details). ## Next Steps Please let us know how you'd like to move forward and/or if you have any questions. To kick off the raid please send payment of conditional "yes" tokens to the RaidGuild at `0x3C3692681cD1c0F42FA68A2521719Cc24CEc3AF3`. <br> ![RaidGuild Emblem](https://i.imgur.com/NTP6FC5.png)