ek247375
    • 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
    • Engagement control
    • 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 Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control 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
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    ## Grant title Surplus-capturing AMMs --- a feasibility study ## About the team **Andrew** : Ph.D. Mathematics, 10+ years experience academic research at internationally leading pure research institutions. [MEV research](https://github.com/flashbots/mev-research/blob/main/FRPs/active/FRP-22.md) w/ Flashbots. [awmacpherson.com](https://awmacpherson.com/) **Evan**: Mathematician, Data Analyst, DeFi Mechanism Design researcher. Previous research includes bonding curve controller modeling, analysis of RMM-01 LP mechanics, analysis of MEV arbitrage mechanics on POL, and cross margin risk modeling. [evandekim.eth](https://mirror.xyz/evandekim.eth/kowg_VFD7lp5p12C4wcytc2rooVXgKnUwBd-KUKtndQ) **Mohammed**: Electrical/Electronics Engineer. MSc Economics focus on Asset pricing and credit cycle modeling. 5+ years in TradFi derivatives trading. Currently researching and building digital asset focused algorithmic trading/market making algorithms, PBS research and post-merge ETH testnet development (Ephemery/Holesovice). ## Grant category Analytics and Integrations ## Grant description ### Background The proposal builds on a [thread in the COW forum](https://forum.cow.fi/t/cow-native-amms-aka-surplus-capturing-amms-with-single-price-clearing/1219) about a CoW-specific form of [MEV-capturing AMM](https://ethresear.ch/t/mev-capturing-amm-mcamm/13336). The discussion surfaced exciting prospects for AMM designs that promise to take back control of "surplus" value ordinarily captured by arbitrageurs and MEV searchers. This value can then be deployed, for example, to achieve better prices for users and an improved overall return profile for LPs than the traditional CFMM. ### The surplus distribution problem In the classic CFMM design, prices are updated by arbitrageurs who are paid for this service by capturing the price differential between the CFMM and external markets. Liquidity providers (LPs) effectively bear these costs of this by constantly having to accept trades at unfavourable prices, a phenomenon known to economists as adverse selection. Although these costs can be offset by trading fees, this approach to value allocation is limited in two ways: - Linear trading fees equally impact arbitrageurs and “noise traders” who may be prepared to trade at prices favourable to LPs. - Arbitrageurs compete only for positioning of their transactions in the block, and the proceeds of this competition goes to block producers rather than LPs. There is no room for a competitive market for updating prices. The CoW batch auction provides a more flexible approach to delivering price information which distinguishes arbitrageurs (or “solvers”) from noise traders and permits new dimensions of competition on price discovery. On the other hand, the CoW protocol as it stands does not provide its own liquidity, and in practice most of the liquidity comes from standard CFMMs whos LPs suffer adverse selection by trading with the CoW solver. The basic idea of this proposal is to evaluate the feasibility and impact of an approach to AMM design which custodies its own liquidity but uses the pricing discovered by CoW solvers. Such an AMM would be quite remarkable in that it would provide a way to earn yield for LPs from passive liquidity provision without exposure to adverse selection at the some time offer better pricing for CoW users. Given the power of this result, it is natural to expect that some challenges lie in its realisation. In our view, a feasibility study is necessary because of apparent confusion about the nature of the value that could be captured by such an AMM, undefined aspects of its design, and the [security](https://samczsun.com/so-you-want-to-use-a-price-oracle/) [implications](https://jumpcrypto.com/so-you-still-want-to-use-a-price-oracle/) of using the CoW solution as a price oracle for an external protoocol. ## References - Price volatility impact on LPs studied by Milionis et al. in LVR (paper titled: Automated Market Making and Loss-Versus-Rebalancing) ([https://arxiv.org/abs/2208.06046](https://arxiv.org/abs/2208.06046)) - Presentations by authors discussing LVR further ([https://www.youtube.com/watch?v=G8qxxlqvMBk](https://www.youtube.com/watch?v=G8qxxlqvMBk)) ([https://www.youtube.com/watch?v=q5vyJJb-Uyw&list=PLEGCF-WLh2RK2Cym4ZeEWDOSlmirXWtZO&index=34](https://www.youtube.com/watch?v=q5vyJJb-Uyw&list=PLEGCF-WLh2RK2Cym4ZeEWDOSlmirXWtZO&index=34)) - Surplus capturing AMM can be traced back to research proposal on MEV-capturing AMM designs ([https://ethresear.ch/t/mev-capturing-amm-mcamm/13336/22](https://ethresear.ch/t/mev-capturing-amm-mcamm/13336/22)) ([https://ethresear.ch/t/mev-minimizing-amm-minmev-amm/13775](https://ethresear.ch/t/mev-minimizing-amm-minmev-amm/13775)) - Paper provides formal specification of implementation of MEV-capturing AMM ([https://arxiv.org/pdf/2210.10601.pdf](https://arxiv.org/pdf/2210.10601.pdf)) - Paper details math behind using external price oracle in standard CPMM ([https://anrg.usc.edu/www/papers/dynamicautomation.pdf](https://anrg.usc.edu/www/papers/dynamicautomation.pdf)) - Forum proposal continues ideas on McAMMs, using fees as main tool for capturing LVR for LPs ([https://ethresear.ch/t/dynamic-mev-capturing-amm-dmcamm/13849](https://ethresear.ch/t/dynamic-mev-capturing-amm-dmcamm/13849)) ## Grant goals and impact - Propose high-level candidate architectures for “surplus-capturing” AMMs. In particular, address whether changes to CoW protocol itself are needed. Investigate security considerations, economic and otherwise, of the proposed architectures and discuss mitigation strategies. - Develop a quantitative model of the additional value that could be captured and delivered to LPs and users and measure it through empirical studies and simulations. **Deliverable** A technical report outlining relevant theoretical background, design considerations, metrics, and results of empirical studies. GitHub repository containing the code used for data studies. **Impact** The study will provide evidence as to whether current COW tools such as the competitive solver pricing can be utilized to build a surplus-capturing AMM in practise. It will also analyze the kind of "surplus" it would capture, its size, and the extra value users and LPs expect to receive. Thus preparing the ground for detailed design implementation. ## Milestones - Architecture. Specify candidate architectures (which will be used to define simulations and economic attacks). Discuss: - How prices are communicated from solver to AMM. - How LP portfolios are managed. - Block/batch synchronisation. - Security. Study attack scenarios and propose mitigation strategies. Discuss fallbacks in case of a delayed or missing oracle update. - Quantitative. Compare portfolio metrics of LPs in proposed designs with those of a traditional CFMM using historical market data. Clarify the relation of these quantities to LVR. - Quantitative. Evaluate the use of COW solvers as an oracle for an arbitrage-free price by comparing the performance of COW solvers with other approaches to computing this price. ## Grant timeline 6--8 weeks ## Budget breakdown Upfront: 15k XDAI Upon completion: 6k XDAI / 150k COW (12month linear vesting) ## Gnosis chain Address To be disclosed to grants team

    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