Constant function market maker

A constant-function market maker (CFMM) is a market maker with the property 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.[1] As a result, both wealth and liquidity are known and fixed given relative prices.[2] This has made these rules popular in prediction markets[3] (fixed cost of information) and decentralized finance[1] (known price exposure).

History

An early description of a CFMM was published by economist Robin Hanson in "Logarithmic Market Scoring Rules for Modular Combinatorial Information Aggregation" (2002).[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).[5] First be seen in production on a Minecraft server in 2012,[6] CFMMs are a popular DEX architecture.

Definition

Trading function

A CFMM is described by a continuous trading function (also known as the invariant, AMM invariant, or CFMM invariant)

over the inventory amounts (commonly referred to as reserves),[7] such that the market maker only accepts trades which leave unchanged. In order for the market maker to not give away assets for free, must be monotone (intermediate value theorem), and it can be assumed WLOG that is increasing.

Portfolio Value

The portfolio value

of a CFMM as a function of the market prices of the assets in its inventory, is the worst-case market value of its inventory, which under assumptions of perfect competition is equal to the infimum of the dot product of inventory amounts with prices, over all inventory amounts such that the CFMM quotes at market price.

If 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 .[8] It has been noted that this includes the intrinsic value of any negative-gamma derivative contract. Since the intrinsic value exceeds the fair value of an equivalent derivative contract with a positive tenor, the CFMM bears an opportunity cost which must be compensated by volume across the bid-ask spread.

Crowdfunded CFMMs

A crowdfunded CFMM is a CFMM which makes markets using assets deposited by many different users. 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]

Fees

Adding a bid-ask spread on top of a CFMM breaks the constant-function invariant. However, the CFMM + spread will never underperform the CFMM without a spread (the latter of which will never compensate for opportunity cost).

Examples

  • Uniswap
  • RMM-01
  • PMMP
  • StableSwap

References

  1. Schär, Fabian (Apr 15, 2021). "Decentralized Finance: On Blockchain- and Smart Contract-Based Financial Markets". Federal Reserve Bank of St. Louis Review. 103 (2). doi:10.20955/r.103.153-74.
  2. Chen, Yiling; Pennock, David (20 Jun 2012). "A Utility Framework for Bounded-Loss Market Makers". arXiv:1206.5252 [cs.GT].
  3. Othman, Abraham; Pennock, David; Reeves, Daniel; Sandholm, Thomas (Sep 2013). "A Practical Liquidity-Sensitive Automated Market Maker" (PDF). ACM Transactions on Economics and Computation. 1 (3): 1–25. doi:10.1145/2509413.2509414. S2CID 52798827.
  4. Hanson, Robin (Dec 13, 2012). "Logarithmic markets coring rules for modular combinatorial information aggregation" (PDF). The Journal of Prediction Markets. 1 (1): 3–15. doi:10.5750/jpm.v1i1.417.
  5. Angeris, Guillermo; Chitra, Tarun (26 October 2020). "Improved Price Oracles: Constant Function Market Makers". Proceedings of the 2nd ACM Conference on Advances in Financial Technologies. pp. 80–91. arXiv:2003.10001. doi:10.1145/3419614.3423251. ISBN 9781450381390. S2CID 214611887.
  6. url=https://github.com/patrick-layden/HyperConomy
  7. Angeris, Guillermo; Agrawal, Akshay; Evans, Alex; Chitra, Tarun; Boyd, Stephen (2021). "Constant Function Market Makers: Multi-Asset Trades via Convex Optimization". arXiv:2107.12484 [math.OC].
  8. Angeris, Guillermo; Evans, Alex; Chitra, Tarun (2021). "Replicating Market Makers". arXiv:2103.14769 [q-fin.MF].
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.