Yutaro Mori
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Subreddit Prediction Market ## Goal Create an easy-to-use service on Ethereum that allows subreddit moderators to create prediction markets for community members. For example, a prediction market can be used as a spam filtering mechanism by allowing community members to bet on whether or not a new post is spam. Community members are incentivized to participate because correct predictions are rewarded with additional tokens. ## Basic Design First, a prerequisite for this prediction market is a token that's widely distributed to community members. The tokens are used to place bets. Second, a smart contract allows subreddit moderators to create new prediction markets. The smart contract allows token holders to predict the final result, and if that prediction turns out to be correct, they are rewarded with additional tokens. ## Market design For each prediction market we have a uniswap style mechanism. A user makes a post. We automatically create a pool A and pool B. Where the currency held in pool A (SPAM) and pool B (Not SPAM) are the sub reddits community points. If the post is eventually marked as spam by a moderator in pool B is divided among everyone in pool A. If the post is marked as not spam the tokens in pool A is divided among everyone in pool B. How does this division happen? If we divided evenly there would be a pile in attack where when it is clear how a post will be resolved (maybe while the settlement transaction is in flight) many user bet all their tokens on that outcome in order to maximize their returns. Insead we borrow the idea of [invariant exchange](https://blog.gnosis.pm/building-a-decentralized-exchange-in-ethereum-eea4e7452d6e) from uniswap. We have tokens in pool A and pool B. I want to make a bet. To do this I need to: 1. Risk tokens that I will lose if I am wrong 2. Get some tokens if I am right. The people who deposit into pool A are betting it is spam. The ones who are depositing into pool B are betting it is not. If I deposit into pool A I get $b_{remove} = b - (a*b)/(a+a_{add})$ b_remove tokens from pool B if I am correct and my original stake from pool a. ### Liquidity reward. We can take a small amount of every transaction around 1%. This can then be distributed evenly between both pools. But the reward is given per trade. So at trade x everyone who is in the liqiuduty pool at that time gets a reward proportioal to their share of the liqudity pool. Note we can do this easily by burning 1% of the tokens being withdrawn. The idea here is that if the ration of the pools enters the odds that you belive are correct for an event. The rational move is to put funds on both side of the pool. We offer the 1% reward of each trade as incentive to increase the liqidity of the pool and reduce slippage when users try and make big bets. Currently preidction markets don't offer a confidence about predictions. This is because there is no way to trade at a given price. But with invariant based exchanges you have that option. If we maximize the pool size it means that users can make bigger bets at a price. This means that the market is more confident. So we incentivize this with the 1% liquity fee. Finally, in order to reduce transaction fee payments, transactions will be executed using an Optimistic Rollup. ## Example: Reddit community auto moderator Every post that is placed on a subreddit automatically has a prediction market created with the field "Will a moderator label this as spam post". Anyone with community points is able to participate in this market. When the market is created the creator bets 10 community points on both the post being and not being spam. This is an incentive to others to check if the post is spam. Basically a community reward for helping the mod team. If it is spam they can bet and say it is spam. They know that the moderators when they check the post will label it as such. Any post that has probability 50% is spam gets auto blocked but the moderatos can unblock it. Any post that has prob 50% is not spam gets left as usual. If an attacker wants to beat this system they have to bet that their own post is not spam. This is a bet they will lose when the moderators resolve the market. When they make this bet. Community members are incentivized to bet against it. There are also incentives for people to create bots that detect if posts are spam. Most markets will have very clear results so there is no need for the moderators to resolve every market. Only the controversial ones. ## Milestones 1. ramp up on https://github.com/Hubble-Project and how it works 2. Make a simple child chain that mass migrates from a hub chain and back again. This kind of depends upon Vaibhav adding mass migrations + stabalizing hub chain. 3. Create the fraud proof for prediction market opru 4. Deploy to testnet with coordinator + users. 5. Make a CLI that lets you make bets / mass migrate / withdraw / predict / get your winnings. This will feed into a UI specialist who will make a UI, also may need to support them. 6. Make a tutorial about how to make a child chain.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully