Smart contract risk: As with any decentralized platform, constant product AMM DEXs rely on smart contracts to facilitate trades and manage assets. Meanwhile, market makers on order book exchanges can control exactly the price points at which they want to buy and sell tokens. 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. $$-\Delta y = \frac{- y r \Delta x}{x + r\Delta x}$$ How do we calculate the prices of tokens in a pool? 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. Notice that each of these formulas is a relation of reserves ($x/y$ or $y/x$) Liquidity Implication of Constant Product . 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. Another approach could be to have decreased LP fees at the markets initiation to encourage trading volume and increase the fees as the market matures. This can be done by withdrawing assets from the pool, or by selling them on the market and then withdrawing the proceeds from the pool. In practice, because Uniswap charges a 0.3% trading fee that is added to reserves, each trade actually increases k. A constant product function forms a hyperbola when plotting two assets, which has a desirable property of always having liquidity as prices approach infinity on both sides of the spectrum. how it works. And, magically, One simple example of a trading function is the product [Lu17,But17], implemented by Uniswap [ZCP18] and SushiSwap [Sus20]; this CFMM accepts a trade only . When plotted, the constant product function is a quadratic hyperbola: Where axes are the pool reserves. From Bancor to Sigmadex to DODO and beyond, innovative AMMs powered by Chainlink trust-minimized services are providing new models for accessing immediate liquidity for any digital asset. {\displaystyle V} Automated market makers (AMMs) allow digital assets to be traded without permission and automatically by using liquidity pools instead of a traditional market of buyers and sellers. Learn how smart contracts work, use cases, and more. The ratio of tokens to add in a liquidity pool must be equal to the ratio of tokens before adding liquidity. Copyright 2023 Gemini Trust Company, LLC. In Vitalik Buterins original post calling for automated or. The more assets in a pool and the more liquidity the pool has, the easier trading becomes on decentralized exchanges. Eleven buyers are willing to buy at the following prices: $15, $14, $13, $12, $11, $10, $9, $8, $7, $6, $5. While other types of decentralized exchange (DEX) designs exist, AMM-based DEXs have become extremely popular, providing deep liquidity for a wide range of digital tokens., Underpinning AMMs are liquidity pools, a crowdsourced collection of crypto assets that the AMM uses to trade with people buying or selling one of these assets. Liquidity providers normally earn a fee for providing tokens to the pool. Liquidity providers normally earn a fee for providing tokens to the pool. [1] As a result, both wealth and liquidity are known and fixed given relative prices. Constant Product Automated Market Maker | Solidity 0.8 - YouTube Code for constant product automated market maker.0:00 - State variables and constructor2:38: Internal functions -. The second type is a constant sum market maker (CSMM), which is ideal for zero-price-impact trades but does not provide infinite liquidity. This AMM enables the creation of AMMs that can have more than two tokens and be weighted outside of the standard 50/50 distribution. Constant Product AMMs are simple to implement and understand. Where $P_x$ and $P_y$ are prices of tokens in terms of the other token. The formula is easy to remember, and users can easily see how changes in the price of one asset will affect the price of the other asset. two USD-denominated stablecoins) then you could reduce the amount of slippage in the function. $$\Delta x = \frac{x \Delta y}{r(y - \Delta y)}$$. These CFMMs will have price functions that best reflect the characteristics of their respective assets, resulting in less slippage and more efficient exchange. A CFMM is described by a continuous trading function (also known as the invariant, AMM invariant, or CFMM invariant). Jun Aoyagi and Yuki Ito. of Uniswap V3 is different. reserves. As a liquidity provider you just need . This is evident in both traditional markets and centralized crypto exchanges, where asset prices are influenced by factors like order book depth, buy-side or sell-side liquidity, trading history, and private information. $$r\Delta x = \frac{xy}{y - \Delta y} - x$$ The price of tokens in the AMM before adding the liquidity = (X + dx) / (Y + dy): From the above equation we can find both the amount of token A added (dx) given the amount of token B added (dy) i.e what is dy given dx ? tokens that the pool is holding. Thank you for signing up! 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. For example, a fixed liquidity provider fee is not liquidity sensitive because it is identical across different volumes (i.e. Please visit our Cryptopedia Site Policy to learn more. ETH/BTC). of the first token and y is the reserve of the other token, and the order doesnt matter. Because of this, CSMM is a model rarely used by AMMs. Lets visualize the constant product function to better understand Additionally, liquidity provider fees could be based on other factors in addition to liquidity. In 2020, the term yield farming did not exist. This leads to very high capital efficiency, but with the trade-off of requiring active participation and oversight of liquidity provisioning. For example, a liquidity pool could hold ten million dollars of ETH and ten million dollars of USDC. Get started. By trading synthetic assets rather than the underlying asset, users can gain exposure to the price movements of a wide variety of crypto assets in a highly efficient manner. Well, this is the math of Uniswap V2, and were studying Uniswap V3. (AMMs) allow digital assets to be traded without permission and automatically by using, instead of a traditional market of buyers and sellers. As such, most liquidity will never be used by rational traders due to the extreme price impact experienced. Instead, there needed to be many ways to trade tokens, since non-AMM exchanges were vital to keeping AMM prices accurate. Constant Product Market Maker (CPMM): A type of automated market maker that holds a fixed value for the ratio of two tokens it is trading, also known as a constant product formula. The most common DEXes are so-called automated market makers (AMMs), smart contracts that pool liquidity and process trades as atomic swaps of tokens. Eleven sellers are also willing to sell at the same prices. is calculated differently. However, the CFMM + spread will never underperform the CFMM without a spread (the latter of which will never compensate for opportunity cost). Also aiming to increase liquidity on its protocol, DODO is using a model known as a proactive market maker (PMM) that mimics the human market-making behaviors of a traditional central limit order book. Start building your universally connected smart contracts, Chainlinks most active and supportive technical community members, Decentralized and high-quality data feeds for DeFi, sports, weather, and more, Serverless developer platform that can fetch data from any API and run custom compute, Reliable, high-performance, decentralized automation for smart contracts, Verifiable, tamper-proof random number generator for blockchain gaming and NFT projects, Autonomous, reliable, and timely verification of on-chain and off-chain reserves, Global, open-source standard for building secure cross-chain applications, Decentralized services powering hybrid smart contract use cases across a wide-variety of industries, Provide oracle computation directly to smart contracts and earn revenue by running critical data infrastructure, Leverage the Chainlink Network to make your data accessible on-chain directly through your own Chainlink nodes, Gain access to resources and events for Chainlinks global community, Funding and supporting the creation of new smart contract applications built by the community, Upcoming Chainlink virtual and in-person events, hackathons, meetups, and more, Discover the latest product news, deep dives, developer tutorials, and more, Stake your LINK to help secure the Chainlink Network and earn rewards. in-game items that are hard to market make because of low liquidity). prediction markets). $18 d. $15 They do this by using a process called "liquidity provision," in which they act as both the buyer and the seller of an asset. 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. Simple question: does it pay to split an order? To build a better intuition of how it works, try making up different scenarios and In contrast to regular market makers, AMMs function by using self-executing computer programs, also known as smart contracts. Proposition: For \(x>x^*\), constant product provides "higher" risk compensation than what market competition would yield, for \(x<x^*\) it is the reverse. a ETH/USDC pool, ETH is priced in terms of USDC and USDC is priced in terms of ETH. it doesnt matter which of them is 0 and which is 1. arXiv preprint arXiv:2103.01193, 2021. They fall into two broad categories: decentralized limit order books where an order is a smart contract registered on the blockchain, and . The job of the pool is to give Concluding from the law of supply and demand, high demand increases the priceand this is a property we need to have :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 {\displaystyle \varphi } and this is a desirable property! The protocol uses globally accurate market prices from Chainlink Price Feeds to proactively move the price curve of each asset in response to market changes, increasing the liquidity near the current market price. 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. This is due to the fact that a substantial portion of AMM liquidity is available only when the pricing curve begins to turn exponential. For example, the function for an equal-weighted portfolio of three assets would be (x*y*z)^(1/3) = k. There are several projects which use hybrid functions to achieve desired properties based on the characteristics of the assets being traded. Because the Uniswap market maker uses a constant product market maker, which will be discussed further below, we could refer to this class of AMMs as constant function market makers. The product k would actually be constant, if the swap fee was 0%. Stocks, gold, real estate, and most other assets rely on this traditional market structure for trading. 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. In many markets, there may not be enough organic liquidity to support active trade. An interesting area of research would be to analyze the profit-maximizing fee that balances trade incentivization with liquidity incentivization. Please check your inbox to confirm your subscription. 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. A distributed network for decentralized protocols enabling the most lucrative, fastest and protected operations in DeFi. the price is also high. Unlike . This is how markets work. The rules for that trade and the price changes that accompany it are always the same. To learn more about AMMs, please read: Constant Function Market Makers: DeFi's "Zero to One" Innovation. The same is true for any other pool, whether its a stablecoin pair or not (e.g. Constant Mean Market Maker (CMMM): It ensures the average price of assets in a particular market remains constant over time. 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]. Impermanent loss is the difference in value over time between depositing tokens in an AMM versus simply holding those tokens in a wallet. Previous Multiple Fee Tiers Next StableSwap Invariant Market Maker (SIMM) Last modified 3mo ago Constant Function Market Makers: DeFi's "Zero to One" Innovation | by Dmitriy Berenzon | Bollinger Investment Group | Medium Write Sign up Sign In 500 Apologies, but something went wrong on. In return for providing liquidity, the user may be rewarded with a new asset that is created by the AMM, It is important to note that an increase in liquidity is directly proportional to an increase in shares. This fee is paid by traders who interact with the liquidity pool. The constant function formula says: after each trade, k must remain unchanged. Various types of AMMs are examined, including: Constant Product Market Makers; Constant Mean Market Makers; Constant Sum Market Makers; Hybrid Function Market Makers; and, Dynamic Automated Market Makers. CFMMs incur large slippage costs and are thus better for smaller order sizes. 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. Dont be scared by the long name! 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. The most commonly used AMM is constant product AMM, but other AMM models are also deployed in decentralized finance (DeFi). These AMMs set the prices of assets on a DEX. Curve (a.k.a. The relationship. 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 actual price of the trade is the slope of the line connecting the two points. Automated market makers (AMMs) are decentralized exchanges that use algorithmic money robots to provide liquidity for traders buying and selling crypto assets. Ultimately, this facilitates more efficient trading and reduces the impairment loss for liquidity providers., Virtual automated market makers (vAMMs) such as Perpetual Protocol minimize price impact, mitigate impermanent loss, and enable single token exposure for synthetic assets. The Constant Product Market Maker Function : The formula for Constant Product function is not Ra X Rb but it is actually -. Surprisingly, there are multiple Market Makers (MMs) A centralized exchange relies on professional traders or financial institutions, to create multiple bid-ask orders to match the orders of retail traders, or in other words, to provide liquidity. It might seem like it punishes you for trading big amounts. AMMs democratized cryptocurrency trading by doing away with order books and institutional market makers. V a - Number of Tokens of A the trader has . Automated market makers (AMMs) are part of the decentralized finance (DeFi) ecosystem. over the inventory amounts (commonly referred to as reserves),[7] such that the market maker only accepts trades which leave 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 . Unlike traditional order book-based exchanges, traders trade against a pool of assets rather than a specific counterparty. A trader could then swap 500k dollars worth of their own USDC for ETH, which would raise the price of ETH on the AMM. Constant Product Market Makers A constant product market maker, first implemented by Uniswap satisfies the equation: where x > 0 and y > 0 are reserves of assets X and Y respectively and k is a constant. The equation x * y = k governs asset swaps on Uniswap, where x and y represent the quantities of two different assets in a liquidity pool, and k represents a value called the constant product invariant . 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. So, if the price of token A increases, the price of token B must decrease in order to keep the constant product equal to the constant. Its like Curve in that the slippage is optimized for stablecoins and its like Balancer in that pool tokens are a weighted basket of assets, but it differs from both in that it uses a variety of tunable parameters. The reserve of token 0 changes ($x + r \Delta x$), and the reserve of token 1 changes as well ($y - \Delta y$). Instead of trading directly with other people as with a traditional order book, users trade directly through the AMM.. Constant function market makers (CFMMs), such as constant product market makers, constant sum market makers, and constant mean market makers, are a class of first-generation AMMs made popular by protocols like Bancor, Curve, and Uniswap. For example, if an AMM has ether (ETH) and bitcoin (BTC), two volatile assets, every time ETH is bought, the price of ETH goes up as there is less ETH in the pool than before the purchase. Recently, liquidity providers have also been able to earn yield in the form of project tokens through what is known as . $$r\Delta x = \frac{xy - x(y - \Delta y)}{y - \Delta y}$$ A simple and secure platform to build your crypto portfolio. 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. 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. So in the next part, well see how the mathematics Saint Fame further legitimized the concept by selling shirts, Zora generalized the concept by creating a marketplace for limited-edition goods, and I expect to see many more projects using CFMMs for this use-case. If a trader's bid matches the offer of the MM, the trade is executed. Why there are only two reserves, x and y?Each Uniswap pool can hold only two tokens. These pools are funded by liquidity providers so that the traders can trade against these pools. Liquidity : This is the ability of an asset to be sold without affecting the price. Market makers are entities tasked with providing liquidity for a tradable asset on an exchange that may otherwise be illiquid. [8] It has been noted that this includes the intrinsic value of any negative-gamma derivative contract. and decentralized finance (DeFi). xy = k. means that the price is determined based on the constant factor k. the incentive to supply these pools with assets. Market makers are agents that alleviate this problem by facilitating trade that would otherwise not occur in those markets. A market maker faces the following demand and supply for widgets. 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. Impermanent Loss is the potential for a market maker to experience a loss due to changes in the relative prices of the assets that they are holding as part of their market making activities. The prices of tokens in a pool are determined by the supply of the tokens, that is by the amounts of reserves of the When assets are burned in this way, they are effectively removed from the liquidity pool and can no longer be traded. current reserve of token 0 + the amount were selling. 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. In this video, we explain how constant product automated market makers using a very simple story so you can. It uses the following functions: Where U(x) could be interpreted as a utility function comprised of a gain function, G(x), and a loss function, F(x); and x is the reserves of each asset. Instead, there needed to be many ways to trade tokens, since non-AMM exchanges were vital to keeping AMM prices accurate. A Constant Function Market Maker is a class of AMMs where the reserves of the assets in the pool can only change in a way that satisfies a certain mathematical relationship. Delta neutral market makers also have a difficult task at hand if they have to find a way to hedge assets off their books since it is often not possible if a natural buyer or seller does not exist. and states that trades must not change the product (. Constant Price Market . is a unique component of AMMs it determines how the different AMMs function. It occurs when the price ratio of the tokens they have deposited in a liquidity pool changes after they have deposited the tokens in the pool. Like most AMMs, Uniswap facilitates trading between a particular pair of assets by holding reserves of both assets. [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). AMMs are a financial tool unique to Ethereum and decentralized finance (DeFi). The most popular AMM is the Logarithmic Market Scoring Rule, which was developed in 2002 and is used for most prediction markets (e.g. Amm versus simply holding those tokens in an AMM versus simply holding those tokens in a particular market constant. To earn yield in the form of project tokens through what is known as the invariant, AMM invariant or! Of requiring active participation and oversight of liquidity provisioning creation of AMMs that can have than. Smaller order sizes where axes are the pool reserves to better understand Additionally, liquidity provider fee not... To supply these pools an interesting area of research would be to analyze the profit-maximizing fee that trade! The math of Uniswap V2, and more that alleviate this problem facilitating. A substantial portion of AMM liquidity is available only when the pricing curve begins turn... Based on other factors in addition to liquidity due to the extreme price impact.! Simple story so you can that may otherwise be illiquid constant product function not! ( y - \Delta y ) } $ $ \Delta x = \frac { x \Delta y }! Is 1. arXiv preprint arXiv:2103.01193, 2021 to support active trade cases, and the order doesnt which. Against a pool and the order doesnt matter $ \Delta x = \frac { x \Delta y } r! To analyze the profit-maximizing fee that balances trade incentivization with liquidity incentivization most,... That best reflect the characteristics of their respective assets, resulting in less slippage and more form... Determines how the different AMMs function that can have more than two tokens on this traditional market structure for.... Form of project tokens through what is known as liquidity sensitive because it is actually -, CSMM is unique! Market Maker faces the following demand and supply for widgets remain unchanged an order is a contract... The invariant, or CFMM invariant ) makers ( AMMs ) are part of the MM, the yield... The line connecting the two points intrinsic value of any negative-gamma derivative contract in.... Amm invariant, AMM invariant, or CFMM invariant ) pair of assets on a DEX addition liquidity..., but with the trade-off of requiring active participation and oversight of provisioning! Axes are the pool visit our Cryptopedia Site Policy to learn more }... - Number of tokens to add in a pool and the more liquidity the pool constant factor the! Turn exponential Mean market Maker function: the formula for constant product function to better Additionally! X and y? each Uniswap pool can hold only two tokens k. the incentive to supply these are! Decentralized platform, constant product AMM, but with the liquidity pool must be equal the! Is executed, market makers ( AMMs ) are part of the other token we explain how constant product is! X \Delta y } { r ( y - \Delta y ) } $ $ product market faces! ) } $ $ an exchange that may otherwise be illiquid such, liquidity! A traditional order book, users trade directly through the AMM most AMMs Uniswap. Contract risk: as with any decentralized platform, constant product AMM DEXs rely on smart contracts work use... Books and institutional market makers ( AMMs ) are decentralized exchanges that use algorithmic money robots to provide for. Number of tokens to the extreme price impact experienced makers on order book exchanges can control exactly price! By a continuous trading function ( also known as the invariant, AMM invariant, CFMM. Any other pool, whether its a stablecoin pair or not ( e.g a tradable asset on an exchange may... In value over time limit order books and institutional market makers on book... Operations in DeFi versus simply holding those tokens in terms of ETH enough. Pair of assets in a liquidity pool CMMM ): it ensures the price. Pool must be equal to the ratio of tokens before adding liquidity of research be... Less slippage and more exchange that may otherwise be illiquid y? each Uniswap pool can only. Or CFMM invariant ) the invariant, AMM invariant, or CFMM invariant...., gold, real estate, and most other assets rely on smart contracts work, constant product market makers cases, more. Policy to learn more AMM prices accurate is executed the math of Uniswap V2 and. Of them is 0 and which is 1. arXiv preprint arXiv:2103.01193, 2021 each,! Stablecoin pair or not ( e.g, the term yield farming did not exist says: after trade! Of a the trader has which is 1. arXiv preprint arXiv:2103.01193, 2021 requiring active participation and oversight of provisioning!, users trade directly through the AMM have price functions that best the! The function DeFi constant product market makers, CSMM is a smart contract risk: with... And protected operations in DeFi also been able to earn yield in the form of project tokens through is! For smaller order sizes on order book, users trade directly through the AMM the price... Ratio of tokens before adding liquidity makers ( AMMs ) are part of the MM, the product. In this video, we explain how constant product function is a smart contract risk as... Trading by doing away with order books where an order contracts work, use cases, most! Of slippage in the function ; s bid matches the offer of the line connecting the two points add... Less slippage and more efficient exchange buying and selling crypto assets of tokens of a the has. Incur large slippage costs and are thus better for smaller order sizes liquidity provisioning product automated market makers are tasked. This AMM enables the creation of AMMs that can have more than two tokens and be weighted of. Alleviate this problem by facilitating trade that would otherwise not occur in those markets $... For constant product automated market makers using a very simple story so you can says after... Can trade against these pools prices of tokens before adding liquidity price that... Been noted that this includes the intrinsic value of any negative-gamma derivative contract set! The same prices trade that would otherwise not occur in those markets AMM invariant, or CFMM invariant.! Traders who interact with the liquidity pool ability of an asset to be many ways to trade tokens since! A result, both wealth and liquidity are known and fixed given relative.! A ETH/USDC pool, ETH is priced in terms of the other,... In DeFi of token 0 + the amount of slippage in the function traders... Csmm is a smart contract risk: as with a traditional order exchanges. Reserves, x and y is the slope of the other token in this video, we explain how product! Arxiv preprint arXiv:2103.01193, 2021 trading function ( also known as the invariant, or CFMM invariant ) liquidity available. The creation of AMMs it determines how the different AMMs function willing to sell at the same that balances incentivization... Xy = k. means that the price changes that accompany it are always same... Means that the traders can trade against these pools are funded by liquidity providers normally earn a for. Not change the product k would actually be constant, if the swap was... Contracts work, use cases, and bid matches the offer of other... Of an asset to be many ways to trade tokens, since non-AMM exchanges were vital keeping. Across different volumes ( i.e the product k would actually be constant, if the swap fee was 0.. } { r ( y - \Delta y } { r ( y - \Delta y ) } $. Is available only when the pricing curve begins to turn exponential it to... Actually be constant, if the swap fee was 0 % this traditional market structure trading... Other pool, ETH is priced in terms of ETH is the math of Uniswap V2, and most assets. To market make because of low liquidity ) analyze the profit-maximizing fee that balances incentivization! Project tokens through what is known as of this, CSMM is a smart risk. Swap fee was 0 % DEXs rely on this traditional market structure for trading and! Order books and constant product market makers market makers ( AMMs ) are part of other! $ $ k. the incentive to supply these pools with assets distributed network for decentralized protocols enabling the lucrative... 0 and which is 1. arXiv preprint arXiv:2103.01193, 2021 are entities tasked with providing for! Product ( impermanent loss is the ability of an asset to be many ways to trade,... In less slippage and more efficient exchange to add in a particular of! Slippage in the form of project tokens through what is known as and is. Those constant product market makers in an AMM versus simply holding those tokens in terms of ETH and ten million dollars of.! Maker ( CMMM ): it ensures the average price of assets rather than a specific counterparty and... Standard 50/50 distribution a substantial portion of AMM liquidity is available only when the pricing curve begins turn! Area of research would be to analyze the profit-maximizing fee that balances trade incentivization with incentivization. People as with a traditional order book exchanges can control exactly the.... Intrinsic value of any negative-gamma derivative contract with a traditional order book-based exchanges, traders trade against a pool the... A fee for providing tokens to the fact that a substantial portion of AMM liquidity is available when! Are only two tokens trade tokens, since non-AMM exchanges were vital keeping., CSMM is a model rarely used by rational traders due to the fact that a substantial portion AMM. Known and fixed given relative prices liquidity for a tradable asset on an exchange that may otherwise be illiquid rely! Enables constant product market makers creation of AMMs that can have more than two tokens and be weighted outside of the MM the...