Cointime

Download App
iOS & Android

Negative Price AMM ±⟨DiracAMM⟩

Repost from Ethresearch By v-for-vasya: “Negative Price AMM ±⟨DiracAMM⟩” The full report and all related findings are available on the official website of Ethresearch.

We discover that negative liquidity is possible and construct an AMM to access the negative domain by allowing the price to go negative. The invariant for a negative price happens to be the formula for a circle and the liquidity distribution happens to have a power law tail. You can interact with and compare it to an RMM here. Most interesting points are outlined below with link to paper at the end.

Figure 1:Two negatively priced assets can be exchanged between each other for a positive price. An impossible task in tradfi, requiring a fiat numeraire to act as an intermediary.

Summary:

Swapping and liquidity provision transactions of a Concentrated Circular Market Maker (CCMM) are obfuscated using Fully Homomorphic Encryption (FHE) to mitigate MEV in the public mempool by combining game theory with the Kelly criterion. Liquidity of the CCMM is adjusted using a scale parameter and can be modified with a hook in Uniswap v4. We show how it is possible to enter the negative liquidity domain with the CCMM.

Negative Liquidity

If we look at a Constant Product Market Maker (CPMM) such as Uniswap, we can see that it happens to provide liquidity in the negative domain. Take the Uniswap Invariant with liquidity L

It’s just difficult to access this negative liquidity in Uniswap due to the invariant being a hyperbola. By pressing the invariant against the axes, concentrating liquidity, and folding it on itself we can travel to the negative domain. A liquidity provider may become a liquidity taker with the following invariant where z is a scale parameter

We like to call it the DiracAMM (Paul Dirac discovered anti-matter with a similar trick by seeing that energy √E2 could have a negative value in the energy-momentum relation). One can program the invariant to not provide liquidity after touching the axes though, in which case its liquidity distribution L happens to be the Student’s-t distribution with degree of freedom df=2, a special case of a power law tail where the law of large numbers has no predictive capacity on the variance.

LP Payoffs

If price, following a power law, is allowed to flow into the negative, as is empirically observed with various assets, then the LP payoff function happens to resemble a collection of non-linear payoffs.

But it’s not necessary though for the underlying price to be negative for this AMM to be useful. Rather, one suggestion is to use the price of $0 as an offset from the current underlying price of, let’s say $100 . A negative 1 price indicates a decline of the underlying from $100 to $99. If the CCMM has one asset that can not go negative, such as a stablecoin, then it can only have LP payoffs 2A2 and 2B2, but by borrowing the LP position through a lending protocol one could mimic the payoffs of 2D2 and 2C2 respectively.

MEV approach with Kelly Criterion and FHE

Since a gain and a loss can be defined as an offset with a CCMM, we can combine it with the game theory behind rational MEV decision makers who follow the Kelly criterion, a strategy that ensures long-term optimal geometric growth

where f∗ represents a MEV extractor’s portfolio allocation in a MEV attack with the probability of success p and betting odds b. By targeting Kelly-neutrality we set a MEV extractor’s Kelly betting amount f=0 at an increased gas cost by rearranging for the following equality to hold

We do so by introducing two encrypted boolean values (ebool) for swapping Bswap=[0,1] and providing liquidity BLP=[0,1] going into the mempool. Where the boolean value can mean 1 for swap x for y and 0 for swap y for x (or remove and re-add liquidity for BLP). We can also encrypt the swap quantity dx (or dy) as euints, thereby making it unclear what the betting odds b (gain and loss relationship) are.

Setting the expected value of a MEV extractor’s Kelly bet E⟨f∗⟩ = 0. Targeting Kelly-neutrality could be a useful mechanism for MEV. We noticed that with FHE we can selectively target just the variables we want to obfuscate enough without having to encrypt everything and think that this approach could be useful to others looking into MEV.

Further work

An approach to avoid negative prices for the underlying could be to construct a passive wall of liquidity, a liquidity fingerprint that asymmetrically increases non-linearly as price approaches zero, denting price impact. The super-heavy tailed distributions like the Log-Cauchy distribution with concentration parameter c come to mind with liquidity fingerprint in price space being

This is a very interesting liquidity fingerprint because it captures what we see in crypto where some tokens stay where they are, the majority approach the zero bound, and a select few fly towards the right tail. One of the mathematical challenges here being that liquidity spikes to infinity at 0 though.

Comments

All Comments

Recommended for you

  • Bank of Japan Governor Kazuo Ueda: No Immediate Need for Rate Hike

    On April 28, Bank of Japan Governor Kazuo Ueda stated that there is currently no immediate need to raise interest rates. However, if the current supply shocks lead to secondary ripple effects, a rate hike may be necessary. (Jin Shi)

  • Central Political Bureau Meeting: Comprehensive Implementation of 'AI+' Initiative to Develop New Intelligent Economy and Improve AI Governance

    On April 28, the Central Political Bureau of the Communist Party of China held a meeting to analyze and study the current economic situation and economic work. The meeting emphasized the need to accelerate the construction of a modern industrial system and maintain a reasonable proportion of manufacturing. It called for deepening the construction of a unified national market and addressing 'involutionary' competition. The meeting also announced the comprehensive implementation of the 'AI+' initiative to develop a new intelligent economy and improve AI governance. Furthermore, it highlighted the need to deepen state-owned enterprise reform, systematically respond to external shocks and challenges, enhance the security of energy and resource guarantees, and address various uncertainties with the certainty of high-quality development. (Dongxin News Agency)

  • ByteDance, Zhiyu, and Alibaba Selected Among Top 10 AI Influencers by TIME

    On April 28, TIME announced its list of the '10 Most Influential AI Companies of 2026.' Unlike a simple comparison of model capabilities, this list emphasizes the comprehensive shaping power of companies in terms of industry, technological pathways, and social impact. The selected companies include ByteDance, Amazon, Zhiyu, OpenAI, Alphabet, Meta, Anthropic, Alibaba, Mistral, and Hugging Face. Among them, three are domestic companies: ByteDance, Zhiyu, and Alibaba. (Dongxin News Agency)

  • Arthur Hayes: More Concerned About Fed Nominee Waller's Comments on Balance Sheet Than Short-Term Interest Rates

    On April 28, BitMEX founder Arthur Hayes spoke about the Federal Reserve at the Bitcoin 2026 conference, stating, "When Kevin Waller was nominated as the Fed's SEC chairman, everyone started to panic because during his tenure as a Fed governor— I believe from the 2008 financial crisis until the current president— he has been very critical of the Fed's massive balance sheet. He has publicly stated that he believes the Fed's balance sheet is too large and that he needs to find ways to shrink it while also being able to lower interest rates. Now, if you have read my articles, you know that I am a firm advocate of the idea that the quantity of money is more important than its price. Therefore, I am more concerned about his comments on the balance sheet than the direction of short-term interest rates. So, if the market believes that due to Waller's actions at the Fed, the liquidity of dollars circulating in the system will decrease, then they will be bearish on Bitcoin and other risk assets. This is the discussion we see in the media about a hawkish Fed emerging after Waller takes over in May. Now, I don't think so. I believe that essentially the Fed will replace reserves, treasury bonds, and repos and put them into the commercial banking system, and they will do this with the help of new regulations concerning how banks hold assets on their balance sheets and how much capital they need to hold against those assets. Finally, I think the most important point to understand about what Waller will or will not do at the Fed is that he has a very substantial hard constraint, which is that he needs to work with Treasury's Scott Bessen to ensure that any actions he takes regarding the Fed's balance sheet do not impair Bessen's ability to sell billions and trillions of dollars in bonds.

  • SEC Chair: Reg GG Crypto to Allow Private Sector Token Sales Soon

    On April 28, U.S. SEC Chair Gary Gensler stated in an interview at the Bitcoin 2026 conference that the agency will continue to advance other exciting initiatives, such as truly allowing companies to conduct on-chain experiments, build tokenized securities, and trade on-chain within the United States. We plan to release innovative exemption regulations in the coming weeks. Additionally, we will permit the private sector to raise funds through on-chain token sales, which we refer to as 'Reg GG Crypto.' These initiatives are in preparation and will be launched soon. Currently, there is a bill titled the 'Clarity Act' under consideration in Congress. We do need Congress to provide regulations in this area. We are ready, willing, and able to explain their regulations and translate them into rules that people can rely on and pursue their innovative ideas. It is important to emphasize that this is happening domestically in the U.S., so they do not have to go overseas. This is the core idea that truly matters here.

  • SEC Chair Discusses Clarity Act: Codified Law Provides Greater Assurance for the Future

    On April 28, during the Bitcoin 2026 Conference, SEC Chair Gary Gensler spoke about the Clarity Act, stating that the U.S. Securities and Exchange Commission has considerable operational flexibility under the regulations. However, we are constrained by existing authorities, which, despite some amendments over the years, fundamentally remain rooted in the framework established in the 1930s. This is why having a piece of legislation is so important; it can shield future developments from adverse impacts, allowing us to leverage new authorities and the flexibility provided by the Act. We can collaborate with the Commodity Futures Trading Commission to coordinate and clarify definitions, and further develop from there. But again, nothing provides greater assurance for the future than codified law, coupled with sound judicial opinions that engrave the provisions of the law in stone through the mechanisms of the entire court system. Therefore, all of this is very important, but we are focused on efforts to simplify processes, enhance efficiency, and assist innovators in their endeavors, enabling them to operate with certainty rather than being stifled by those who jealously guard the existing ways of doing things. However, we must ensure that we remain at the forefront of innovation in the United States.

  • Meta Prepares to Withdraw Acquisition of Manus; Investors Including Tencent Plan to Cooperate

    On April 28, the Wall Street Journal reported, citing informed sources, that after the Office of Foreign Investment Security Review under China's National Development and Reform Commission made a legal decision to prohibit foreign investment in the Manus project, Meta is preparing to withdraw from the acquisition deal. According to sources, if Meta proceeds with the withdrawal process, several former Asian investors in Manus, including Tencent, Sequoia China, and ZhenFund, have planned to cooperate.

  • US Spot Bitcoin ETF Sees Net Outflow of $263.2 Million Yesterday

    On April 28, according to monitoring data from Farside Investors, the US spot Bitcoin ETF experienced a net outflow of $263.2 million yesterday.

  • US Spot Ethereum ETF Sees $50.4 Million Net Outflow

    On April 28, according to monitoring data from Farside Investors, the US spot Ethereum ETF experienced a net outflow of $50.4 million yesterday.

  • Bank of Japan Maintains Interest Rate, Meeting Expectations

    On April 28, the Bank of Japan kept its target interest rate unchanged at 0.75% for the third consecutive meeting, in line with market expectations.