A theory of Automated Market Makers in DeFi

Massimo Bartoletti, James Hsin-yu Chiang, Alberto Lluch-Lafuente
2/22/2021
84 citations
cs.FLcs.GT

Official code: blockchain-unica/defi-workbench (10 stars, OCaml, GPL-3.0, last commit 2021-04-19).

Abstract

Automated market makers (AMMs) are one of the most prominent decentralized finance (DeFi) applications. AMMs allow users to trade different types of crypto-tokens, without the need to find a counter-party.

Show full abstract

There are several implementations and models for AMMs, featuring a variety of sophisticated economic mechanisms. We present a theory of AMMs. The core of our theory is an abstract operational model of the interactions between users and AMMs, which can be concretised by instantiating the economic mechanisms. We exploit our theory to formally prove a set of fundamental properties of AMMs, characterizing both structural and economic aspects. We do this by abstracting from the actual economic mechanisms used in implementations, and identifying sufficient conditions which ensure the relevant properties. Notably, we devise a general solution to the arbitrage problem, the main game-theoretic foundation behind the economic mechanisms of AMMs.

View on arXivView PDF

Code Implementations(1)

GPL-3.0
101OCamlFeb 19, 20215 years agoGPL-3.0

Similar Papers

Cite this paper

@article{bartoletti2021theory,
  title  = {A theory of Automated Market Makers in DeFi},
  author = {Massimo Bartoletti and James Hsin-yu Chiang and Alberto Lluch-Lafuente},
  year   = {2021},
  eprint = {2102.11350},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2102.11350}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2102.11350.svg)](https://codeofpaper.com/paper/2102.11350)

Discussion