<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>Nate</title>
        <link>https://paragraph.com/@nate-3</link>
        <description>adjacentresearch.xyz</description>
        <lastBuildDate>Wed, 19 Aug 2026 20:13:49 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>en</language>
        <image>
            <title>Nate</title>
            <url>https://storage.googleapis.com/papyrus_images/870e4001feac02e8d1a28665a10ee90a954b12a22341fc559adbdb32b43ff487.jpg</url>
            <link>https://paragraph.com/@nate-3</link>
        </image>
        <copyright>All rights reserved</copyright>
        <item>
            <title><![CDATA[Ramblings on Event Markets]]></title>
            <link>https://paragraph.com/@nate-3/ramblings-on-event-markets</link>
            <guid>zf95sv8uePBQlVAd0M5Y</guid>
            <pubDate>Mon, 01 Apr 2024 22:37:50 GMT</pubDate>
            <description><![CDATA[OverviewPrediction markets have a very interesting history. Not sure if this is the first that they were ever written about but Robin Hanson is generally seen as the father of prediction markets. He first wrote about them in Idea Futures in which he describes how policy makers should turn to betting markets rather than experts for decision making (later this became Futarchy). Here is a list of many more Hanson publications. A few years after Hanson’s initial Idea Futures post multiple big cor...]]></description>
            <content:encoded><![CDATA[<h1 id="h-overview" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Overview</h1><p>Prediction markets have a very interesting history. Not sure if this is the first that they were ever written about but <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://en.wikipedia.org/wiki/Robin_Hanson">Robin Hanson</a> is generally seen as the father of prediction markets. He first wrote about them in <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mason.gmu.edu/~rhanson/ideafutures.html">Idea Futures</a> in which he describes how policy makers should turn to betting markets rather than experts for decision making (later this became <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mason.gmu.edu/~rhanson/futarchy.html">Futarchy</a>).</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mason.gmu.edu/~rhanson/ifpubs.html#Hanson">Here is a list</a> of many more Hanson publications.</p><p>A few years after Hanson’s initial <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mason.gmu.edu/~rhanson/ideafutures.html">Idea Futures</a> post <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://marginalrevolution.com/marginalrevolution/2004/07/idea_futures_in.html">multiple big corporations picked up the idea</a>. Companies like Microsoft, Eli Lilly, and Hewlett-Packard have run experiments in which employees trade around <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.nature.com/articles/438281a">new drug candidates, approval of drugs</a>, etc.</p><p>Google <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://googleblog.blogspot.com/2005/09/putting-crowd-wisdom-to-work.html">ran internal prediction markets</a> to “forecast product launch dates, new office openings, and many other things of strategic importance to Google”. After 2 years of continually running their internal markets <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://static.googleusercontent.com/media/services.google.com/en//blog_resources/google_prediction_market_paper.pdf">Using Prediction Markets to Track Information Flows</a> was released, detailing many biases and outcomes. They have their application public on <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/google/arithmancer">GitHub</a>.</p><p>Even crazier in 2005 the Pentagon set up a prediction market website in which <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.wired.com/2003/07/the-case-for-terrorism-futures/">terrorist attacks and assassinations</a>.</p><blockquote><p>The Pentagon is setting up a stock-market style system in which investors would bet on terror attacks, assassinations and other events in the Middle East. Defense officials hope to gain intelligence and useful predictions while investors who guessed right would win profits.<br>- <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.indymedia.org.uk/en/2003/07/274957.html">Betting on Acts of Terrorism</a></p></blockquote><p>Prediction markets have gone through many iterations been tried in a number of applications from private corporations, open on blockchains, to the government.</p><p>Although, outside of U.S. election cycles and certain internal company markets they have never really caught much mainstream interest. Liquidity, Regulation, Duration of the predictions all play into this.</p><p>Sports betting on the other hand has always been popular and with recent regulation changes seen tremendous growth. Sports betting benefits from short duration bets and “always on” liquidity provided by the <em>House</em>.</p><p>Sports betting and prediction markets are one in the same, they are both <em>Event Markets</em>.</p><h1 id="h-forecasting-events" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Forecasting Events</h1><p>The idea of forecasting events has been very popular with the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://orgs.law.harvard.edu/effectivealtruism/about-us/about-effective-altruism/">EA</a> (effective altruism) community for a while and now more so with the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.lesswrong.com/posts/2ss6gomAJdqjwdSCy/what-s-the-deal-with-effective-accelerationism-e-acc">e/acc</a> (effective accelerationism) community. Basically the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://slatestarcodex.com/">slate star codex</a> / <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.astralcodexten.com">astral codex ten</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/slatestarcodex">scott alexander</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.lesswrong.com/">LessWrong</a> type. Ironically perfectly described in scott alexander’s Bay Area House Party Substack Series (<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.astralcodexten.com/p/every-bay-area-house-party">Every Bay Area Party</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.astralcodexten.com/p/another-bay-area-house-party">Another Bay Area House Party</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.astralcodexten.com/p/even-more-bay-area-house-party">Even More Bay Area House Party</a>)</p><blockquote><p>While different than EA, e/acc seemingly only became <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://archive.is/4VwWG">popular and mainstream</a> after <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.notion.so/Ramblings-on-Event-Markets-2e6ec476b29f4afba8889ad883e8b309?pvs=21">SBF ruined</a> the EA name in 2022. Notably SBF offered <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://ftx.com/markets/prediction">conditional markets on FTX</a> and FTX’s Future Fund made <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://donations.vipulnaik.com/donorDonee.php?donor=FTX+Future+Fund&amp;donee=Manifold+Markets">donations</a> to the popular prediction market <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://manifold.markets">manifold.markets</a>.</p></blockquote><p>The forecasting community is niche but very popular. In fact prediction market site <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://manifold.markets">manifold.markets</a> recently held their first conference Manifest. Here is some coverage on it in the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://web.archive.org/web/20240327065531/https://www.nytimes.com/2023/10/08/technology/prediction-markets-manifold-manifest.html">New York Times</a>.</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.penguinrandomhouse.com/books/227815/superforecasting-by-philip-e-tetlock-and-dan-gardner/">Superforecasting</a> by <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.penguinrandomhouse.com/authors/2129963/philip-e-tetlock">Philip E. Tetlock</a> and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.penguinrandomhouse.com/authors/76389/dan-gardner">Dan Gardner</a> details the government funded <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://en.wikipedia.org/wiki/The_Good_Judgment_Project">Good Judgment Project</a>. The yearly tournament poses between 100 and 150 questions on geo-politics*.* You can join challenges at <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.gjopen.com/challenges">gjopen.com/challenges</a>, some of them have close to 100k forecasters participating.</p><p>Far easier to follow is the Annual Forecasting Contest held by <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.astralcodexten.com">Astral Codex Ten</a>. In this contest a variety of 50 questions were asked. Rather than yes/no the questions asked for a probability that an event happened. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.astralcodexten.com/p/who-predicted-2023">Here</a> are the results from the 2023 competition. I look forward to these competitions each year.</p><p>Forecasting for the most part is pure reputation based and forecasters take pride in getting probabilities exactly right year after year.</p><p>Of course there are individuals that want to wager actual money on their bets, thus there are a variety of prediction markets (which of course bring traders, funds, etc.).</p><p>There is not a better overall prediction market FAQ than this one from astral codex <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.astralcodexten.com/p/prediction-market-faq">astralcodexten.com/p/prediction-market-faq</a>. It would be a helpful read before continuing, why they are accurate, clever use cases, and common objectives are covered in it.</p><h1 id="h-futarchy-and-impact-markets" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Futarchy and Impact Markets</h1><p>I first read about this ideal in <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://press.princeton.edu/books/hardcover/9780691177502/radical-markets">Radical Markets</a> (here’s a pretty good <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/@ryanavent_93844/a-brief-ish-review-of-radical-markets-6454ba0637a8">summary</a>) which among other things (like <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/@simondlr/what-is-harberger-tax-where-does-the-blockchain-fit-in-1329046922c6">Harberger Tax’s</a> and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.radicalxchange.org/concepts/plural-voting/">Quadratic Voting</a>) the concept of a Futarchy is presented.</p><p>Robin Hanson describes the ability to vote on your values, but to bet on your beliefs in his post on <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mason.gmu.edu/~rhanson/futarchy.html">Futarchy</a>. The idea is simple in a Futarchy government betting markets would say what policies are past and what we do. Hanson expands on this in the paper <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mason.gmu.edu/~rhanson/futarchy2013.pdf">Shall we Vote on Values, But Bet on Beliefs</a>.</p><blockquote><p><em>In &quot;futarchy,&quot; we would vote on values, but bet on beliefs. Elected representatives would formally define and manage an after-the-fact measurement of national welfare, while market speculators would say which policies they expect to raise national welfare. -</em> <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mason.gmu.edu/~rhanson/futarchy.html">Futarchy: Vote Values, But Bet Beliefs</a></p></blockquote><p>Here’s a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.richardhanania.com/p/futarchy-robin-hanson-on-how-prediction">podcast transcript</a> of Hanson detailing Futarchy in 2021. It is worth a read.</p><p>The two largest scale examples of a Futarchy are [GnosisDAO](<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/@gnosisPM/announcing-gnosisdao-595f75776eab#:~:text=GnosisDAO">https://medium.com/@gnosisPM/announcing-gnosisdao-595f75776eab#:~:text=GnosisDAO</a> is the prediction market,the Gnosis ecosystem through futarchy.&amp;text=GnosisDAO uses futarchy (prediction markets,by joining the Gnosis Forum.)) and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://app.themetadao.org/">MetaDAO</a> (follow <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://futarchy.guide/">futarchy.guide</a> if you are curious) both of which are blockchain based DAOs. Outside of onchain examples it’s quite hard to find physical real-life examples. In 2021 Vitalik wrote about a few <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://vitalik.eth.limo/general/2021/10/31/cities.html">here</a> but none of them really seemed to take shape. I feel like <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.zuzalu.city/dashboard/home">Zuzalu</a> (a “pop-up” city launched with help from Vitalik) or <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.praxisnation.com/">Praxis</a> both have a good shot at being one of the first to do so. (65% chance if Praxis actually launches or in one of the next Zuzalu cohorts either experiment with governance like this)</p><p>Impact markets on the other hand have seen decent traction. Generally impact markets allow for a fund of money to be distributed across a set of projects / initiatives according to various voting types. Sometimes there is matching (see <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.gitcoin.co/blog/gitcoin-grants-quadratic-funding-for-the-world">Gitcoin Quadratic Funding</a>) other times it’s based just on individual contributions. If you want to explore impact markets, social impact bonds, and retroactive funding, I highly suggest diving into <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://impartial-priorities.org/toward-impact-markets.html">impartial-priorities.org/toward-impact-markets</a> along with <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.astralcodexten.com/p/impact-markets-the-annoying-details">Impact Markets the Annoying Details</a>.</p><p>There are a variety of funds like</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.impactmarket.com/">Impact Market</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://forum.effectivealtruism.org/posts/6LppWMdN2NLHceGTr/impact-markets-the-annoying-details">Astral Codex Ten Impact Fund</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mani.fund/">Manifund</a></p></li></ul><p>and they have actually funded some pretty interesting and impactful things. For example in 2024 <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.astralcodexten.com/p/acx-grants-results-2024">ACX was able to fund</a> research on lead-acid battery recycling in Nigeria, the building of anti-mosquito drones, and the use of ultraviolet lightbulbs to kill airborne germs.</p><h1 id="h-news-driven-by-markets" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">News driven by Markets</h1><p>One of the most exciting areas of prediction markets to me is the idea to drive news based on actual market odds. I first saw this in the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.baseratetimes.com/">baseratetimes.com</a>. With the slogan of <em>News through prediction markets</em> they aggregate odds across various markets, pair the event with news articles from popular sites and report the actual odds.</p><p>Given sites like <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://kalshi.com">Kalshi</a> have predicted events like Fed rate cuts more accurate than CME Fed watch and better than most analysts, news driven by odds can give highly accurate news.</p><p>On prediction site <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://manifold.markets">manifold.markets</a>’s public roadmap they are considering <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.notion.so/3eccf8e8b31042e99966d70b250c0ee2?pvs=21">“newsifying” manifold</a> along with the ability to <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.notion.so/8d1b5352cb734a9dabc7282013b705c8?pvs=21">view prediction markets through tweets</a> (most of us get our news through twitter anyway).</p><p>It seems like there is still a gap in predictions into news in actually generating content, assigning probabilities and creating an entire news organization based on the public market.</p><h1 id="h-prediction-market-construction" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Prediction Market Construction</h1><h2 id="h-problems" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Problems</h2><p>Designing a prediction market is quite interesting especially relative to traditional markets. Prediction Markets are binary options they resolve to one or another outcome. Due to this they often struggle to garner decent liquidity. A good thought exercise is what would have happened DraftKings launched without being the house, I bet they wouldn’t have had as successful of a time with their sportsbook.</p><p>Once again Robin Hanson has a good take in his <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mason.gmu.edu/~rhanson/infomkts.html">Issues in information market design</a></p><blockquote><p>Sidenote: I feel like prediction markets have bad marketing, information market or event exchanges seems nicer</p></blockquote><p>He details some problems are</p><ul><li><p>Markets need to reach a critical mass of traders to be “accurate” only a handful of traders won’t tell you much and is easily manipulated</p></li><li><p>Event and price manipulation, insiders can easily manipulate an event their way (this is actually a good case for regulation)</p></li><li><p>Settlement, for sports markets money-lines are easy, did the Mavericks win last night? For some events the settlement outcomes can get muddied and the rules need to be hyper specific</p></li><li><p>It can be very hard to gain interest in trading both sides of a market, tough to attract market makers, and thus liquidity becomes a problem. Hanson details a solution in <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mason.gmu.edu/~rhanson/combobet.pdf">Combinatorial Information Market Design</a></p></li></ul><h2 id="h-design" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Design</h2><p>When considering constructing a prediction market there is a lot to consider</p><ul><li><p>Will you use real money? Tokens? What about regulation?</p></li><li><p>How will traders interact with your market? Via an Automated Market Maker, an Orderbook, RFQ/OTC?</p></li><li><p>What source will your outcomes settle against?</p></li><li><p>How will you support new markets? Will you support single/one-off events? What about series events? At what frequency?</p></li></ul><p>After re-launching an internal market during COVID-19 in 2020, Google details what it takes to operate a prediction market in <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://cloud.google.com/blog/topics/solutions-how-tos/design-patterns-in-googles-prediction-market-on-google-cloud">creating a prediction market</a>. They mention the primary goal of a prediction market is to “incentivize the right people to forecast accurately, thereby producing a consensus forecast that is more accurate than any individual”. In order to do so they make the case of good UX, incentives, and strong feedback loops. In my mind we have not reached good UX until its not uncommon to overhear something like “let me tail your interest rate bet for next month”. Prediction markets need to have a similar appeal to sports betting.</p><p>More tactically there have been many attempts at differentiated prediction market design</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://gnosis.io">Gnosis</a> launched <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://omen.eth.link/">Omen</a> and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.gnosis.io/conditionaltokens/">conditional tokens</a> with the idea that a token has (2) components YES and NO, you can mint a token and sell your NO shares to exclusively have YES exposure to the event. These tokens can trade on any exchange as they are ERC-20. This is very much so the Augur design (which was <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.coindesk.com/tech/2020/07/28/5-years-after-launch-predictions-market-platform-augur-releases-version-2/">shut down in 2020</a>)</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://polymarket.com/">Polymarket</a> first launched with an <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://legacy-docs.polymarket.com/getting-started/redeeming-shares">AMM</a> which somewhat worked. If you already dislike impermanent loss wait till you try liquidity providing something that has an expiration date (like a binary option). <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://polymarket.com">Polymarket</a> now has an orderbook. (Sidenote: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://primitive.xyz">primitive.xyz</a> has an interesting approach on AMMs for assets with time bounds, read <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.primitive.xyz/papers/Whitepaper.pdf">RMM-01</a>)</p></li><li><p>Most other markets <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://kalshi.com">Kalshi</a> implement a standard orderbook</p></li></ul><p>The orderbook versus automated market maker debate is something I have been interested in for a while, see <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://adjacentresearch.substack.com/p/ramblings-on-amms-and-orderbooks">Ramblings on AMMs and Orderbooks</a> and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://adjacentresearch.substack.com/p/ramblings-on-defi-derivatives">Ramblings on DeFi Derivatives</a> so we will detail these designs more.</p><h3 id="h-orderbooks" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Orderbooks</h3><p>A majority of prediction markets today use an orderbook. Makers post bids and asks which is filled by takers just like your traditional markets. Orderbooks are always the best option in large cap, very liquid markets. They facilitate the tightest spreads and give the most flexibility to traders.</p><p>Given how nascent many of these markets are the spreads are often enormous 10-15% isn’t unheard of. Prediction market exchanges often need to have their own market making group to make the markets decent to trade on. For example <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://kalshi.com">Kalshi</a> has a Kalshi Trading arm. With more clarity on regulation (CFTC regulated markets really helps) more traders and more liquidity will help facilitate tighter spreads. In the future maybe we see niche market making firms exclusively focus on trading prediction markets.</p><h3 id="h-automated-market-makers" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Automated Market Makers</h3><p>When a market is new, niche, small and low liquidity often utilizing an AMM curve can be very helpful. Liquidity providers generally provide passive liquidity to an AMM allowing traders to always have a price to sell into (<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://blog.uniswap.org/jit-liquidity">Just in Time liquidity</a> is also a thing).</p><p>For a new meme coin AMMs can make a lot of sense and a super basic constant product function (CFMM) likely fits the use case well. For market’s that have fixed bounds (0 / NO and 100 / yes) this doesn’t make as much sense. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://timroughgarden.github.io/fob21/reports/ZLRL.pdf">Here</a> is good paper on impermanent loss in CFMM’s like Augur look like.</p><p>After the launch of <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://uniswap.org/whitepaper-v3.pdf">Uniswap V3</a> and the introduction of concentrated liquidity prediction market teams (along with many other teams) began exploring what event trading would look like. This is detailed in the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.notion.so/f619ffcb5cd540888fc31d164446a952?pvs=21">Maniswap V3</a> design document where they explore binning Uniswap’s ticks to match discrete percentage increments.</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://manifold.markets">manifold.markets</a> recently put out a fantastic overview comparing <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.notion.so/34c0ec79f55c41a9be573c4c88dff13e?pvs=21">different liquidity solutions</a> in it they compare orderbook, CFMM, and concentrated liquidity approaches with and without fees.</p><p>With the success of various <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://adjacentresearch.substack.com/i/137101515/a-quick-aside-on-vamm-design">vAMM</a> based perpetual DEXs like <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://drift.trade">drift.trade</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://perp.com">perp.com</a>, and up and coming <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://overlay.market/#/">overlay.market</a> it feels like one might be able to launch a successful prediction market on the same model.</p><p>Something notable across all prediction markets is the lack of leverage available. If you want to make a $100 prediction on something 12mos in the future that $100 is locked up for 12mos. This is something <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.notion.so/4700ed623ec84f958fc6b781c2a65501?pvs=21">interestingly noted</a> in <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.compound.vc/">compound.vc</a>’s thesis development sheet. The ability to have leverage in prediction markets (like most other markets’s) would lead to better capital efficiency for the end user and likely more longer term bets.</p><blockquote><p>Yet another FTX aside, in September 2023 Bitmex <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://blog.bitmex.com/prediction-markets/">launched prediction markets</a> for recovery rate of FTX funds, SBF’s sentencing, and approval of the BTC ETF.</p></blockquote><h1 id="h-comparison-to-sports-betting" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Comparison to Sports Betting</h1><p>Sports betting has been popular for a long time (<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://theconversation.com/40-years-of-legal-sports-betting-in-australia-points-to-risks-for-us-gamblers-and-tips-for-regulators-194993">especially in Australia</a> about <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.asgam.com/index.php/2023/08/02/wagering-wars/">$34b wagered annually</a>) but with recent regulation shifts in the US betting is on pace to hit over <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://frontofficesports.com/u-s-sports-betting-on-pace-to-hit-100b-in-wagers/">$100b in wagers</a>. It is a extremely large market.</p><p>The interesting thing with sports betting versus say a political prediction market like <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.betfair.com/">betfair.com</a> is that sports betting markets have a <em>House</em>. This is the casino, book, or company that runs the sports betting market.</p><p>The house includes what a *<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.forbes.com/betting/guide/vig/">Vig* or <em>House Edge</em></a> to every line that they set. This is so they can turn a slight profit no matter the outcome of the bet.</p><blockquote><p>Example: Odds are 50:50 for a match so the American Odds should be +100 / -100. With the traditional vig you can expect to see these odds for a 50:50 match to be +110 / -110. That way books can guarantee a profit either way.</p></blockquote><h2 id="h-market" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Market</h2><p>This is a weird difference from traditional markets in which there are (2) participants makers and takers where market makers fight to earn the spread between bids and asks and thus provide a tighter spread making the market more efficient.</p><p>In sports betting the House sets the spread statically and usually at 10% (!!).</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.novig.us">Novig</a> recently announced their <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.novig.us/articles/announcing-our-seed-round">seed round</a> to make sports betting markets function more similarly to traditional markets (only in Colorado for now). Rather having static house vig baked into the odds, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.novig.us">Novig</a> allows for any market participant to make or take orders on the exchange. The idea is that traditional market makers (Jane Street, Citadel, etc.) eventually will step in and make sports markets.</p><p>How odds are displayed between sports betting and prediction markets is also interesting. Sports betting generally follows American (+120), decimal (2.2), fraction (6/5) or implied (45.45%) odds. Anecdotally American odds seem to be the most popular among retail (especially as odds are now discussed by sports announcers and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.notion.so/Ramblings-on-Event-Markets-2e6ec476b29f4afba8889ad883e8b309?pvs=21">plastered over ESPN</a>). Prediction markets on the other hand default to quoting in implied odds. Perhaps prediction markets could benefit from showing all (4) types of odds.</p><h2 id="h-regulation" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Regulation</h2><p>Another stark difference between prediction markets and sports betting is regulation. Sports betting is highly regulated state to state (full list of SEC rules <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.sec.gov/Archives/edgar/data/858339/000119312512115625/d268435dex993.htm">here</a>, my favorite excerpt here is that riverboat casinos are also subject to US Coast Guard regulations). Prediction markets on the other hand have had a much harder go. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://kalshi.com">Kalshi</a> is the only prediction market so far to get <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://kalshi.com/blog/article/kalshi-designation">CFTC approval</a> for a variety of their markets (and they had to <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.businesswire.com/news/home/20210217005285/en/Kalshi-Raises-30-Million-in-Series-A-Funding-Led-by-Sequoia">raise $30m</a> to do so).</p><p>Even <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://kalshi.com">Kalshi</a> is still in a regulatory battle, they are <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.reuters.com/world/us/predictions-market-kalshi-sues-cftc-blocking-election-contracts-2023-11-01/">suing the CFTC</a> for the blocking of various election markets. This is kinda crazy to me because look at this market for if the Boeing CEO is gone by the end of 2024 <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://kalshi-public-docs.s3.amazonaws.com/contract_terms/BOEINGCEOCHANGE.pdf">rules</a>. How does that get approved but election markets don’t.</p><p>It seems like traditional sports betting platforms might have a better go than prediction markets in actually launching prediction markets. Some stats sports books allow for political betting already.</p><p>See what Hanson had to say</p><blockquote><p>To get an Idea Futures market approved as a security in the US, you&apos;d need <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://www.clark.net/cftc/">CFTC</a> approval. But they require expensive review, require you to set up a physical pit for trading there, and are <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mason.gmu.edu/~rhanson/secreg.html">sure</a> that there is no point to markets where there is not substantial hedging demand. (Respected academics can sometimes get <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://www.biz.uiowa.edu/iem/faq.html#Legal">exceptions</a> though.)<br>- <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mason.gmu.edu/~rhanson/ideafutures.html">Robin Hanson</a></p></blockquote><h1 id="h-towards-a-event-exchanges" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Towards a Event Exchanges</h1><p>I believe that either (1) someone will create an all-in-one <em>event exchange</em> or (2) a sports betting company will purchase/launch a prediction market and we will have a complete, fully featured market to trade the outcome of any event (70% chance either happens by 2026).</p><p>Eventually I see event exchange’s markets referenced by the news in a way that benchmark prices are referenced from things like CME benchmarks (95% at least one major news outlet will regularly report sourcing a prediction market).</p><h1 id="h-resources" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Resources</h1><p>Many more resources can be found in the following repository <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/0xperp/awesome-prediction-markets">https://github.com/0xperp/awesome-prediction-markets</a>.</p>]]></content:encoded>
            <author>nate-3@newsletter.paragraph.com (Nate)</author>
        </item>
        <item>
            <title><![CDATA[Ramblings on Blockspace]]></title>
            <link>https://paragraph.com/@nate-3/ramblings-on-blockspace</link>
            <guid>6n3Let4h5HemYEIMMhqO</guid>
            <pubDate>Sun, 17 Sep 2023 14:00:33 GMT</pubDate>
            <description><![CDATA[Below is an overview of the creation, usage, value, and trading of the new digital commodity: blockspaceEverything written in the post is outlined in the following repository github.com/0xperp/awesome-blockspaceThe ability to transact, store data and perform compute on a blockchain is what comprises blockspace. Intuitively the transactions that are included in a block are the blockspace.Increasingly in various articles, posts, and podcasts blockspace is referred to as the “best product to be ...]]></description>
            <content:encoded><![CDATA[<p>Below is an overview of the creation, usage, value, and trading of the new digital commodity: <em>blockspace</em></p><blockquote><p>Everything written in the post is outlined in the following repository <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/0xperp/awesome-blockspace">github.com/0xperp/awesome-blockspace</a></p></blockquote><p>The ability to transact, store data and perform compute on a blockchain is what comprises blockspace. Intuitively the transactions that are included in a block are the blockspace.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/1e5a9b00195417602caf0b8c4ad523c2a95d4458fce8f2f32b61b5db90a907a2.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Increasingly in various <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://thegeneralist.substack.com/p/blockspace-an-introduction-with-chris">articles</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://gateway.pinata.cloud/ipfs/QmWoKtHLQdRxLekVjoei9Lf4ez2vyKxoz1U7KExTX6bZtX">posts</a>, and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://a16zcrypto.com/posts/article/blockspace-explained/">podcasts</a> blockspace is referred to as the “best product to be selling” or the “most important commodity” to be selling in the 2020s. Understanding what blockspace is, how it is created and valued can be quite confusing and is constantly evolving.</p><p>All blockspace is not created equal and actually varies quite a bit. Blockspace is a class of commodities that can be easily graded on common characteristics like security, flexibility, and decentralization. This piece will detail each characteristic and provide some examples then explore the market participants for one of the most valuable digital commodities that exists.</p><p>First a quick aside on consensus mechanisms that secure blockspace</p><blockquote><p><strong>Proof of work (PoW) requires miners to solve complex mathematical problems in order to validate transactions and create new blocks. The first miner to solve the problem is then rewarded with newly minted tokens. The process of solving these problems requires a large amount of computational power, making it difficult for any one miner to control more than 50% of the network&apos;s computing power. If a miner were to control more than 50%, they would be able to launch a 51% attack. In a 51% attack, the miner with the majority computing power can manipulate transactions and even reverse them, potentially allowing them to double spend coins. Today almost all of PoW production occurs through a mining pool.</strong></p><p><strong>Proof of stake (PoS) is a newer consensus mechanism that requires users, known as validators, to put up a certain amount of cryptocurrency as collateral in order to validate transactions and create new blocks. Validators are chosen based on the amount of tokens they have staked, and are incentivized to act in the best interest of the network.</strong></p></blockquote><h2 id="h-qualities" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Qualities</strong></h2><p>Blockspace can be built and produced in many different ways along with being consumed for a multitude of different purposes. Every blockspace market has varying levels of security, decentralization, and guarantees along with different choices in the size, amount, and how the blockspace is verified. When deciding to be participant in the blockspace economy there are a few different qualities that you might want to evaluate.</p><h4 id="h-security" class="text-xl font-header !mt-6 !mb-3 first:!mt-0 first:!mb-0"><strong>Security</strong></h4><p>Perhaps the most important quality is the security of the blockchain. How hard and how many resources are needed to attack the chain. Commonly this is known as a &quot;51% attack&quot; but there are other types of consensus mechanisms that only require 33% of producers to agree.</p><p>A common metric for measuring a blockchain&apos;s security is by looking at the &quot;cost to attack&quot;. In order to control 51% of the network how much does it cost to rent and/or purchase the hashpower/stakeweight. You can find (extremely) rough estimates on sites like <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.crypto51.app/">crypto51</a>.</p><p>Full blown take over of a blockchain is quite rare and has only happened a few times one being the Justin Sun’s <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.publish0x.com/bitguy/steemit-and-justin-sun-detailed-timeline-full-story-xnlxedg">takeover of the steem blockchain</a>. Often I think about why blockchains such as Dash, BitcoinSV, or even more well known blockchains like Zcash have not seen more regular full takeovers yet, but if they have such poor security its not hard to reason that their other qualities are just as or even worse.</p><p>A far more common attack is a simple reorg of a blockchain. This is seen quite often in blockchains like Polygon which reorgs <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://polygonscan.com/blocks_forked">quite often</a>. It is important to note that re-orgs on Polygon aren’t always malicious given Polygon’s probabilistic consensus however a reorg can also be an attack in which block producers reorganize transactions from prior blocks for their benefit.</p><p>To better understand the problems with reorganization consider the following example of a small business bidding on advertising space on a billboard on a popular highway. The business owner finishes a bidding war with their competitor paying 20% more than they initially wanted. Happy with the billboard they send their designs to the billboard company. A few weeks later the small business owner takes a drive to the highway to see his advertisement only to find that their competitor is on the billboard. This is similar to what happens in a reorg, transactions that you previously paid for are “rolled back” and re organized.</p><p>Security is likely the most important characteristic for a consumer of blockspace, they want to ensure transactions that they pay for are secure and relatively immutable. This directly impacts the value of the blockspace, the producer’s willingness to spend resources to produce the blockspace, and eventually the traders appetite to trade it.</p><h4 id="h-decentralization" class="text-xl font-header !mt-6 !mb-3 first:!mt-0 first:!mb-0"><strong>Decentralization</strong></h4><p>A close runner-up to the security of the blockchain is the decentralization of it. Decentralization has a few equally as important parts</p><ul><li><p>Nakamoto Coefficient</p></li><li><p>Distinct Operators</p></li><li><p>Geographic Distribution</p></li><li><p>Client Diversity</p></li><li><p>Unique Hardware</p></li></ul><blockquote><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/theSamPadilla/blockchain-infra-decentralization-metrics">github.com/theSamPadilla/blockchain-infra-decentralization-metrics</a> is a really nice repository that classifies blockchain decentralization based on</p><ul><li><p>Stake distribution across infrastructure providers.</p></li><li><p>Stake distribution across geographies.</p></li><li><p>Validator distribution across infrastructure providers.</p></li><li><p>Validator distribution across geographies.</p></li></ul></blockquote><p>The Nakamoto Coefficient is by far the most common metric for measuring a blockchains decentralization. It is a very simple formula # of validators or % of hashrate needed for attack and is helpful in understanding the number of validators that would have to collude together to successfully slow down or block any respective blockchain from functioning properly.</p><p>Equally as important as the number of actors is the number of <em>distinct</em> actors that are needed for collusion. For example Coinbase operates about 7% of validators on Ethereum. Lido, a liquid staking provider, currently makes up ~33% of the validators on the Ethereum Network. Lido does not run validators themselves, instead they work with trusted operators in the space like Coinbase. When counting their base share plus the number of validators that they operate on behalf of Lido, Coinbase actually makes up ~12% of the entire network.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/0b4779bb5cace8e575e168bbefc38a9ae8d8619145b4986fc80e896ec450cb49.png" alt="https://dune.com/queries/2394100/3928083" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">https://dune.com/queries/2394100/3928083</figcaption></figure><p>Bitcoin is generally regarded as a leader in decentralization although only has a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://arxiv.org/pdf/2101.10699.pdf">nakamoto coefficient of around 5</a>. While it is true that there are many unique and district mining operations Bitcoin mining pools have full and complete control over the ordering of transactions in a block (until <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://braiins.com/stratum-v2">Stratrum V2</a> is fully implemented and used).</p><p>For the majority of Bitcoin&apos;s lifetime 1 or 2 pools control over 33% of all the hashrate and thus the ordering of the transactions in a given block.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/8db1915d8ccd7c5af2e290dc5e8fb202d1437be8359674d8de04811df9288685.png" alt="https://mempool.space/graphs/mining/pools" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">https://mempool.space/graphs/mining/pools</figcaption></figure><p>Some market participants care greatly about how their transactions are ordered in a particular block and having the transactions entirely ordered by a single party greatly degrades the quality of the blockspace for them. Note that this is the same for rollups that have a single sequencer.</p><p>Having a single party order/build the majority of the blockspace intuitively is a poor for decentralization but also can have significant ramifications with regards to producers extracting additional value for themselves. Commonly known as maximum extractable value (MEV), producers can extract large amount of value. It is also important to note that MEV is helpful for certain applications to function well liquidations (remember “black thursday” when liquidators failed to <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/@whiterabbit_hq/black-thursday-for-makerdao-8-32-million-was-liquidated-for-0-dai-36b83cac56b6">show up</a>?) , arbitraging to keep markets competitive, and even <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://x.com/0xcacti/status/1548470756987678726?s=20">searchers being needed for squeeth rebalances</a> are all good examples.</p><p>MEV is a very large and important concept (the MEV supply chain is now it’s own <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://explore.flashbots.net/">multi-billion dollar industry</a>) to understand when discussing blockspace it likely warrants it’s own piece. Instead here are a few points to know</p><p>It is important to build a separate MEV supply chain as to not harm blockspace consumers. There are many protocols working on solving this</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://writings.flashbots.net/mevm-suave-centauri-and-beyond">Suave</a> from Flashbots</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.jito.network/docs/introduction-to-jito/">Jito</a> for Solana</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.skip.money/">Skip</a> for Comsos</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://braiins.com/stratum-v2">Stratum V2</a> for Bitcoin</p></li><li><p>(still waiting on Polkadot and Near based MEV solutions)</p></li></ul><p>MEV exists in Bitcoin to and large mining pools have <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://x.com/blockworksres/status/1659228801384194049?s=20">started to extract it</a></p><p>The amount of MEV that can be extracted is a direct correlation with how valuable the given blockspace is</p><h4 id="h-size-amount-validation" class="text-xl font-header !mt-6 !mb-3 first:!mt-0 first:!mb-0"><strong>Size, Amount, Validation</strong></h4><p>The actual specifications of the blockspace are also import factors to consider when judging the quality. These are very simple and well defined</p><ul><li><p>How large are the blocks? How many transactions can fit in a single block? How much data can you fit in a block?</p></li><li><p>How often are blocks produced? How many blocks are produced in a day?</p></li><li><p>How does the network come to consensus on the blocks?</p></li></ul><p>Questions around the size and the amount of blockspace are generally qualities that consumers or traders need to consider. If a consumer is looking to complete a transaction in an hour how many total blocks are there to bid for a transactions space on and as a trader how scarce is the blockspace.</p><p>Evaluating how the network comes to consensus on a block is likely a quality that an institutional consumer would care about. This could be a fund or trading firm, but more likely an application built on top of the given blockspace like an exchange, custodian, or L2. An exchange would likely assess how a network forms its consensus because it can impact the execution for their users. Some examples of how various network actors form consensus</p><ul><li><p>Round Robin / Leader Election</p><ul><li><p>In a round robin validators are periodically selected to build, propose, and include the entire block themselves.</p></li><li><p>Examples of this include Solana, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://v1.cosmos.network/resources/whitepaper">Cosmos</a>, and Polygon</p></li></ul></li><li><p>General Consensus</p><ul><li><p>In a general consensus network a producers broadcasts their block to the rest of the network and <em>if</em> agreed on the block is included.</p></li><li><p>Examples of this include Bitcoin</p></li></ul></li><li><p>Single Sequencer</p><ul><li><p>A majority of layer 2 networks implement a single sequencer who orders all transactions, forms them into blocks, and publishes them to the layer 1 or data availability layer</p></li><li><p>Examples of this include Arbitrum and Optimism</p></li></ul></li></ul><blockquote><p>Note: that the building of the blocks is often abstracted into its own auction like mechanism or even eventually abstracted to its own chain like SAUVE. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://joncharbonneau.substack.com/p/decentralizing-the-builder-role">Read here</a> for a really good look at block production</p></blockquote><p>How consensus is come to effects the execution of the exchange in question a little differently.</p><p>The round robin leader election is often very fast but for networks that have not abstracted the block building layer, exchange participants that are also validators have the upper hand. For a more detailed example see the DyDx example in this <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://adjacentresearch.substack.com/p/ramblings-on-amms-and-orderbooks">AMMs and Orderbooks</a> piece.</p><p>The general consensus is the most fair for the execution the exchanges user&apos;s but currently struggles with handling high throughput. As of 2023 a well functioning and fast orderbook has yet to really be seen on a blockchain that uses a general consensus. In fact DyDx highlighted this in their blog post when they moved from Ethereum mainnet to Starkware.</p><p>A single sequencer is very fast but also very centralized and an exchange building on a network that currently uses a centralized sequencer needs to be okay with the possibility that the sequencer operator is frontrunning or extracting some type of value from their user&apos;s orders.</p><p>A fourth option for the exchange would be to operate some parts of their infrastructure offchain, like their orderbook. This is again highlighted in <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://adjacentresearch.substack.com/p/ramblings-on-amms-and-orderbooks">AMMs and Orderbooks</a> under the hybrid section.</p><blockquote><p>Note: many protocol teams are now also exploring operating their own appchain, this has the benefits of speed, scalability, and the centralized sequencer being operated by the protocol team although suffers from the need of bootstrapping your own validator set and likely having far less security. More on this in the flexibility quality.</p></blockquote><h4 id="h-availability" class="text-xl font-header !mt-6 !mb-3 first:!mt-0 first:!mb-0"><strong>Availability</strong></h4><p>Ensuring that access to consuming, accessing, and producing blockspace is widely available and can always be consumed can be an extremely important quality.</p><p>Are you able to easily access the blockspace? Is it always available or are their chain halts or downtime? How easy is it to run your own RPC node or access publicly available ones? Are RPCs generally overloaded, do they have consistent uptime?</p><h4 id="h-uptime" class="text-xl font-header !mt-6 !mb-3 first:!mt-0 first:!mb-0"><strong>Uptime</strong></h4><p>As a consumer it is very important that you can you access blockspace market at any time. If a blockchain has frequent halts or outages you can not reliably use the blockchain.</p><p>Take the example that you are a new liquidity provider who want to provide liquidity to a concentrated liquidity AMM and you are choosing between the Solana and Ethereum blockchain. Solely evaluating the characteristic of uptime the choice is easy, Solana and seemingly every L2 has seen several day long outages in the past year in which the entire chain is unusable.</p><h4 id="h-chain-state-and-storage" class="text-xl font-header !mt-6 !mb-3 first:!mt-0 first:!mb-0"><strong>Chain State and Storage</strong></h4><p>As a producer (and maybe as a consumer) considering how accessible it is to download, verify, and store the full chain state can be an important consideration.</p><p>As a blockspace producer you want to ensure that you have extremely high uptime and little dependence on others in case they have an outage. Some blockchains like Solana or Near effectively require you to download chaindata snapshots from AWS S3, Google BigTable, or other validators with often little to no way to sync and store the chain data entirely yourself.</p><p>Chain state and storage is also an upmost consideration for applications or protocols that require historical data. On Bitcoin or Ethereum it is possible to fully sync a node in a few days and have a full set of historical data. On the other hand Solana&apos;s full chain state is primarily stored in a Google BigTable database and takes up <em>petabytes</em> of data, rendering it next to impossible for any average consumer to sync and store.</p><blockquote><p>Note: there are some significant engineering challenges in storing historical solana data but plenty of great teams working on it. One such example is the Triton One team building <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://old-faithful.net/">Old Faithful</a></p></blockquote><h4 id="h-costs-and-fees" class="text-xl font-header !mt-6 !mb-3 first:!mt-0 first:!mb-0"><strong>Costs and Fees</strong></h4><p>Blockspace is valuable and has various costs and fees associated with producing and consuming it.</p><p>As a producer there are more traditional costs such as the upfront purchase and/or ongoing costs of various hardware and software that allows you to operate on the network. More often than not there is also the initial capital outlay for tokens that need to be posted as collateral to validate (as is the case in Proof of Stake networks). In turn you generally receive block rewards from the network which could also include fees generated from consumers of the blockspace you produced.</p><p>As a consumer in order to utilize blockspace on a given network you need to pay a fee for it to the block producers (this does not count additional fees you might need to pay a protocol for your interaction).</p><p>Costs and fees vary depending on the blockchain&apos;s implementation and also how the fee market is designed. Generally a chain implements one of the following designs</p><ul><li><p>Priority Gas Auctions (PGA)</p><ul><li><p>Consumers who what to utilize blockspace will submit their transaction with a given fee, the transaction sits in the mempool. Since the producer accrues the fees in the block they (generally) order the transactions in by highest fee.</p></li><li><p>This is a very simple fee market design and is the most common.</p></li></ul></li><li><p>EIP 1559</p><ul><li><p>Consumers who want to utilize blockspace will pay a base fee (which is burned) and a priority fee (or tip) which the block producers. Introduced for better consistency in estimated fees needed to be paid by a consumer.</p></li><li><p>This has primarily been implemented on Ethereum but prior was <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://filecoin.io/blog/posts/eip-1559-in-filecoin/">implemented on Filecoin</a></p></li></ul></li></ul><p>The design of the fee market heavily influences the amount and potential willingness of a consumer to pay and how much the producer is expected to receive for their block production.</p><blockquote><p>The research space for fee market design is quite interesting and extensive and I have complied an awesome list at <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/0xperp/awesome-fee-markets">github.com/0xperp/awesome-fee-markets</a>.</p></blockquote><h4 id="h-flexibility" class="text-xl font-header !mt-6 !mb-3 first:!mt-0 first:!mb-0"><strong>Flexibility</strong></h4><p>Blockspace can be highly adaptable or very static. The majority of the time consumers likely prefer the space that they are consuming to be very predictable and static, but there are certain use cases in which a consumer (often a protocol) might want their space to be highly adaptable and flexible.</p><p>Flexible blockspace is the idea that blocks can be built differently according to various use cases. Maybe this is adding pre and post instructions at the validator level, allowing blocksize to fluctuate or being able to abstract block building.</p><p>Take the example that you are a lending and borrowing protocol that has started exploring launching their own blockchain. They have a few options to consider launching</p><ul><li><p>Cosmos based Appchain</p></li><li><p>Rollup based on the Optimism or Arbitrum stack</p></li><li><p>Parachain on Polkadot</p></li></ul><p>Each one of these has different considerations in security, decentralization, and usage.</p><ul><li><p>A Cosmos Appchain requires you to bootstrap your own security by incentivizing a validator set but allows you to have extreme flexibility in your consensus, block building and execution of transactions (especially by adding custom logic using functions like BeginBlock or EndBlock as referenced <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/tendermint/tendermint/blob/v0.34.x/spec/abci/abci.md">here</a>)</p></li><li><p>Building a rollup with the Optimism stack (currently) limits you to being centralized being able to only operate a single sequencer, but allows you to have create extremely fast, EVM compatible blockspace</p></li><li><p>A Polkadot parachain allows for you to use the Polkadot shared security model but requires you to bid quite a lot of DOT in the auction in order to be included.</p></li></ul><p>In brief</p><ul><li><p>A Cosmos Appchain has the ultimate flexibility in blockspace creation, control, and security</p></li><li><p>A Rollup provides flexible blockspace creation, but control and security is limited to a single and centralized sequencer currently</p></li><li><p>A Parachain bootstraps security from the Polkadot mainchain… except you have to bid for it</p></li></ul><blockquote><p>Note: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://joncharbonneau.substack.com/p/rollups-arent-real">joncharbonneau.substack.com/p/rollups-arent-real</a> is a really good read dissecting the current state of rollups</p></blockquote><p>Bitcoin, Ethereum, Polkadot, etc. all produce generalized blockspace. Osmosis, Aevo, Lyra, Sentential are use customized and specific blockspace to improve their products.</p><p>In the recent months it has become even easier to launch a OpStack, Arbitrum, or other rollup / appchain with products like <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://caldera.xyz/">Caldera</a> and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://conduit.xyz/">Conduit</a>.</p><h2 id="h-market-participants" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Market Participants</strong></h2><p>The blockspace market is extremely complex but can be broadly broken into producers and consumers.</p><h4 id="h-producers" class="text-xl font-header !mt-6 !mb-3 first:!mt-0 first:!mb-0"><strong>Producers</strong></h4><p>A Blockspace producer is a network participant that takes a set of transactions waiting to be be included and actually builds them into a block by ordering them. Often this is one of the roles of a validator, miner, or mining pool on a given chain. With the rise of MEV protocols this block building has largely been outsourced to separate actors known as builders. The “MEV supply chain” is now quite complex and involves many distinct actors as illustrated below</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/a67be22593fdc40ffcaf839e3d3ae1bd458ef27b65bc8bfcaa519d2fc926c4fc.png" alt="https://writings.flashbots.net/mev-supply-chain/" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">https://writings.flashbots.net/mev-supply-chain/</figcaption></figure><p>On the proof of work side mining pools have full autonomy over the ordering of transactions in blocks that are mined by miners in their pool. With the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://braiins.com/stratum-v2">release and adoption of stratum v2</a> this will change and allow individual miners to express transaction ordering preferences to mining pools.</p><p>Producers want to produce blockspace that is highly valuable or has some expectation to be in the future. Below is a list of some companies that are large producers across a variety of blockchains</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.coinbase.com/cloud">Coinbase Cloud</a> (via Bison Trails <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.coinbase.com/blog/coinbase-to-acquire-leading-blockchain-infrastructure-platform-bison-trails">acquisition</a>)</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://chorus.one/">Chorus One</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://jumpcrypto.com/">Jump Crypto</a> (via Certus One <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.coindesk.com/markets/2021/08/03/berlin-based-staking-startup-certus-one-acquired-by-jump-trading/">acquisition</a>)</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://figment.io/">Figment</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://ir.mara.com/">Marathon</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.galaxy.com/">Galaxy Digital</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.riotplatforms.com/">Riot</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://foundrydigital.com">Foundry</a></p></li></ul><h4 id="h-consumers" class="text-xl font-header !mt-6 !mb-3 first:!mt-0 first:!mb-0"><strong>Consumers</strong></h4><p>A consumer is any entity that uses blockspace that is being produced. The actual usage can be for a large variety of things like transfers, swaps/trades, other financial transactions, etc.</p><p>However the largest consumers can <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://dune.com/bitgetresearch/gas-overview">often be overlooked</a>. Often asset issuers, exchanges, and protocols built on top of the blockchain are some of the largest consumers. Below is a list of some protocols / companies that are large consumers</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.circle.com/en/">Circle</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://tether.to/en/">Tether</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://paxos.com/">Paxos</a> other asset issuers</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://coinbase.com/">Coinbase</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.binance.com/en">Binance</a>, other centralized exchanges</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://arbitrum.io/">Arbitrum</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.optimism.io/">Optimism</a>, other L2s (increasingly in a environment in which many app teams are deploying their own rollup)</p></li><li><p>and of course power users / traders</p></li></ul><h2 id="h-valuing" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Valuing</strong></h2><p>Blockspace can vary extremely in terms of its demand. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://dataalways.substack.com/">Data Always</a> had a really good overview of <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://dataalways.substack.com/p/the-year-in-blockspace-demand">2022 in blockspace demand</a>. Below is a chart of blockspace fees across leading protocols</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/909d6e373dd3a7e64a4c171bfbb62d3a0c19f3a6d4f390bce36c051633a71adb.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>It is worth noting that a large percentage of the fees paid at native protocol block subsidies. Something valuable to watch in terms of real demand and growth is the percentage that user transactions fees make of the total block reward. For example on Bitcoin this averages around <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://insights.braiins.com/en">2-4%</a> but over on Ethereum it is <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://bitinfocharts.com/comparison/ethereum-fee_to_reward.html#3y">similar in times</a> of low activity but can spike to 60%+. When tracking a protocol with a developed MEV supply chain, tips should also be included.</p><p>A few chains have spent time developing unique fee markets one being Ethereum with <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://eips.ethereum.org/EIPS/eip-1559">EIP1559</a>. This upgrade had a few goals such as lower fee volatility but also had an important long term goal of preventing instability of a blockchain in a world were there is no continued native issuance. 1559 lead to base fee burning and priority fees going to validators working towards placing less emphasis/importance on the role of the block subsidy in the overall block reward.</p><p>In order to keep up with its promise of cheap fees Solana created <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://fraxcesco.substack.com/p/in-depth-on-the-tech-solanas-local">localized fee markets</a> in which the transaction fee is localized to each distinct contract interaction. If there is a high demand NFT mint on Magic Eden transaction fees will not increase on Jupiter. This change is very consumer focused as it actually reduces the fees that a validator could expect to earn. However given Solana has a built out MEV supply chain, localized fees might bring in more users and thus more fees via MEV tips.</p><p>Valuing blockspace is still in it’s extremely early stages and with a majority of a block reward on a given chain is via the predictable block subsidy there is not much variability in the rewards and corresponding valuation. However as transaction fees/tips become a increasingly larger percentage of the overall block reward via halvings, increased demand, creation of MEV supply chains, etc. valuations become more unpredictable and introduce unique trading opportunities.</p><h2 id="h-trading" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Trading</strong></h2><p>Blockspace is notoriously mispriced. In many cases the blockchain misprices how it pays its producers, as they continue to print more inflation for terrible quality blockspace. A majority of blockspace is cheap and abundant with very few being valuable.</p><blockquote><p>This is were I look forward to newer implementations of block rewards and fee markets. Currently most blockchains put out a whitepaper with static block subsidies that are maybe on some disinflationary schedule. How can they be sure they are pricing their blockspace accurately before their blockchain is even live? I am looking forward to new implementations in determining block subsidies.</p></blockquote><p>Given how new these markets are you likely have only ever been a producer or consumer and have not even considered that you could trade blockspace. Right now these trades are usually expressed through swap, forwards, and futures but there have also been more unique instruments like <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.block.green/">royalties</a>, block inclusion reservation, and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://blog.1inch.io/everything-you-wanted-to-know-about-chi-gastoken/">gas tokens</a>.</p><p>Some of the primary places to trade blockspace currently are</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://luxor.tech/derivatives">Luxor</a> where you can trade non-deliverable forwards on Bitcoin “Hashprice”</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://alkimiya.io/">Alkimiya</a> a much more flexible swap marketplace where you are able to trade swaps on Bitcoin and Ethereum blockspace along with potentially gas swaps</p></li></ul><p>A few projects with a lot of potential</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.overlay.market/">Overlay</a> a perpetual future platform that allows you to trade native data feeds and specifically mentions various blockspace components in their documentation</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.oiler.network/">Oiler</a> which has a variety of products but one being <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://pitchlake.vercel.app/">Pitchlake</a> in which you can trade base fees on Ethereum</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://volmex.finance/">Volmex</a> a volatility trading platform that I could see eventually launching something like fee or validator reward volatility indexes</p></li></ul><blockquote><p>A product that is interesting to reason about is forming an index on blockspace quality based on the characteristics above and forming a blockspace swap market across blockchains something like a swap between Bitcoin and Ethereum’s blockspace demand</p></blockquote><p>Outside of speculation markets that <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://luxor.tech/derivatives">Luxor</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://alkimiya.io/">Alkimiya</a>, and others are building are extremely important in creating markets for risk transfer between blockspace producers and those that are willing to take on the exposure. As public companies and energy companies enter the Bitcoin production space they will want to decrease volatility in their cashflow. As L2s become more sophisticated they will want to hedge their transaction expense on L1s. As exchanges and asset issuers look to operate more efficiently hedging their variable transaction cost becomes important.</p><p>Overall the introduction of more robust capital markets around blockspace consumption and production is something I am extremely excited for and interested to see how it develops.</p>]]></content:encoded>
            <author>nate-3@newsletter.paragraph.com (Nate)</author>
        </item>
        <item>
            <title><![CDATA[Ramblings on AMMs and Orderbooks]]></title>
            <link>https://paragraph.com/@nate-3/ramblings-on-amms-and-orderbooks</link>
            <guid>58enPB6FioNnrz6F5t8Z</guid>
            <pubDate>Wed, 28 Dec 2022 16:18:02 GMT</pubDate>
            <description><![CDATA[Brief History of Automated Market MakersThis post is meant to provide an overview of the Automated Market Maker (AMM) space. First by reviewing some of the history and various designs. Following will be a walkthrough of using AMM pricing functions for other applications than spot trading leading to interesting dynamics and the evolving relationship between onchain orderbooks and AMMs.Everything written in the post is outlined in the following repository https://github.com/0xperp/awesome-ammA ...]]></description>
            <content:encoded><![CDATA[<h2 id="h-brief-history-of-automated-market-makers" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Brief History of Automated Market Makers</h2><p>This post is meant to provide an overview of the Automated Market Maker (AMM) space. First by reviewing some of the history and various designs. Following will be a walkthrough of using AMM pricing functions for other applications than spot trading leading to interesting dynamics and the evolving relationship between onchain orderbooks and AMMs.</p><blockquote><p>Everything written in the post is outlined in the following repository <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/0xperp/awesome-amm">https://github.com/0xperp/awesome-amm</a></p></blockquote><h3 id="h-a-little-history" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">A Little History</h3><p>While the existence of AMMs truly took off with <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://uniswap.org">Uniswap</a> there is quite a history to it.</p><p><strong>Sep 2, 2015:</strong> <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://forum.gnosis.io/t/market-maker-order-book/19">Martin Köppelmann: Gnosis Market Maker Orderbook</a></p><ul><li><p>Describes the idea of including a market maker into an orderbook</p></li></ul><p><strong>Sep 26, 2016:</strong> <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.reddit.com/r/ethereum/comments/54l32y/euler_the_simplest_exchange_and_currency/">Nick Johnson: Euler</a></p><ul><li><p>Using a single token Euler as a pair for all other tokens to always trade against</p></li></ul><p><strong>Oct 3, 2016:</strong> <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.reddit.com/r/ethereum/comments/55m04x/lets_run_onchain_decentralized_exchanges_the_way/">Vitalik: Let&apos;s run on-chain decentralized exchanges the way we run prediction markets</a></p><ul><li><p>Summarizing the posts above from Martin and Nick, Vitalik mentions that AMMs should function like existing on-chain prediction markets (such as <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://augur.net">Augur</a>)</p></li></ul><p><strong>Mar 6, 2017: </strong><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.notion.so/Ramblings-on-AMMs-and-Orderbooks-712270b0d9b04f9294154662714f6bec"><strong>Alan Lu: Building a Decentralized Exchange in Ethereum</strong></a></p><ul><li><p>Describes various potential invariants for an AMM</p></li></ul><p><strong>Mar 2, 2018: </strong><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://ethresear.ch/t/improving-front-running-resistance-of-x-y-k-market-makers/1281"><strong>Vitalik: x*y=k market makers</strong></a></p><ul><li><p>Vitalik recaps his post from two years prior and mentions Martin Köppelmann’s suggestion of the <code>x*y=k</code> automated market maker with further simulations and functions</p></li></ul><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/ed3c8a9a335f9d70eb8dcc298a37319a7a015e963adf1da5cbc92f022a53ce11.png" alt="Hayden Post" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Hayden Post</figcaption></figure><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.notion.so/Ramblings-on-AMMs-and-Orderbooks-712270b0d9b04f9294154662714f6bec">Uniswap V1 Contract</a></p></li><li><p>Uniswap received a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.notion.so/Ramblings-on-AMMs-and-Orderbooks-712270b0d9b04f9294154662714f6bec">grant from the Ethereum Foundation in August</a></p></li></ul><h3 id="h-various-amm-launches" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Various AMM Launches</h3><p>Interestingly on the same day that Hayden posted his comment on the Uniswap V1 implementation, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://bancor.network">Bancor</a> released their initial <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://storage.googleapis.com/website-bancor/2018/04/01ba8253-bancor_protocol_whitepaper_en.pdf">whitepaper</a>. Bancor’s primary innovation was their <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://blog.bancor.network/smart-tokens-101-63edc2cc5a89"><em>Smart Tokens</em></a> (can be thought of as a very early router).</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://kyber.network">Kyber</a> released their <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.notion.so/Ramblings-on-AMMs-and-Orderbooks-712270b0d9b04f9294154662714f6bec">whitepaper</a> about a year later in 2019 with aggregated liquidity pools and an institutional focus.</p></li><li><p>September 2019 <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://balancer.fi/whitepaper.pdf">Balancer</a></p></li><li><p>November 2019 <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://curve.fi">Curve</a> released the stable swap <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://curve.fi/files/stableswap-paper.pdf">whitepaper</a> meant for trading stablecoins and pegged assets</p></li><li><p>March 2020 <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://uniswap.org">Uniswap</a> released <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.notion.so/Ramblings-on-AMMs-and-Orderbooks-712270b0d9b04f9294154662714f6bec">Uniswap V2</a></p></li><li><p>August 2020 Mooniswap <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.notion.so/Ramblings-on-AMMs-and-Orderbooks-712270b0d9b04f9294154662714f6bec">Whitepaper</a>, Front Running Resistance</p></li><li><p>March 2021 <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://uniswap.org/whitepaper-v3.pdf">Uniswap V3</a>, Concentrated Liquidity</p></li></ul><blockquote><p>If there is a notable design not listed please comment or send a DM my way</p></blockquote><h2 id="h-common-designs" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Common Designs</h2><p>Below is a list of common AMM designs and their pros and cons</p><h3 id="h-constant-product" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Constant Product</h3><p>The constant product market maker is the most common AMM invariant that exists. It can be simply modeled as <code>x * y = k</code> . X and Y are the reserves for each asset, as assets are traded through this function X and Y increase or decrease in their reserves in a way that keeps a constant K (not counting fees charged).</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/09be2d6c1b76bf2d6d787d12eee8152225b6e0edbca50c938fd8980947ae1134.png" alt="Constant Product Market Maker" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Constant Product Market Maker</figcaption></figure><p>Constant Product Market Maker</p><p>The constant product formula has generally become the most forked AMM invariant, primarily due to its simplicity and ease of use from a liquidity provider&apos;s perspective.</p><h3 id="h-stableswap" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Stableswap</h3><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://curve.fi">Curve</a> launched an AMM with the stableswap invariant primarily to cater to stablecoins and pegged or like-priced assets.</p><p>The Curve team realized that like-priced tokens can trade on a constant sum, <code>x + y = C</code> for the majority of the time. However, when a pool <em>does</em> become imbalanced Curve adjusts to the constant product invariant making swaps more expensive and allowing arbitragers to bring the reserves of each asset back to equal</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/f0c17e39e4701cea27b30be469b0ba65627655a31fa095021ecf824d3a1231cb.png" alt="Stableswap" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Stableswap</figcaption></figure><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://miguelmota.com/blog/understanding-stableswap-curve/">Here</a> is a very good post on understanding the Stableswap invariant</p><h3 id="h-constant-mean" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Constant Mean</h3><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://balancer.fi">Balancer</a> proposed and launched a generalization of the constant product market maker, the constant mean invariant. This allowed more than two assets to be provided as liquidity and for weights outside of 50/50.</p><p>Given this <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://balancer.fi">Balancer</a> and other constant mean market makers can be used as a portfolio manager</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/afeafe00fbe14886fe5cfea12c123de3c9fa5e960ac311f729ceef56aa79b3c4.png" alt="Constant Mean Market Maker" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Constant Mean Market Maker</figcaption></figure><p>Constant Mean Market Maker</p><p>For a very good understanding of <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://balancer.fi">Balancer</a> refer <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://token-engineering-balancer.gitbook.io/balancer-simulations/understanding-balancer-amms/balancer-basics">here</a></p><h3 id="h-concentrated-liquidity" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Concentrated Liquidity</h3><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://uniswap.org">Uniswap V3</a> was launched as the first concentrated liquidity AMM. This allows for liquidity that is allocated within a custom price range. In earlier versions, liquidity was distributed uniformly along the price curve between 0 and infinity. Allowing custom liquidity distributions allows for much higher capital efficiency resulting in more flexibility for a liquidity provider regarding their exposure and payoff along with a deeper and tighter market for a trader.</p><p>Concentrated Liquidity relies on the concept of virtual liquidity which can be read and derived in their <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://uniswap.org/whitepaper-v3.pdf">whitepaper</a></p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/8cd5db7e3d2fa3fbf46c62cca0b86fece6fc77bf40e7ad2074be2013f4a135b3.png" alt="Various Liquidity Distributions" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Various Liquidity Distributions</figcaption></figure><h2 id="h-virtual-automated-market-makers" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Virtual Automated Market Makers</h2><p>A virtual automated market maker (vAMM) uses formulas, such as constant product, but <em>only</em> as a price discovery mechanism.</p><p>Generally, a vAMM product is designed with a &quot;clearing house&quot; or &quot;controller&quot; contract in which all of the collateral deposits are held.</p><p>vAMMs are primarily used for leverage on crypto perpetual futures contracts in which the collateral in the clearing house backs virtual assets that users can trade. However, they can be used to trade just about <em>any</em> price feed given sufficient liquidity and traders. For example <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://overlay.market/">overlay.market</a> allows you to trade various data streams or <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://nftperp.xyz/">nftperp.xyz</a> which allows a trader to long or short floors of various NFT projects.</p><p>Following the release of <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://perp.fi/">Perpetual Protocol&apos;s</a> first vAMM there have been many iterations since, particularly with the price discovery mechanism.</p><blockquote><p>Quick aside: Even though this was based on the lightning network and did not explicitly mention a virtual automated market maker it seems like the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://research.paradigm.xyz/RainbowNetwork.pdf">Rainbow Network</a> was one of the first written ideas of using collateral in one asset to trade virtual price feeds</p></blockquote><h3 id="h-vamms-and-their-pricing" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">vAMMs and their Pricing</h3><p>There have been many iterations of vAMMs trying multiple AMM invariants for their pricing to drive higher liquidity, more consistent funding rates, and trying to attract more traders.</p><p>A few notable examples are</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://perp.com">Perpetual V1</a> and their constant product vAMM based on Uniswap V2</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.notion.so/2f032b69347d4644b51639f326242710">Perpetual V2</a> and their concentrated liquidity pricing based on Uniswap V3</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://drift.trade">Drift V1</a> and their dynamic constant product vAMM</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://hubble.exchange">Hubble</a> and their CurveCrypto invariant</p></li></ul><p>To date a large majority of vAMMs are “player v. player” there has been some pretty good research from the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://rage.trade">rage.trade</a> team on this in <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/@ragetrade/the-perpetual-pvp-ponzi-beaff4a0c662">The Perpetual PvP Ponzi</a>. With advancements like using newer AMM invariants (eg. concentrated liquidity) or adding in various market layers (like Drift V2 and JIT), vAMMs have the potential to become a preferred market for trading any asset (or data feed!).</p><p>A vAMM simply uses traditional AMM formulas for its pricing which allows for an almost <em>infinite</em> number of assets and product types to trade along with a lot of flexibility and experimentation on the execution and order-flow layer.</p><h2 id="h-onchain-orderbooks" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Onchain Orderbooks</h2><p>High-performance chains like <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://solana.com">Solana</a> and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://near.org">Near</a> along with the upcoming variety of Diem forks (<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://aptoslabs.com">Aptos</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.notion.so/Ramblings-on-AMMs-and-Orderbooks-712270b0d9b04f9294154662714f6bec">Sui</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.notion.so/Ramblings-on-AMMs-and-Orderbooks-712270b0d9b04f9294154662714f6bec">OL</a>, etc.) have allowed for the creation of on-chain orderbooks. Some of them are listed below</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://dydx.exchange">dydx</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.projectserum.com">Serum</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://tonic.foundation">Tonic</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.notion.so/DeFi-Greeks-7fa5fcb1f92048dcbf3322777b483fad">Spin</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.notion.so/DeFi-Greeks-7fa5fcb1f92048dcbf3322777b483fad">Orderly</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.econialabs.com">Econia</a></p></li></ul><p>Orderbooks have the benefit over traditional AMMs as markets can be quoted very tight given traditional market makers will (generally) help to provide liquidity, trades can execute quickly, and this often leads to better pricing.</p><p>While orderbooks excel in providing optimal pricing and execution the catch is: There needs to be enough liquidity and active market makers constantly updating their quotes. This is especially important when you consider the pure number of assets traded onchain.</p><p>AMMs excel in this case as they support</p><ul><li><p>Permissionless asset listing and market creation</p></li><li><p>Passive liquidity (anyone can be a maker!)</p></li></ul><h1 id="h-order-matching-and-liquidity-provisioning" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Order Matching and Liquidity Provisioning</h1><p>When designing an orderbook or an AMM order flow and the provisioning of liquidity are very important. The flow of orders into the exchange along with how they are matched is important to ensure the best possible execution for a trader. Similarly, the provisioning of the liquidity to be used for matching orders is equally as important as it helps determine the best prices for traders.</p><p>Orderflow and matching are important to an exchange, particularly in assets that trade in large volumes, as poor execution can result in a bad experience for traders.</p><p>The provisioning of liquidity is important for longer tail assets as they are generally less liquid. This means that the liquidity that is provisioned needs to be provided in the most capital-efficient way possible to ensure the best execution for a trader.</p><p>Below are overviews of how various orderbooks and AMMs orders currently flow and match along with how liquidity is provisioned on them with a discussion on what various hybrid implementations look like.</p><h2 id="h-orderflow-and-matching" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Orderflow and Matching</h2><p>There are currently a few ways in which orders are matched and/or routed into a trading protocol. A centralized orderbook runs its own internal matching engine, a decentralized orderbook operates its matching via a network of validators and/or keepers and generally, AMMs are at the mercy of the block producers.</p><h3 id="h-amm-matching-and-flow" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">AMM Matching and Flow</h3><p>As mentioned above generally AMMs order flow and its matching are at the mercy of the block producers.</p><p>When a user initiates a swap on an AMM they submit their order which is propagated throughout the mempool waiting to be included in a block (executed). The rise of <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://fbifemboy.substack.com/p/the-future-of-maximal-extractable">searchers extracting value from the mempool</a> (MEV) leads to far different dynamics for AMMs flow and matching.</p><p>Operating as a block producer (or bribing one) grants priority access to flow, how it is ordered and matched.</p><p>Sometimes this results in better execution for traders such as in the case of <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/coinmonks/quantifyng-just-in-time-liquidity-in-uniswap-v3-23ac1db729c5">Just in Time Liquidity (JIT)</a>. This is when a searcher sees a order in the mempool and re-orders the transactions into:</p><ul><li><p>Searcher provides liquidity</p></li><li><p>Users trade</p></li><li><p>Searcher removes liquidity and collects fees</p></li></ul><p>This allows the searcher to only provide liquidity for a specific trade and collect a majority of fees for it, this results in better execution for the trader.</p><p>JIT is an anomaly, frontruns, backruns, and sandwiches all result in worse execution for the trader.</p><p>The struggle with a majority of AMMs is that all of their flow and matching can be directed and re-ordered by the block producers.</p><h3 id="h-orderbook-matching-and-flow" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Orderbook Matching and Flow</h3><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://projectserum.com">Serum</a> refers to the process of matching as <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.projectserum.com/serum-ecosystem/help#what-is-crank-turning">crank tuning</a>. Anyone is allowed to run a cranker and be <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.google.com/document/d/1isGJES4jzQutI0GtQGuqtrBUqeHxl_xJNXdtOv4SdII/edit#">rewarded</a> with a portion of transaction fees for it. This is an example of an <em>onchain orderbook</em>, all orders are posted on chain and crankers ensure that they are being matched and executed properly.</p><p>In <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://dydx.exchange/blog/dydx-chain">dydx V4</a> the d<em>ydx chain</em> will have an <em>offchain orderbook</em> in which validators will each host a copy of the orderbook and match accordingly as they are selected to propose a block.</p><blockquote><p>In dYdX V4, each validator will run an in-memory orderbook that is never committed to consensus (i.e., off-chain). Orders placed and cancellations will be propagated through the network similar to normal blockchain transactions, ensuring that orders placed and cancellations will always make their way through the network. The orderbook that each validator stores is eventually consistent with one another. On a real-time basis, orders will be matched together by the network. The resulting trades are then committed on-chain each block. - <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://dydx.exchange/blog/dydx-chain">dydx.exchange/blog/dydx-chain</a></p></blockquote><p>Creating an offchain orderbook in memory of the validators (or keepers) of your network can be extremely effective as it allows you to have a decentralized orderbook.</p><p>A primary difference between offchain and onchain orderbooks (dydx and serum) is how and where orders flow.</p><p>An onchain orderbook like <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://projectserum.com">Serum</a> <em>all</em> orders are posted and matched onchain meaning that all orders (filled or canceled) are visible to everyone onchain and <em>all</em> keepers (the matching engine) see and match the exact same orders.</p><p>An offchain orderbook like <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="http://dydx.exchange">dYdX v4</a> differs in its flow and (potentially matching). Orders are submitted to validators and thus need to be fully propagated in order for <em>all</em> validators to have the exact same set of orders (see <em>The orderbook that each validator stores is eventually consistent with one another</em> in the dydx chain excerpt above).</p><p>When orders are not fully posted on chain and are submitted to some type of validator or keeper network, the flow can be controlled, bribed, and prioritized directly at the protocol level.</p><p>With the rise of proprietary block building (<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://flashbots.net">Flashbots</a> on Ethereum, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://jito.wtf">Jito</a> on Solana, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://skip.money">Skip</a> on Cosmos) controlling, bribing, and prioritizing flow is also possible for onchain orderbooks but outsourced to external block builders.</p><p>A good example of how reflexive it can be for a protocol to be able to incentivize and direct flow could be seen in something like this. A large trader on dYdX is already incentivized to acquire $DYDX for fee discounts but is also incentivized to acquire $DYDX so that they can run a validator node. When a large trader operates their own validator they can control the local flow of orders. Meaning when they are a block proposer they could prioritize their own orders and trades allowing the trader to ensure the best execution possible.</p><h3 id="h-a-hybrid-approach" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">A Hybrid Approach</h3><p>In an onchain model generally orders flow directly onchain where they are matched and executed by an external keeper network. In an offchain model, orders flow directly into the validator or keeper network in which they are matched and executed.</p><p>A primary example using both on and off-chain matching and execution can be found in <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://cow.fi">CowSwap</a> which uses <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.cow.fi/overview/introduction">batch auctions and order routing</a> to fill either off or onchain.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/bffe271e75d56af0502d00bb449f1cbedb8836087207000a9dab1ad9990ce660.png" alt="Cowswap" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Cowswap</figcaption></figure><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://cow.fi">CowSwap</a> allows for optimal execution for traders by batching orders to find any that could be matched together and if not settling onchain on an AMM.</p><p>Through batching offchain and settling onchain if needed, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://cow.fi">CowSwap</a> first directs the flow of orders offchain for optimal execution and if not matches it onchain (executing the trade as best as possible).</p><p>Another example can be found in <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://drift.trade">Drift V2</a>. Orders will flow and be matched through various forms of liquidity. Launching as the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/cindyleowtt/status/1569713533298016258">Liquidity Trifecta</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://drift.trade">Drift</a> orders will flow through an auction, offchain order book, and AMM resulting in optimal execution for traders.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/a72fb3bb7ff9bfdbc83aa7c617a687da4833dd377ff2a1ea3d2159938af9ea17.png" alt="Drift Liquidity Trifecta" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Drift Liquidity Trifecta</figcaption></figure><p>Orders flow as follows</p><ol><li><p>Taker orders are first placed in a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.drift.trade/just-in-time-jit-auctions">short-lived auction</a> in which Makers can bid on filling the order</p><ol><li><p>This results in the most optimal execution for the trader</p></li></ol></li><li><p>A limit or conditional order is routed through an <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.drift.trade/keepers-and-decentralised-orderbook">offchain keeper network</a> in which all orders initially are attempted to be matched against each other (if not routed to the auction first and then vAMM)</p></li><li><p>If no Maker bids in the auction (or a Maker does not fill the entire order size) orders flow into the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.drift.trade/drift-amm">AMM</a> which serves as a constant source of guaranteed liquidity for orders to be filled against</p><ol><li><p>This is the final backstop and ensures that orders are always filled</p></li></ol></li></ol><p>By allowing orders to flow through multiple exchange venues a trader can see the best of both worlds. They can have optimal execution <em>and</em> ensure that they will always be filled.</p><h2 id="h-liquidity-provisioning" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Liquidity Provisioning</h2><p>If you have been paying attention to the on-chain trading space over the last few years you will have noticed that AMMs (spot or virtualized) and orderbooks have started to <em>feel</em> the same.</p><p>Both AMMs and Orderbooks can now trade just about any asset long/short and with leverage: spot, expiring options or futures, perpetuals, everlasting options, or power perpetuals, etc. In fact, the primary difference between them is <em>how</em> their liquidity is provisioned and the management of it.</p><p>Just in Time Liquidity (JIT) and the ability to provide passive liquidity onto an orderbook have begun to blur the lines between an AMM and an orderbook.</p><h3 id="h-active-liquidity-provisioning" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Active Liquidity Provisioning</h3><p><strong>Just in Time Liquidity</strong></p><p>In a concentrated liquidity AMM rather than providing passive liquidity or managing it by re-quoting your ranges, JIT is the concept of waiting for a trade, immediately provisioning liquidity explicitly at the price quoted, and then removing your liquidity.</p><p>As you might be able to see this type of order execution starts to look like a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.youtube.com/watch?v=mBVgnufwZpA">janky RFQ orderbook</a>, traders receive a quote, queue their trade, and are filled (often at a better price) prior to the trade even hitting the passive liquidity in the pool.</p><p><em>JIT allows for active liquidity to be provisioned for any trade on an AMM.</em></p><p><strong>Active Liquidity Managers</strong></p><p>Various products like <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.notion.so/DeFi-Greeks-7fa5fcb1f92048dcbf3322777b483fad">gamma</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.arrakis.finance">arrakis</a>, or <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://charm.fi">charm</a> recognized that in a concentrated liquidity AMM and the ability to quote your own upper and lower tick ranges there needs to be a product that can actively manage all of the passive liquidity currently provided to an AMM.</p><p>Through a network of keepers, managers operate various strategies based on the total liquidity and volatility of a given pool.</p><p><em>Active liquidity managers allow for passive liquidity on an AMM to be actively managed.</em></p><h3 id="h-passive-liquidity-provisioning" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Passive Liquidity Provisioning</h3><p>Orderbooks often struggle to list new assets as fast as they can be provisioned on an AMM. This is due to insufficient market maker interest and thus liquidity that can actively quote prices.</p><p>Some projects have recognized that in order to create more depth in a given market passive liquidity might be able to help.</p><p>Taking passive liquidity batching it and <em>layering</em> it on top of the orderbook so that it follows the curve of a given AMM invariant can greatly help to provide more consistent pricing and quotes in an emerging market.</p><p><em>Passive liquidity provisioning allows for liquidity to be added to an orderbook according to an AMM invariant</em></p><h3 id="h-in-practice" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">In Practice</h3><p>First realized by MEV searchers and implemented on Uniswap V3, JIT helps to provide better and more active price quoting on an AMM.</p><p>The vAMM <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://drift.tradde">Drift</a> has implemented JIT liquidity into its <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.drift.trade/updates/drift-v2#jit-just-in-time-liquidity-mechanism">V2 design</a>. A given trade will first be routed to market makers who have a short amount of time in which they can choose to take the other side of the order. If the order is not or partially filled the remaining quantity will be routed to the passive liquidity providers. This allows traders to always receive the best execution possible.</p><p>The AMMs <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://raydium.gitbook.io/raydium/">Raydium</a> and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.atrix.finance/docs/intro">Atrix</a> have started to take passive liquidity and add it as a various set of orders on top of the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.projectserum.com">Serum</a> orderbook, providing further fees for liquidity providers and deeper markets for Serum.</p><p>The orderbook <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://01.xyz">01</a> took a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://01exchange.medium.com/introducing-zamm-zeroone-automated-market-maker-41e422550194">similar approach</a> and in other to provide deeper liquidity to their orderbook allowed users to provide passive liquidity which would then be batched and provided according to the constant product invariant on the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://01.xyz">01</a> orderbook.</p><hr><p>As hybrid implementations for order-flow and liquidity provisioning continue to be iterated on we are moving closer to the final design for on-chain trading. One that can support practically any product, permissionless markets, with great execution, depth, and liquidity.</p><blockquote><p>If you find the AMM/Orderbook space interesting, are working on a new idea, just kicking around some new research, or have comments / thoughts on this article feel free to reach out on Twitter @0xperp</p></blockquote>]]></content:encoded>
            <author>nate-3@newsletter.paragraph.com (Nate)</author>
        </item>
        <item>
            <title><![CDATA[ramblings on defi derivatives]]></title>
            <link>https://paragraph.com/@nate-3/ramblings-on-defi-derivatives</link>
            <guid>Ll92I5GS3jJD8fL0spyM</guid>
            <pubDate>Sun, 23 Jan 2022 20:47:10 GMT</pubDate>
            <description><![CDATA[backgroundin the last year options protocols have grown from around $85m to over $1b in tvl, similarly perpetual swap trading platforms have seen quite the growth in trading volume from far less than $1b to coming close to clearing $10b in volume in a single day. value locked and volumes traded will only increase in 2022 with new platforms and products being released practically weekly (as im writing this squeeth, zeta, invariant, and 01protocol all released or are releasing in next few days)...]]></description>
            <content:encoded><![CDATA[<h2 id="h-background" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">background</h2><p>in the last year options protocols have grown from around $85m to over $1b in tvl, similarly perpetual swap trading platforms have seen quite the growth in trading volume from far less than $1b to coming close to clearing $10b in volume in a single day. value locked and volumes traded will only increase in 2022 with new platforms and products being released practically weekly (as im writing this <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://opyn.co">squeeth</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://zeta.markets/">zeta</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://invariant.app/">invariant</a>, and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://01.xyz">01protocol</a> all released or are releasing in next few days).</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/0xperp/status/1481719561107947521?s=20">https://twitter.com/0xperp/status/1481719561107947521?s=20</a></p><p>there have been several good writeups on defi derivatives and their outlook for 2022 here is a particularly good one from <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://jumpcrypto.com/state-of-crypto-derivatives-market/">jump trading</a>.</p><p>in the post shanav highlights that if you take crypto options volume (this includes centralized exchanges as well) as a % of spot volume, options only make up 2% of total volume traded. compare this to equity markets where options volume trades at a 35x multiple to spot volume. crypto derivative markets have a massive growth opportunity in front of them and the growth is particularly in defi.</p><p>in the rest of the post I will detail types of derivatives and their implementation and design in DeFi. along with innovations and what I am looking at next.</p><h2 id="h-types" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">types</h2><h3 id="h-perpetuals" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">perpetuals</h3><p>a product initially developed by <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.bitmex.com/app/perpetualContractsGuide">bitmex</a> perp swaps have no expiry, and function similar to a spot margin account allowing for highly leveraged long/short trading.</p><p>since perps have no expiry the concept of a funding rate is introduced to tether the price of the perp to the current spot price.</p><ul><li><p>mark price refers to the current price of the perp</p></li><li><p>index price refers to the current spot price to tether to</p></li><li><p>negative funding rate shorts pay longs</p></li><li><p>positive funding rate longs pay shorts</p></li><li><p>funding rate is calculated by <code>funding_period * (mark - index) / index</code></p></li></ul><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://research.paradigm.xyz/cartoon-guide-to-perps">paradigms cartoon guide to perps</a> also gives a very good explanation</p><p>perps quickly have become the most liquid and favorite way to trade on centralized exchanges and are a hot topic to be built out in DeFi.</p><p>so far there have been about three different perp designs</p><ul><li><p>orderbook + margin account</p></li><li><p>vAMM</p></li><li><p>embedded funding rates</p></li></ul><p>using an orderbook and margin account mirrors a centralized exchange experience and this is what protocols like <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.mango.markets/faqs/perp-faq">mango</a> work. trading on an orderbook is nice you can easily set limit orders, you trade <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/mangomarkets/status/1484200839837274113?s=20">directly with other counterparties</a>, and for the protocol trading is very capital efficient (each trade is settled once it can be matched with a counterparty).</p><p>a vAMM based model can be extremely advantageous, for a trader there is always guaranteed liquidity since you are trading peer to pool, vAMMs can very easily be cross-margined with just about any asset since all of the trading is virtual.</p><p>the third design (which I have only seen <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://opyn.co">opyn</a> and squeeth use) is embedding the funding rate into a parameter of asset. known as <strong>in-kind</strong> funding squeeth uses a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://opyn.gitbook.io/squeeth/squeeth/contracts-documentation#normalization-factor">normalization factor</a> to settle funding between longs and shorts without ever having to manage a cash payment. using in-kind funding is something that I think will become much more common management of funding was the largest limitation for perp composability. since funding is handled in-kind squeeth can be easily traded as an ERC20, used to LP, used as collateral on other defi platforms, and the list goes on.</p><h3 id="h-a-quick-aside-on-vamm-design" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">a quick aside on vAMM design</h3><p>this does not entirely relate to perps (its about interest rate swaps actually), but <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.voltz.xyz/">Voltz</a> has increased the benefits of using a vAMM through a concept known as <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.voltz.xyz/litepaper"><strong>LP Collateral Recycling</strong></a><strong>.</strong></p><p>in voltz example there are three users</p><ul><li><p>fixed interest rate taker</p></li><li><p>variable interest rate taker</p></li><li><p>liquidity provider</p></li></ul><p>if a fixed taker takes a trade that uses the LPs liquidity the LP is locked into the given swap at the rate the fixed taker took. but if a variable taker comes along and uses that same liquidity (the same rate) the positions can be netted out and the LP’s collateral can be freed and reused. in turn making the protocol much more capital efficient (there is more free liquidity to trade through).</p><p>even cooler this concept can be applied to most vAMMs. imagining recycling within a perp vAMM is even easier, if traders have opposite positions on the same asset you could settle their trades “off the curve”. additionally this might be an interesting way to integrate limit orders. a trader sets their limit price and if there is another trader that has an open position on the other side it settles. if not the limit is open until it can be filled by the vAMM.</p><p>in a way this makes a vAMM function like a pseudo orderbook with pricing based off of a curve.</p><blockquote><p>these are all very raw thoughts, iterate, be wrong, and discuss</p></blockquote><h3 id="h-options" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">options</h3><p>as referenced in the background of this options are only 2% of spot volume in crypto (note the majority of this 2% is centralized exchange volume <strong>not</strong> DeFi options), where in equity markets options volume trades at a 35x multiple to spot.</p><blockquote><p>this might not be the best comparison as crypto options trade much <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/kata1ist/status/1483992743211077638?s=20">more like commodities</a> than equities, but either way eye opening</p></blockquote><p>either DeFi and overall crypto options haven’t fully been figured out yet or no one wants to trade them.</p><p>I’ll take the former all day, right now it seems like DeFi options haven’t entirely taken off due to fragmentation (more on this in the liquidity section), the design, and getting large funds and market makers to trade on various chains.</p><p>the leading option protocol is <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://opyn.co">opyn</a> along with pool based protocols like <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://hegic.co">hegic</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://pods.finance">pods</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://lyra.finance">lyra</a>, and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://premia.finance">premia</a>. there was almost zero use of these protocols until option vaults landed early this year (there is an entire section dedicated to this below).</p><p>we have seen over a 10x increase in usage of onchain option protocols. I expect this growth to continue, especially as products become more cleanly packaged, capital efficient, and composable.</p><h3 id="h-volatility" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">volatility</h3><p>there have also been a decent amount of products in the market that package risk or volatility in a simple index. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://volmex.finance">volmex</a> has seen the most traction as a way to trade an assets volatility index. trading on volmex is similar to trading on a prediction market like <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://polymarket.com/">polymarket</a> or <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.augur.net/">augur</a>, you supply collateral and receive two tokens the IV index and its inverse. from here you can trade the volatility directionally how you choose.</p><p>I can see assets that volmex offers to be interesting and attractive to traders, however I think they struggle from a nascent market.</p><p>in their <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.volmex.finance/indices/methodology">methodology</a> section of the docs, its described that the volatility index is taken from averages across call and put options sourced offchain from <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://deribit.com/">deribit</a>. while this solution works its not very decentralized or native to DeFi.</p><p>although this is not the fault of volmex. if there was a highly liquid onchain options market when they where designing their protocol they could have used that as a source rather than deribit.</p><blockquote><p>power perpetuals can be used as a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/opyn/squeeth-primer-a-guide-to-understanding-opyns-implementation-of-squeeth-a0f5e8b95684">volatility oracle</a>, also check out oracle-free derivatives from <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://primitive.finance/blog/introducing-primitive">primitive</a> and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://antimatterdefi.medium.com/antimatter-perpetual-option-system-without-oracles-2e882c2e55ee">antimatter</a></p></blockquote><p>as derivatives markets are built out further, I will be watching for volatility products.</p><h2 id="h-innovations" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">innovations</h2><h3 id="h-liquidity-and-composability" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">liquidity and composability</h3><p>liquidity is by far the most important part to design for when creating a derivatives project, there are just so many ways it can be fragmented.</p><ul><li><p>over chains</p></li><li><p>over protocols</p></li><li><p>over strikes</p></li><li><p>over expires</p></li></ul><blockquote><p>A good thread detailing <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/KyleSamani/status/1415697784993374218?s=20">fragmentation</a> in the options market</p></blockquote><p>when option markets initially started to be designed on ethereum, the orderbook model was out of the question (still is on ethereum, but products like <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://zeta.markets/">zeta</a> on solana use it), and since AMMs worked so well for spot tokens many protocols began to develop an AMM or pool based model for trading options. Below are a few of the designs</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/hegic/whitepaper/blob/master/Hegic%20Protocol%20Whitepaper.pdf">Hegic V1</a></p><ul><li><p>hegic works by having option writers function as liquidity providers to a pool in which they are locked for the options expiration</p></li><li><p>hegic was the first to do this, and they have seen considerable first mover advantage</p></li></ul></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/hegic/Hegic-v8888-release-deck/blob/main/Hegic%20V8888%20Release%20Deck.pdf">Hegic v888</a></p><ul><li><p>the v2 of hegic, which introduced auto-exercising options, pools for both calls and puts, zero-loss pools (when you provide liquidity you can optionally hedge your liquidity)</p></li></ul></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.pods.finance/pods_v1_whitepaper.pdf">Pods</a></p><ul><li><p>pods released a great pool based options model in which the black scholes pricing model built into the AMM in which all that needs to be inputted is the IV</p></li><li><p>right now each pool is a separate option series, but the pods team is looking at how multiple option series could be in a single pool (see section 7 future work)</p></li></ul></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://premia.finance/amm.pdf">Premia</a></p><ul><li><p>premia has taken a lot of the options pool concepts to the next level, buyers can select your expiration date and strike price at a granular level and sellers (liquidity providers) can choose which markets they want to underwrite.</p></li></ul></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.lyra.finance/files/whitepaper.pdf">Lyra</a></p><ul><li><p>lrya functions with two pools, the collateral (writes the options) and the delta pool (hedges option writers delta). lyra also uses market driven IV which is then inputted to the black-scholes model to determine the option price</p></li></ul></li></ul><p>all of the research that has gone into designing these protocols is very impressive but due to poor capital efficiency and often much higher prices compared to say deribit most of these protocols have not seen significant volume compared to centralized counterparts.</p><p>looking at <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://dune.xyz/momir/Pods-Finance">pods</a> and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://dune.xyz/krugman/Premia-v2">premia’s</a> total volume they have cleared less all time than squeeth has in 2 weeks. nothing against either team (I actually really enjoy reading their docs) but squeeth has cleared more in volume in a fraction of the time because squeeth has done away with 3/4 of the liquidity fragmentations. there is no expiry, no need to select a strike price, and due to built in funding rate (thanks to the normalization factor) squeeth can be cross protocol (see a list of integrations <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/0xperp/awesome-squeeth#integrations">here</a>).</p><p>more on squeeth and power perpetuals later, but its important to know that cleanly packaging a payoff, in a perpetual, and composable fashion will always win out.</p><p>in addition to composable perpetuals like squeeth and option based AMM formulas there has been significant research in using <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://starli.medium.com/uniswap-deep-dive-into-v3-technical-white-paper-2fe2b5c90d2">concentrated</a> <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://uniswap.org/whitepaper-v3.pdf">liquidity</a> to form option payoffs.</p><p>if you are interested in this I suggest you read all ten articles from <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/guil_lambert">@guil_lambert</a> starting with <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://lambert-guillaume.medium.com/uniswap-v3-lp-tokens-as-perpetual-put-and-call-options-5b66219db827">Uniswap V3 LP Tokens as Perpetual Put and Call Options</a>, followed by <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://lambert-guillaume.medium.com/synthetic-options-and-short-calls-in-uniswap-v3-a3aea5e4e273">2</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://lambert-guillaume.medium.com/a-guide-for-choosing-optimal-uniswap-v3-lp-positions-part-1-842b470d2261">3</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://lambert-guillaume.medium.com/a-guide-for-choosing-optimal-uniswap-v3-lp-positions-part-2-4a94b0a12886">4</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://lambert-guillaume.medium.com/how-to-create-a-perpetual-options-in-uniswap-v3-3c40007ccf1">5</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://lambert-guillaume.medium.com/understanding-the-value-of-uniswap-v3-liquidity-positions-cdaaee127fe7">6</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://lambert-guillaume.medium.com/pricing-uniswap-v3-lp-positions-towards-a-new-options-paradigm-dce3e3b50125">7</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://lambert-guillaume.medium.com/on-chain-volatility-and-uniswap-v3-d031b98143d1">8</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://lambert-guillaume.medium.com/an-analysis-of-the-expected-value-of-the-impermanent-loss-in-uniswap-bfbfebbefed2">9</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://lambert-guillaume.medium.com/how-to-deploy-delta-neutral-liquidity-in-uniswap-or-why-euler-finance-is-a-game-changer-for-lps-1d91efe1e8ac">10</a>. following that go and play around with <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://info.yewbow.org/#/">info.yewbow.org</a> observe the volatility of each pool and visualize the payoff of your LPs</p><p>the top tier team at <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://primitive.finance/">primitive</a> took this a step further and developed an entirely new protocol <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://primitive.finance/blog/introducing-primitive">RMM-01</a> which focuses on being a spot and derivative exchange through concentrated liquidity. if you are curious on how you can create a replicating portfolio from a constant product market I suggest you read the following</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://stanford.edu/~guillean/papers/rmms.pdf">Replicating Market Makers</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3550601">The Replicating Portfolio of a Constant Product Market</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3898384">The Replicating Portfolio of a Constant Product Market with Bounded Liquidity</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://arxiv.org/abs/2111.13740">Replicating Monotonic Payoffs Without Oracles</a></p></li></ul><p>having a spot and derivative exchange bundled in one unlocks tons of capital efficiency, allows for granular strike selection, automatically rolling expires when the AMM rebalances (<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/alexangelj/status/1484596002510163972?s=20">heads up for searchers</a>), and freedom to select your own quote and base asset.</p><p>but… there are always tradeoffs replicating an option with concentrated liquidity only allows you to replicate selling options and the premium <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.primitive.finance/faq/liquidity#where-does-yield-come-from">yield relies on swap fees</a> from those using the spot exchange or arbitrageurs. yield being derived only from swap fees has two consequences, (1) <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.primitive.finance/faq/liquidity#no-arbitrageswaps-occur">no swaps or arbs occur</a> in which you would not earn yield and (2) since yield is from swaps your premium is paid over time of the expiry and not given upfront.</p><p>there are a few solutions to these: if you want to have a long call payoff you could <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.themis.exchange/product-information/borrowing">borrow</a> a primitive position, if you want to have a somewhat guaranteed premium you could <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.themis.exchange/product-information/lending-pool">lend</a> a primitive position</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/9b09c032e797af9336f9edd4e03a25881e7ec5041efd12bc8265bec15b5a6426.png" alt="comparing option models" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">comparing option models</figcaption></figure><h3 id="h-the-vault-structure" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">the vault structure</h3><p>a somewhat common and basic options strategy to generate additional yield on an asset by forgoing potential upside is known as a covered call strategy. there are <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.investopedia.com/terms/c/coveredcall.asp">plenty</a> of <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.fidelity.com/learning-center/investment-products/options/anatomy-of-a-covered-call">good</a> <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.lynalden.com/covered-calls/">guides</a> on how this works and the risk associated. the basics are you sell a far out of the money option on a regular cadence taking home the premium as yield and praying (or hopefully hedging) that prices do not rise enough for your calls to be excised.</p><p>yield farming to earn 4 digit APYs is extremely lucrative, but not very sustainable by selling risk through options you will have a much lower but sustainable yield. these concepts are summed up nicely in <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://juliankoh.medium.com/where-does-yield-come-from-anyway-fc818c114bd5">where does yield come from</a> by <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://ribbon.finance/">ribbon</a> co-founder <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/juliankoh">@juliankoh</a>.</p><p>the ribbon team (and now a <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://defillama.com/protocols/options">growing list of others</a>) saw strategies like covered calls and yield vaults like <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://yearn.finance">yearn</a> as a perfect fit, and thus Option Vaults were formed.</p><p>option vaults are simple, user deposits ETH and each week the ETH is used to collateralize 1w expiry and 0.1d options via oTokens using <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://opyn.finance">opyns</a> <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/opynfinance/GammaProtocol">gamma protocol</a> which are then sold to market makers via telegram and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://trader.airswap.io/">airswap</a> or through <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://ribbonfinance.medium.com/open-auctions-a981ff10db2b">open access gnosis auctions</a>.</p><p>these vaults are somewhat of a win-win for all parties. retail has a clean UX, simple, and easy way to generate constant yield. sophisticated market makers can take advantage of the not very competitive option pricing and arb the prices across other option exchanges.</p><p>there has been a decent backlash to option vaults on twitter see</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/saanglee/status/1478075681560936449?s=20">https://twitter.com/saanglee/status/1478075681560936449?s=20</a></p><p>or the quote tweets from <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/roshunpatel/status/1477835282686824452/retweets/with_comments">here</a>.</p><p>all I’ll say on this is option vaults are much more transparent in their onchain activities and structure its just really about communicating that risk to the retail investors using the platform. if you are marketing the option premiums as risk free yield then ya backlash is deserved.</p><p>across all option vault protocols there is about $500m of short dated options being sold each week by DOVs, so much that they are starting to affect the skew</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/7d29f737694c4cdc431c291c481749d14bc5737d25841f68987e3c517a822904.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>some smart traders new this was coming, but I assume most did not</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/e95f0e9e2840f92219800c9d016610d419cfd95b24fb38721bf3e501bf473a2e.png" alt="check the date ^" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">check the date ^</figcaption></figure><p>the deribit insights thread aeto was looking for can now be found <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/DeribitInsights/status/1482805604590759937?s=20">here</a></p><p>if you take away anything from this post, know that your yield will <strong>always</strong> be compressed even if it is “sustainable”</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/0xperp/status/1483234558464172035?s=20">https://twitter.com/0xperp/status/1483234558464172035?s=20</a></p><p>so far we have seen 40% interest rate on stablecoins, 4-5 figure APYs on the newest yield farm, very high double digit yields on option vaults, and (likely) will see large swings in negative funding via algorithmic stablecoin mints. and this is were things start getting cool… DeFi products affecting the overall crypto market structure (who would have thought back in 2019 when the entire space was sub $1m TVL).</p><p>but high tvl vault projects decimating your yield isn’t the point of this post… so back to derivatives.</p><p>another vault structure that is becoming more common is the basis trading vault. <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://uxd.fi">uxd</a> and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://lemma.finance">lemma</a> are leading the way. the basis trade is pretty simple especially when you are using perps.</p><ul><li><p>notice that funding on your favorite perp protocol is positive (longs pay shorts)</p></li><li><p>spot long an asset</p></li><li><p>short the asset on the perp protocol</p></li><li><p>earn the funding rate while being delta neutral</p></li></ul><p><em>of course you’ll need to continually hedge your positions to keep your delta neutral</em></p><p>uxd and lemma run strategies on decentralized perp markets (<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mango.markets">mango</a> and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.perp.com/">perpetual</a>) in a vault structure allowing anyone to invest. additionally they mint a stablecoin against the position. in uxd example you deposit SOL and the vault shorts SOL perps on mango.</p><blockquote><p>algorithmic stablecoins are another interesting DeFi concept, maybe will detail in a later post but for now this piece from <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/dragonfly-research/a-visual-explanation-of-algorithmic-stablecoins-9a0c1f0f51a0">dragonfly</a> and and FRAX’s <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.frax.finance/price-stability">docs</a> on seniorage shares should get you started</p></blockquote><p>as mentioned above a large influx in delta neutral backed stablecoins could push perp markets funding rates negative.</p><p>understanding how these stables pay the negative funding is important (and directly affects your coins stability), generally this is paid through an <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.lemma.finance/concepts-overview/dao#treasury-and-insurance-fund">insurance</a> <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.uxd.fi/uxdprotocol/overview/insurance-fund">fund</a> and if thats not enough governance tokens may be auctioned off (similar to <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.makerdao.com/smart-contract-modules/system-stabilizer-module/flop-detailed-documentation#5.-failure-modes-bounds-on-operating-conditions-and-external-risk-factors">maker debt auctions</a>).</p><p>however historically the basis trade has been really profitable</p><blockquote><p>Following a 2x long ETH-USDC on Perp and 2x short ETH-PERP in FTX would have yielded over 100% APR since the market was opened</p></blockquote><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://insights.deribit.com/market-research/the-quest-for-perp-amms/">https://insights.deribit.com/market-research/the-quest-for-perp-amms/</a></p><p><em>hidden in this article you will also find some interesting finds relating to the open interest and price on perpetual protocol v1</em></p><h3 id="h-a-quick-aside-on-stablecoins-and-perps-and-what-they-can-learn-from-one-another" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">a quick aside on stablecoins and perps and what they can learn from one another</h3><p>if your timeline over the past few weeks has been 75% about squeeth like mine, then tweets around “everything being a perp” might have surfaced. here are a few of them</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/gakonst/status/1428863329771180032?s=20">from georgios</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/danrobinson/status/1428864195601252355?s=20">from dan</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/_charlienoyes/status/1428904668336300032?s=20">reference to rai, from charlie</a></p></li></ul><p><em>note: all </em><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://paradigm.xyz"><em>paradigm</em></a></p><p>quick overview for MakerDAO and DAI is that DAI is an ETH margined USD perp</p><ul><li><p>DAI holders are long DAI</p></li><li><p>Vault depositors are short DAI</p></li><li><p>DAI price is the mark</p></li><li><p>$1 is the index</p></li><li><p>the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://makerdao.world/en/learn/Dai/dsr/">dai savings rate</a> and <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://makerdao.world/en/learn/vaults/stability-fees/">stability fee</a> act like a funding rate</p></li></ul><p>on the RAI and reflexer side the team has called <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/reflexerfinance/status/1438326996405297155?s=20">themselves a stablecoin/perp</a>, if you read closely on the rai <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.reflexer.finance/rai/rai-use-cases#stacked-funding-rates">use cases</a> you can see how RAIs redemption rate is similar to a funding rate.</p><blockquote><p>another side note <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://ameensol.medium.com/a-money-god-raises-rai-is-live-on-ethereum-mainnet-f9aff2b1d331">A Money God Rises</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://nikolai.fyi/purple/https://nikolai.fyi/purple/">DAI purple paper</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://bank.dev/why">Rico</a> are all good reads</p></blockquote><p>you can read more about perps as stablecoins from a more technical side, written by opyn, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://colab.research.google.com/drive/1mrxubKiFUhlavol4a38NJYaANdSNAEun">here</a></p><p>and a final exercise to the reader from the above post</p><blockquote><p>This is a collateralized zero coupon bond -- the original stablecoin</p></blockquote><p>okay after that quick overview on how everything is a perp, what can perps learn from algorithmic stablecoins (this specifically applies to those built with an AMM for pricing)?</p><p>designing a perp market has the benefit of using an AMM for pricing, most vAMM designs use the constant product formula <code>xy=k</code> which has worked quite well.</p><p>there have been plenty of iterations and new designs for AMMs for <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://curve.fi/files/stableswap-paper.pdf">similarly priced</a> <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://curve.fi/files/crypto-pools-paper.pdf">assets</a> and if you think of the mark and index of a perp as two separate like priced assets you can start to see how implementing a stableswap-like curve might allow for a perp to maintain a tighter peg.</p><p>additionally almost all algorithmic stablecoins trade at a current value (the mark) and peg/target a rate of $1 (the index).</p><p>the FEI stablecoin initially had the concept of <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://assets.fei.money/docs/whitepaper.pdf">direct incentives</a>, essentially as FEI deviated from its peg of $1 a reward/penalty would take place for a mint/burn. if FEI is trading at $0.98 minters earn 2% and burners are hit with a 4% penalty and vice versa. the trick here is that the farther FEI deviates from its peg the exponentially higher penalty. here is a (brutal) graph of what FEIs price movement from peg <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/bantg/status/1379755790496641025?s=20">looks like</a> when adding in direct incentives.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://storage.googleapis.com/papyrus_images/909738a92da4120380a150f249f218528244058bfc8df63e523df9142e551396.png" alt="ty bantg " blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">ty bantg</figcaption></figure><blockquote><p>note: that this did not work well for FEI and is since removed from the protocol</p></blockquote><p>as much as direct incentives did not really work for FEI, it could be interesting to try in a perp context. as mark deviates from the index you quadratically scale up/down the funding rate. doing so would hopefully attract for arbitrage opportunities and thus maintain a tighter mark/index peg.</p><p>closing out this aside, I have a feeling that we will see algo stablecoin designs implemented in perps, and protocols described in the context of perps in the future.</p><h3 id="h-power-perpetuals" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">power perpetuals</h3><p>power perpetuals are perhaps one of the most interesting research topics and products to come out of defi derivatives. the core concept is simple, a power perp (for example ETH^2) tracks the price of ETH squared. if ETHs price rises by 200% ETH^2 rises by 400%, if ETH price goes down you loss less than you would through <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/wadepros/status/1478808188250206216?s=20">2x constant leverage</a></p><blockquote><p>sidenote you should read: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.learnedtrustlessness.io/blog/constant-leveragehttps://www.learnedtrustlessness.io/blog/constant-leverage">How to lose 99.9% and still score a 500x</a></p></blockquote><p>squeeth or any power perpetual (<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://01.xyz">01protocol</a> will be launching sol^2 soon) can be used for a lot of different strategies, here is an initial list</p><ul><li><p>Longing Squeeth means you are long gamma, and is similar to holding a perpetual at the money call options</p></li><li><p>Shorting Squeeth means you are short gamma, and is similar to selling a perpetual at the money straddle</p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/opyn/how-to-hedge-options-with-squeeth-b5e30d5d83ac">Hedging Options</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/opyn/hedging-uniswap-v3-with-squeeth-bcaf1750ea11">Hedging LP positions</a></p></li><li><p>1x Long ETH Exposure with a oSQTH:USDC LP</p></li><li><p>1.5x Long ETH Exposure with a oSQTH:ETH LP</p></li><li><p>Usage as a Volatility oracle</p></li></ul><blockquote><p>you can see a full list of use cases and articles on squeeth <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/0xperp/awesome-squeeth">here</a></p></blockquote><p>I am extremely excited to see where power perps take us in 2022 simply because I know that the list above is just scratching the surface.</p><p>if you want to think about use cases I suggest reviewing <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/wadepros/status/1475621813988335618?s=20">squeeth mental models</a> and iterating from there.</p><p>it can also be helpful to know that holding squeeth provides a similar payoff to holding an always at the money call (shorting is like an at the money straddle). however power perps are not limited to just thinking in the option space, it can also be <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://opyn.gitbook.io/squeeth/resources/squeeth-faq#ecc9">compared</a> to a perp swap and constant leverage (something like FLI).</p><h2 id="h-whats-next" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">whats next</h2><p>this has already been a somewhat long post, so to end here is my shortlist of innovations I’ll be looking at in 2022.</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://colab.research.google.com/drive/1mrxubKiFUhlavol4a38NJYaANdSNAEun"><strong>iterations</strong></a><strong> on power perps</strong></p></li></ul><p>opyn laid it out nicely</p><blockquote><ul><li><p>A 0-perp is a stablecoin</p></li><li><p>A 1-perp is a future</p></li><li><p>Any p-perp that is not 0 or 1 is a volatility oracle</p></li><li><p>Power perps can be traded against fixed-expiry power futures</p></li><li><p>A 2-perp (squeeth) is an excellent hedge for options and constant function market makers such as uniswap and curve</p></li><li><p>A 0.5 perp (sqrth) is a perfect hedge for a uniswap LP position and it&apos;s coming next!</p></li></ul></blockquote><ul><li><p><strong>an increased focus on composability</strong></p><ul><li><p>I feel like many derivative designs have been optimizing for liquidity and the next step will be composability</p></li><li><p>I am looking at usage in other protocols, cross margined, (maybe) cross chain margin</p></li></ul></li><li><p><strong>vaults for everyone</strong></p><ul><li><p>continue to create vault products that are accessible (but transparent) to all investors and allow them to participate in high payoff niche trading strategies</p></li></ul></li></ul><p>I have made hopefully comprehensive list of the DeFi derivatives landscape here</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/0xperp/defi-derivatives">https://github.com/0xperp/defi-derivatives</a></p><p>if you are working on a derivatives project, or think I missed any don’t hesitate to reach out and DM me at <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://twitter.com/0xperp">@0xperp</a></p>]]></content:encoded>
            <author>nate-3@newsletter.paragraph.com (Nate)</author>
        </item>
    </channel>
</rss>