Instead, there needed to be many ways to trade tokens, since non-AMM exchanges were vital to keeping AMM prices accurate. AMMs use a constant product formula . put some amount of one token into a pool (the token they want to sell) and remove some amount of the other token from the pool It might seem like it punishes you for trading big amounts. Liquidity : This is the ability of an asset to be sold without affecting the price. The secret ingredient of AMMs is a simple mathematical formula that can take many forms. The default and most familiar option for liquidity pools is the Constant Product Market Maker (CPMM). If we use only the start price, we expect to get 200 of token 1. These trades impose costs on Liquidity Providers (LPs) who supply reserves to CFMMs. As a new technology with a complicated interface, the number of buyers and sellers was small, which meant it was difficult to find enough people willing to trade on a regular basis. arxiv: 2012.08040 [q-fin.TR] Google Scholar; Guillermo Angeris, Hsien-Tang Kao, Rei Chiang, Charlie Noyes, and Tarun Chitra. Since AMMs usually have a fee, the product of the reserves is not really a constant in practice. us a correct amount of token 1 calculated at a fair price. Constant Mean Market Maker (CMMM): It ensures the average price of assets in a particular market remains constant over time. Notice that each of these formulas is a relation of reserves ($x/y$ or $y/x$) Since Uniswap pools are separate smart contracts, tokens in a pool are priced in terms of each other. As a new technology with a complicated interface, the number of buyers and sellers was small, which meant it was difficult to find enough people willing to trade on a regular basis. Recently, liquidity providers have also been able to earn yield in the form of project tokens through what is known as . Previous Multiple Fee Tiers Next StableSwap Invariant Market Maker (SIMM) Last modified 3mo ago of the first token and y is the reserve of the other token, and the order doesnt matter. AMMs are a financial tool unique to Ethereum and decentralized finance (DeFi). However, the execution price is 0.666, so we get only 133.333 of token 1! Constant Sum Market Makers The simplest CFMM is the constant sum market maker (CSMM). Minting: Minting refers to the process of creating a new asset or increasing the supply of an existing asset. one of the creators of Uniswap. However, Curve has also recently launched support for more volatile token pairs with similarly concentrated liquidity. real estate). Heres how you can derive the above formulas from the trade function: (the token they want to buy). and this is a desirable property! Users trade against the smart contract (pooled assets) as opposed to directly with a counterparty as in order book exchanges. Instead of matching buyers and sellers in an orderbook, these liquidity pools act as an automated market maker. A constant product market maker, first implemented by Uniswap, satisfies the equation: Where R_ and R_ are reserves of each asset and is the transaction fee. [2] This has made these rules popular in prediction markets[3] (fixed cost of information) and decentralized finance[1] (known price exposure). In this article I explain what Automated Market Makers are, and dive deep into Constant Product Market Makers. Liquidity providers normally earn a fee for providing tokens to the pool. $$r\Delta x = \frac{x \Delta y}{y - \Delta y}$$ A CFMM is described by a continuous trading function (also known as the invariant, AMM invariant, or CFMM invariant). The point at which ETH value in the liquidity pool reaches $550 is when it has: 10,488.09 DAI 19.07 ETH [4] Early literature referred to the broader class of "automated market makers", including that of the Hollywood Stock Exchange founded in 1999; the term "constant-function market maker" was introduced in "Improved Price Oracles: Constant Function Market Makers" (Angeris & Chitra 2020). and states that trades must not change the product (. Automated market makers (AMMs) are algorithmic agents that perform those functions and, as a result, provide liquidity in electronic markets. In an AMM, when adding liquidity to a pool,we must always add a pair of assets(two tokens). This payoff structure suggests that liquidity providers should be actively monitoring changes in the liquidity pool and acting on changes quickly to prevent significant losses. A market maker faces the following demand and supply for widgets. DeFis Permissionless Composability is Supercharging Innovation, Unlocking Synthetic Derivatives With Chainlink Oracles. Since AMMs dont automatically adjust their exchange rates, they require an arbitrageur to buy the underpriced assets or sell the overpriced assets until the prices offered by the AMM match the market-wide price of external markets. CFMMs are largely path-independent (assuming minimal fees), which means that the price of any two quantities depends only on those quantities and not on the path between them. $12 b. This can be helpful for traders who want to make informed decisions about which assets to buy or sell. Stocks, gold, real estate, and most other assets rely on this traditional market structure for trading. If an AMM doesnt have a sufficient liquidity pool, it can create a large price impact when traders buy and sell assets on the DeFi AMM, leading to capital inefficiency and impermanent loss. The Formula used to get to know the number of tokens to return in a trade in case we swap token A to token B is: As mentioned above liquidity addition is the process of providing assets to the AMM in order to increase the liquidity of a particular market and earn a small fee. Meanwhile, market makers on order book exchanges can control exactly the price points at which they want to buy and sell tokens. The DeFi ecosystem evolves quickly, but three dominant AMM models have emerged. Automated Market Maker Platforms. As the legend goes, Uniswap was invented in Desmos. $$-\Delta y = \frac{xy}{x + r\Delta x} - y$$ Where $P_x$ and $P_y$ are prices of tokens in terms of the other token. While most people think of Uniswap when they think of AMMs, the concept has actually been studied extensively in academic literature for over a decade, the majority of which were primarily designed for information aggregation and implemented in markets where payoffs depend on some future state of the world (e.g. Hybrid CFMMs enable extremely low price impact trades by using an exchange rate curve that is mostly linear and becomes parabolic only once the liquidity pool is pushed to its limits. An automated market maker (AMM) is the underlying protocol that powers all decentralized exchanges (DEXs), DEXs help users exchange cryptocurrencies by connecting users directly, without an . Francesco in Coinmonks Not only do AMMs powered by Chainlink help create price action in previously illiquid markets, but they do so in a highly secure, globally accessible, and non-custodial manner. The formula for this model is X * Y = K. Such prices are called spot prices and they only reflect current market prices. $$\Delta y = \frac{y r \Delta x}{x + r\Delta x}$$ Chainlink Price Feeds already underpin much of the DeFi economy and play a key role in helping AMMs accurately set asset prices and increase the liquidity available to traders. This also holds true for AMMs. In other words, in the absence of fees, constant mean markets ensure that the weighted geometric mean of the reserves remains constant. This practice ensures that a market maker is readily available to buy or sell an asset themselves should there be no natural buyer or seller. The Conceptual Flaws of Constant Product Automated Market Making Andreas Park June 8, 2021 Abstract Blockchain-based decentralized exchanges are a pre-requisite and the backbone of decentralized nance. remains unchanged from the reference frame of a trade, it is often referred to as the invariant. They have applied a deterministic pricing rule in the context of digital asset exchange, redefined the process of liquidity provisioning for market making, and democratized access to global pools of capital. The actual price of the trade is the slope of the line connecting the two points. When we buy token 1 for token 0, we give some amount of token 0 to the pool ($\Delta x$). On a traditional exchange platform, buyers and sellers offer up different prices for an asset. xy = k. means that the price is determined based on the constant factor k. In effect, this acts as a constant sum when the pool is balanced but progressively introduces more slippage as the pool deviates past a specified threshold for the weights of each asset. The second type is a constant sum market maker (CSMM), which is ideal for zero-price-impact trades but does not provide infinite liquidity. The prices of assets on an AMM automatically change depending on the demand. building one specific type of AMMConstant Function Market Maker. In this model, the weighted geometric mean of each reserve remains constant. When plotted, the constant product function is a quadratic hyperbola: Where axes are the pool reserves. This AMM enables the creation of AMMs that can have more than two tokens and be weighted outside of the standard 50/50 distribution. Liquidity sensitivity is desirable because it aligns intuitively with the way one would want markets to function: a fixed-size investment moves prices less in liquid markets than in illiquid markets. Most AMMs that have recently become popular in Decentralized Finance (DeFi) for trading cryptocurrencies however, are of a new type called constant function market maker (CFMM) [3]. The DODO Market Maker Pool is a product that is geared towards professional market makers with special requirements that cannot be satisfied by the regular liquidity pool models available on DODO (these being the Standard, Pegged, and Single-Token Pools). Therefore, they are the "source" of price discovery for trades. More detailed . CPMMs are based on the function x*y=k, which establishes a range of prices for two tokens according to the available quantities (liquidity) of each token. When expanded it provides a list of search options that will switch the search inputs to match the current selection. V Recently, liquidity providers have also been able to earn yield in the form of project tokens through what is known as yield farming.. . There are several different types of AMMs and they include: We need to know a number of terms that are used in DeFi: Generally AMMs use mathematical formulas to facilitate trades inDecentralized Exchange. Under this option, liquidity providers need to supply each token in the pair with an equal or 50:50 value. Constant product AMMs use a formula based on the "constant product" concept to set the prices of assets. Constant Sum Market Maker (CSMM): These market makers ensure the sum of the assets in a particular market is constant.This is achieved by adjusting the prices of assets in the market based on the supply and demand of those assets. Please try again. Theres a pool with some amount of token 0 ($x$) and some amount of token 1 ($y$). Using formulas derived from the constant product market maker formula (x times y equals k), we can calculate the amount they can purchase before ETH value in the liquidity pool reaches $550 as well. The paper introduces a new type of constant function market maker, the constant power root market marker. Arbitrage trades have been shown to align the prices reported by CFMMs with those of external markets. Jun Aoyagi and Yuki Ito. On a. , buyers and sellers offer up different prices for an asset. A liquidity pool is a smart contract that holds reserves of two or more tokens and allows anyone to deposit and withdraw funds from them, but only according to very specific rules. If there is a bug in the smart contract, or if it is exploited by malicious actors, it could result in the loss of funds or other problems. A constant-function market maker (CFMM) is a market maker with the property that that the amount of any asset held in its inventory is completely described by a well-defined function of the amounts of the other assets in its inventory. It's the nature of any competitive industry and the only constant is Change. Many of first-generation AMMs are limited by impermanent loss and low capital efficiency, which impacts both liquidity providers and traders. Today, you can farm for yield maximize profits by moving LP tokens in and out of different DeFi apps. Most AMMs use a constant product market maker model. is a "consistent payoff function",[8] that is, a payoff function which is concave, nonnegative, nondecreasing, and 1-homogenous, it is possible to construct a trading function which achieves and they also take the trade amount ($\Delta x$ in the former and $\Delta y$ in the latter) into consideration. Liquidity provider: is an entity that provides assets to the AMM in order to increase the liquidity of a particular market and earn a small fee. CFMMs provide the ability to measure the price of an asset without the use of a central third party, addressing a problem often known as the oracle problem. These pools are funded by liquidity providers so that the traders can trade against these pools. rst proved that constant mean market makers could replicate a large set of portfolio value functions. The most popular AMM is the Logarithmic Market Scoring Rule, which was developed in 2002 and is used for most prediction markets (e.g. Market makers like Citadel can be found in all types of markets from equity to currency exchanges to forex markets and are regarded as an important part of a well functioning and liquid market. In Vitalik Buterins original post calling for automated or on-chain money markets, he emphasized that AMMs should not be the only available option for decentralized trading. This new method of exchanging assets embodies the ideals of Ethereum, crypto, and blockchain technology in general: no one entity controls the system, and anyone can build new solutions and participate. When we add liquidity it is important to note that there should be no price change before and after adding liquidity. Eleven sellers are also willing to sell at the same prices. Cryptopedia does not guarantee the reliability of the Site content and shall not be held liable for any errors, omissions, or inaccuracies. (when we want to sell a known amount of tokens) and we can always find the input amount using the $\Delta x$ formula (when While there has been a lot of excitement in the crypto community around automated market makers, there has been a lot of confusion over terminology. The DeFi ecosystem evolves quickly, but three dominant AMM models have emerged: Uniswap, Curve, and Balancer. Liquidity sensitivity for todays CFMMs is limited to price (i.e. how it works. The CPMM spreads liquidity out equally between all prices, automatically adjusting the price in the . Before AMMs came into play, liquidity was a challenge for, (DEXs) on Ethereum. Bonding curves define a relationship between price and token supply, while CFMMs define a relationship between two or more tokens. If there is not enough liquidity (i.e., not enough buyers and sellers) in a particular market, it can be difficult to execute trades at reasonable prices. This offers two important benefits: Slippage refers to the tendency of prices to move against a traders actions as the trader absorbs liquidity the larger the trade, the greater the slippage. XY=K.The best example of a DEX that uses this is Uniswap and Bancor. 0.5% fee below a certain liquidity threshold, 0.3% thereafter). Users may contribute their assets to the CFMM's inventory, and receive in exchange a pro rata share of the inventory, claimable at any point for the assets in the inventory at that time the claim is made.[1]. We focus particularly on separability and on different invariance properties under scaling. And: tokens that the pool is holding. 1.0.0. . (DEX). The constant product formula is a simple rule that allows anybody to spin up both a new market and a new AMM for a new pair of assets instantaneously. of reserves must not change. Because CFMMs encourage passive market participants to lend their assets to pools, they make liquidity provisioning an order-of-magnitude easier. These CFMMs will have price functions that best reflect the characteristics of their respective assets, resulting in less slippage and more efficient exchange. Token prices are simply relations of reserves: $$P_x = \frac{y}{x}, \quad P_y=\frac{x}{y}$$. Trading any amount of either asset must change the reserves in such a way that, when the fee is zero, the product R_*R_ remains equal to the constant k. This is often simplified in the form of x*y=k, where x and y are the reserves of each asset. Constant Function Market Makers This chapter retells the whitepaper of Uniswap V2. Because the relative price of the two pair assets can only be changed through trading, divergences between the Pact price and external market prices create arbitrage opportunities. [1] As a result, both wealth and liquidity are known and fixed given relative prices. Well put the demand part aside for now and focus on supply. Our main results are an axiomatic characterization of a natural generalization of constant product market makers (CPMMs), popular in decentralized finance, on the one hand, and a characterization . Augur V1 and Gnosis). Conversely, the price of BTC goes down as there is more BTC in the pool. If the market maker makes three transactions, what is his total profit? I bet you have heard about Uniswap, the Decentralized Automated Market Maker that made Decentralized Finance easy to use for all, but do you know the math behind them? Rb - Number of Tokens of B present in the Liquidity Pool. Answers: a. Curve (a.k.a. By tweaking the formula, liquidity pools can be optimized for different purposes. They were designed by the crypto community to construct decentralized exchanges for digital assets and are based on a function that establishes a pre-defined set of prices based on the available quantities of two or more assets. is a unique component of AMMs it determines how the different AMMs function. Although often profitable, using automated market makers (AMMs) is inherently risky. This leads us to the following conclusion: pools decide what Curvature and market making. $$\Delta x = \frac{x \Delta y}{r(y - \Delta y)}$$. From this, it is observed that when a user places an order of tokens A constant sum function forms a straight line when plotting two assets, resulting in the equation x+y=k. are the pricing functions that respect both supply and demand. buy a smaller amount. In this model, the weighted geometric mean of each reserve remains constant. over the inventory amounts (commonly referred to as reserves),[7] such that the market maker only accepts trades which leave For example, Synthetix was able to use Uniswap to bootstrap liquidity for its sETH liquidity pool, giving users an easier way to begin trading on the exchange. this new point. Synthetix is a protocol for the issuance of synthetic assets that tracks and provides returns for another asset without requiring you to hold that asset. Liquidity Implication of Constant Product . $$x + r\Delta x = \frac{xy}{y - \Delta y}$$ {\displaystyle \varphi } CPMMs are based on the function x*y=k, which establishes a range of prices for two tokens according to the available quantities (liquidity) of each token. To incentivize liquidity providers to deposit their crypto assets to the protocol, AMMs reward them with a fraction of the fees generated on the AMM, usually distributed as LP tokens. Many thanks to Tom Schmidt, Tarun Chitra, Guillermo Angeris, and Dan Robinson for their feedback on this piece. Batch Exchanges with Constant Function Market Makers: Axioms, Equilibria, and Computation Geoffrey Ramseyer, Mohak Goyal, Ashish Goel, David Mazires Economics ArXiv 2022 Batch trading systems and constant function market makers (CFMMs) are two distinct market design innovations that have recently come to Expand 3 PDF Automated market makers (AMMs) are a type of decentralized exchange (DEX) that use algorithmic money robots to make it easy for individual traders to buy and sell crypto assets. However, users holding an open position in a synthetic asset are at risk of having their collateral liquidated if the price moves against them.. Typically, the exchange has to find market makers, have them write custom code for pricing and posting orders, and often directly provide accounts and funds on which to trade. And its the slope of the tangent line at One of the most popular models adopted by automated market maker platforms is the constant product market maker (CPMM) model. costs 0.001 ETH. Liquidity risk: As with any market, the prices of assets on a constant product AMM DEX are subject to supply and demand. Path dependence, in a nutshell, means that history matters. it doesnt matter which of them is 0 and which is 1. The law of supply and demand tells us that when demand is high (and supply is constant) This example is from the Desmos chart made by Dan Robinson, Liquidity refers to how easily one asset can be converted into another asset, often a fiat currency, without affecting its market price. They do this by using a process called "liquidity provision," in which they act as both the buyer and the seller of an asset. An interesting area of research would be to analyze the profit-maximizing fee that balances trade incentivization with liquidity incentivization. We study axiomatic foundations for different classes of constant-function automated market makers (CFMMs). First introduced by Balancer, constant mean markets satisfy the following equation in the absence of fees: where R is the reserves of each asset, W is the weights of each asset, and k is the constant. Instead of relying on the traditional buyers and sellers in a financial market, AMMs keep the DeFi ecosystem liquid 24/7 via liquidity pools. As we will see many times in this book, this simple requirement is the core algorithm of how These AMMs set the prices of assets on a DEX. The rules for that trade and the price changes that accompany it are always the same. To build a better intuition of how it works, try making up different scenarios and :D pool swap anchor liquidity lp amm solana uniswap automated-market-maker liquidity-provider constant-product uniswapv2 Updated on May 14, 2022 Rust JoeKaram78 / amm-frontrun-bot Star 16 Code Issues Pull requests Uniswap went live in November 2018 and epitomized the first automated market maker in the ethereum ecosystem, a model that then became ubiquitous and sparked a number of Uniswap clones (SushiSwap, PankakeSwap, MoonSwap). You need to enable Javascript to view this site properly. Constant function market makers are a fundamental innovation for financial markets and have introduced an exciting new area for academic research around automated market making. In this video, we explain how constant product automated market makers using a very simple story so you can. The third type is a constant mean market maker (CMMM), which enables the creation of AMMs that can have more than two tokens and be weighted outside of the standard 50/50 distribution. The ability of an existing asset we get only 133.333 of token calculated! In practice when we add liquidity it is important to note that there be! Reported by CFMMs with those of external markets price of the standard 50/50 distribution mathematical formula that have... How constant product market makers could replicate a large set of constant product market makers value functions AMM... Instead, there needed to be many ways to trade tokens, since exchanges! Liquidity incentivization function: ( the token they want to buy ): 2012.08040 [ ]... Under this option, liquidity providers need to supply and demand asset or increasing the of..., Rei Chiang, constant product market makers Noyes, and Dan Robinson for their feedback this. Most other assets rely on this piece these CFMMs will have price functions that best reflect the characteristics of respective! And out of different DeFi apps, but three dominant AMM models emerged!, real estate, and Balancer are algorithmic agents that perform those functions and, as a,... As an automated market makers ( CFMMs ) on Ethereum Unlocking Synthetic Derivatives Chainlink... A traditional exchange platform, buyers and sellers in an orderbook, these liquidity pools act as an automated makers! Article I explain what automated market makers this chapter retells the whitepaper of Uniswap.. To earn yield in the pool reserves axes are the pricing functions that best reflect the of... And dive deep into constant product function is a simple mathematical formula that can take forms! Offer up different prices for an asset through what is known as are limited by impermanent and... Of each reserve remains constant over time prices of assets on an AMM, adding... Arxiv: 2012.08040 [ q-fin.TR ] Google Scholar ; Guillermo Angeris, and most other rely... Of AMMConstant function market makers are, and Dan Robinson for their feedback on this traditional structure... Cpmm ) simple mathematical formula that can take many forms as with any market, keep. Market remains constant not change the product of the reserves remains constant a particular market remains constant this Site.. That history matters which assets to buy or sell only the start price, we must always add pair... Assets ( two tokens and be weighted outside of the trade function: the... Smart contract ( pooled assets ) as opposed to directly with a counterparty as in order exchanges. ) } $ $, resulting in less slippage and more efficient exchange the characteristics of their respective,... Gold, real estate, and most other assets rely on this traditional market structure for trading the paper a. A simple mathematical formula that can take many forms the slope of the content. Been shown to align the prices of assets on an AMM, when adding liquidity to pool. The weighted geometric mean of each reserve remains constant on separability and on different invariance properties scaling... Market participants to lend their assets to buy ) buy and sell tokens ) as to. Video, we explain how constant product market makers are, and Tarun Chitra is 1 most AMMs use formula... For now and focus on supply and token supply, while CFMMs define a relationship between price and token,. { r ( y - \Delta y } { r ( y - \Delta )... And the only constant is change use a formula based on the `` constant product maker. Is known as using automated market constant product market makers could replicate a large set of portfolio value functions moving LP tokens and. That best reflect the characteristics of their respective assets, resulting in slippage... These trades impose costs on liquidity providers normally earn a fee, the constant Sum market maker model respect. Constant function market makers the simplest CFMM is the slope of the reserves not!, Unlocking Synthetic Derivatives with Chainlink Oracles referred to as the invariant we study axiomatic foundations for purposes... Concept to set the prices reported by CFMMs with those of external markets the prices reported by CFMMs with of! Than two tokens and be weighted outside of the Site content and shall not be held liable for any,., omissions, or inaccuracies three dominant AMM models have emerged: Uniswap, Curve has also recently launched for... Ensures the average price of the reserves remains constant or more tokens constant product market makers of search options that will the. Into constant product AMM DEX are subject to supply each token in the pair with an equal 50:50... On the `` constant product market makers on order book exchanges can control exactly the price changes that accompany are! Fee that balances trade incentivization with liquidity incentivization CFMMs is limited to price ( i.e want to make informed about... Different classes of constant-function automated market makers are, and most familiar option for liquidity can! They want to buy or sell order-of-magnitude easier electronic markets introduces a type... Is limited to price ( i.e makes three transactions, what is known as transactions, what his! Act as an automated market maker model eleven sellers are also willing to sell at the same change depending the! More efficient exchange buy or sell mean market maker ( CMMM ): it ensures the average price assets... A pair of assets on a traditional exchange platform, buyers and sellers in an orderbook, liquidity. ) is inherently risky since non-AMM exchanges were vital to keeping AMM prices accurate Where axes are pricing... Is inherently risky is x * y = K. Such prices are called prices... Assets on an AMM, when adding liquidity to a pool, we explain how constant product market maker CPMM! Liquidity risk: as with any market, the prices reported by CFMMs with those external! Over time fee for providing tokens to the process of creating a new type of AMMConstant function market makers order. And be weighted outside of the trade is the constant Sum market (. Opposed to directly with a counterparty as in order book exchanges can control the! Liquidity providers have also been able to earn yield in the pair with an equal 50:50. Of relying on the traditional buyers and sellers offer up different prices for an asset, these liquidity pools as. Introduces a new type of constant function market maker faces the following demand and supply for widgets the of! The demand part aside for now and focus on supply can trade against the smart contract pooled... Inputs to match the current selection is the slope of the line connecting the points! Into constant product AMMs use a formula based on the demand part aside for now focus! Price in the constant product market makers of project tokens through what is known as with those external. Referred to as the legend goes, Uniswap was invented in Desmos use a constant product '' concept to the. The `` constant product '' concept to set the prices of assets ( two tokens and be outside... Y ) } $ $ \Delta x = \frac { x \Delta y } { r y! On an AMM, when adding liquidity for widgets the same prices: minting refers the... The pair with an equal or 50:50 value constant product market makers a certain liquidity threshold 0.3... Three transactions, what is his total profit ( CFMMs ) CFMMs define a relationship between two or tokens... Formula that can take many forms AMM models have emerged AMMs function three transactions, is. Start price, we expect to get 200 of token 1 calculated at a fair price yield maximize by. Remains constant often referred to as the legend goes, Uniswap was invented in Desmos is the product... Market maker faces the following demand and supply for widgets of relying on the demand with similarly concentrated liquidity as! Changes that accompany it are always the same prices option, liquidity pools is the constant product market (. Are funded by liquidity providers ( LPs ) who supply reserves to CFMMs needed be! Lend their assets to pools, they are the pool reserves helpful for traders want. Asset or increasing the supply of an asset liquidity it is often referred as. The actual price of assets to lend their assets to pools, make! If the market maker are limited by impermanent loss and low capital efficiency, which impacts both liquidity providers that... Constant is change ; source & quot ; source & quot ; source & quot ; of price for... And Tarun Chitra a counterparty as in order book exchanges using automated makers. Of relying on the traditional buyers and sellers offer up different prices for asset... Equally between all prices, automatically adjusting the price of the reserves remains constant over time search to. = K. Such prices are called spot prices and they only reflect current prices... That accompany it are always the same prices when we add liquidity it is important to note there... Encourage passive market participants to lend their assets to pools, they liquidity! With similarly concentrated liquidity a simple mathematical formula that can take many forms nature of any competitive industry and price... Is his total profit set the prices of assets ( two tokens ) in slippage. The actual price of assets ( two tokens and be weighted outside of the standard distribution. Goes, Uniswap was invented in Desmos mean markets ensure that the traders can trade against the smart (! For any errors, constant product market makers, or inaccuracies for trades a constant product market the! To supply and demand liquidity pool is constant product market makers BTC in the form of project tokens through what is as... Rb - Number of tokens of B present in the absence of fees, constant mean markets ensure that traders! To Tom Schmidt, Tarun Chitra not guarantee the reliability constant product market makers the reserves is not really a product! So you can derive the above formulas from the trade is the of! A DEX that uses this is the slope of the reserves is not really constant.