UNISWAP - A CASE STUDY OF DECENTRALIZED EXCHANGES ON THE BLOCKCHAIN

Authors

  • Nikolajs Koroļkovs Rezekne Academy of Technologies (LV)
  • Sergejs Kodors Rezekne Academy of Technologies (LV)

DOI:

https://doi.org/10.17770/het2022.26.6950

Keywords:

Uniswap, Decentralized exchange, DEX, AMM, Automated market maker, DeFi, Decentralized finance,

Abstract

The paper takes a close look at an emerging industry - decentralized finance on the blockchain. The goal of this paper is to compare centralized order book (CLOB)-based exchanges to automated market maker (AMM)-based decentralized exchanges (DEX) and analyze the challenges that AMM-based DEXes are facing today using Uniswap as an example.

Downloads

Download data is not yet available.

References

Greta Bull “Blockchain: A Solution in Search of a Problem?” 2018. [Online]. Available: https://www.cgap.org/blog/blockchain-solution-search-problem [Accessed: May 7, 2022]

Satoshi Nakamoto “Bitcoin: A Peer-to-Peer Electronic Cash System” 2008. [Online]. Available: https://bitcoin.org/bitcoin.pdf [Accessed: May 7, 2022]

Franz J. Hinzen, Kose John, Fahad Saleh “Bitcoin’s Limited Adoption Problem” 2019. [Online]. Available: https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3334262 [Accessed: May 7, 2022]

Nathaniel Popper “Bitcoin Has Lost Steam. But Criminals Still Love It.” 2020. [Online]. Available: https://www.nytimes.com/2020/01/28/technology/bitcoin-black-market.html [Accessed: May 7, 2022]

Kirk Baird, Seongho Jeong, Yeonsoo Kim, Bernd Burgstaller, Bernhard Scholz “The Economics of Smart Contracts” 2019. [Online]. Available: https://arxiv.org/abs/1910.11143 [Accessed: May 7, 2022]

Vitalik Buterin “Ethereum: A Next-Generation Smart Contract and Decentralized Application Platform” 2014. [Online]. Available: https://ethereum.org/en/whitepaper/ [Accessed: May 7, 2022]

Paul Apostolicas, Jaya Nayar “Explaining Ethereum: Interview with Vitalik Buterin (Part 1)” 2021. Harvard international review

Curated directory of decentralized applications “State of the DApps”. 2022. [Online]. Available: https://www.stateofthedapps.com/stats/platform/ethereum [Accessed: May 7, 2022]

TVL aggregator for DeFi “DefiLlama”. 2022. [Online]. Available: https://defillama.com/ [Accessed: May 7, 2022]

Friedhelm Victor, Andrea Marie Weintraud “Detecting and Quantifying Wash Trading on Decentralized Cryptocurrency Exchanges” 2021. [Online]. Available: https://arxiv.org/abs/2102.07001 [Accessed: May 7, 2022]

Foundation LXL Legal Counsel at Interstellar and Stellar Development. “Deconstructing Decentralized Exchanges” 2019. Stanford Journal of Blockchain Law & Policy. [Online]. Available: https://stanford-jblp.pubpub.org/pub/deconstructing-dex [Accessed: May 7, 2022]

Hayden Adams “A short history of Uniswap” 2019. [Online]. Available: https://uniswap.org/blog/uniswap-history [Accessed: May 7, 2022]

Vitalik Buterin “On Path Independence” 2017. [Online]. Available: https://vitalik.ca/general/2017/06/22/marketmakers.html [Accessed: May 7, 2022]

Jiahua Xu, Krzysztof Paruch, Simon Cousaert, Yebo Feng “SoK: Decentralized Exchanges (DEX) with Automated Market Maker (AMM) Protocols” 2021. [Online]. Available: https://arxiv.org/abs/2103.12732 [Accessed: May 9, 2022]

Hayden Adams, Noah Zinsmeister, Dan Robinson “Uniswap v2 Core” 2020. [Online]. Available: https://uniswap.org/whitepaper.pdf [Accessed: May 9, 2022]

Hayden Adams, Noah Zinsmeister, Moody Salem, River Keefer, Dan Robinson “Uniswap v3 Core” 2021. [Online]. Available: https://uniswap.org/whitepaper-v3.pdf [Accessed: May 9, 2022]

Alexander Port, Neelesh Tiruviluamala “Mixing Constant Sum and Constant Product Market Makers” 2022. [Online]. Available: https://arxiv.org/abs/2203.12123 [Accessed: May 9, 2022]

Alex Evans “Liquidity Provider Returns in Geometric Mean Markets” 2020. [Online]. Available: https://arxiv.org/abs/2006.08806 [Accessed: May 9, 2022]

Jun Aoyagi “Liquidity Provision by Automated Market Makers” 2020. [Online]. Available: https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3674178 [Accessed: May 9, 2022]

“Binance Terms of Use” 2022. [Online]. Available: https://www.binance.com/en/terms [Accessed: May 9, 2022]

Philip Daian, Steven Goldfeder, Tyler Kell, Yunqi Li, Xueyuan Zhao, Iddo Bentov, Lorenz Breidenbach, Ari Juels “Flash Boys 2.0: Frontrunning, Transaction Reordering, and Consensus Instability in Decentralized Exchanges” 2019. [Online]. Available: https://arxiv.org/abs/1904.05234 [Accessed: May 8, 2022]

Kaihua Qin, Liyi Zhou, Benjamin Livshits, and Arthur Gervais “Attacking the DeFi Ecosystem with Flash Loans for Fun and Profit” 2021. [Online]. Available: https://arxiv.org/abs/2003.03810 [Accessed: May 8, 2022]

Gordon Liao, Dan Robinson “The Dominance of Uniswap v3 Liquidity” 2022. [Online]. Available: https://uniswap.org/blog/uniswap-v3-dominance [Accessed: May 8, 2022]

Andreas A. Aigner, Gurvinder Dhaliwal “UNISWAP: Impermanent Loss and Risk Profile of a Liquidity Provider” 2021. [Online]. Available: https://arxiv.org/abs/2106.14404 [Accessed: May 9, 2022]

Lily Francus, Tarun Chitra, David Hamilton, Matt Dobel “Block by Block: Assessing Risk in Decentralized Finance” 2022. [Online]. Available: https://www.moodysanalytics.com/articles/2021/block_by_block_assessing_risk_in_decentralized_finance [Accessed: May 9, 2022]

Ye Wang, Yan Chen, Shuiguang Deng, and Roger Wattenhofer “Cyclic Arbitrage in Decentralized Exchange Markets” 2021. [Online]. Available: https://arxiv.org/abs/2105.02784 [Accessed: May 7, 2022]

Markus Waas “Using the new Uniswap v2 as oracle in your contracts” 2021. [Online]. Available: https://soliditydeveloper.com/uniswap-oracle [Accessed: May 9, 2022]

Martin Abbatemarco “Smart Contract Security Guidelines #3: The Dangers of Price Oracles” 2021. [Online]. Available: https://blog.openzeppelin.com/secure-smart-contract-guidelines-the-dangers-of-price-oracles/ [Accessed: May 9, 2022]

Giulio Caldarelli, Joshua Ellul “The Blockchain Oracle Problem in Decentralized Finance - A Multivocal Approach” 2021. [Online]. Available: https://www.researchgate.net/publication/353183034_The_Blockchain_Oracle_Problem_in_Decentralized_Finance_-_A_Multivocal_Approach [Accessed: May 8, 2022]

Torgin Mackinga, Tejaswi Nadahalli, Roger Wattenhofer “TWAP Oracle Attacks: Easier Done than Said?” 2022. [Online]. Available: https://eprint.iacr.org/2022/445.pdf [Accessed: May 8, 2022]

Adrianne Jeffries “Inside the bizarre upside-down bankruptcy of Mt. Gox” 2018. [Online]. Available: https://www.theverge.com/2018/3/22/17151430/bankruptcy-mt-gox-liabilities-bitcoin [Accessed: May 10, 2022]

Selin Sezer, Clemens Eyhof, Wolfgang Prinz, Thomas Rose “Exploiting Smart Contract Bytecode for Classification on Ethereum” 2020. [Online] Available: https://www.semanticscholar.org/paper/Exploiting-Smart-Contract-Bytecode-for-on-Ethereum-Sezer-Eyhoff/2ae99e4f8d29d1f41fe531f4428fa7c8fa73941f [Accessed: May 10, 2022]

Samuel Falkon “The Story of the DAO — Its History and Consequences” 2017. [Online] Available: https://medium.com/swlh/the-story-of-the-dao-its-history-and-consequences-71e6a8a551ee [Accessed: May 10, 2022]

Macauley Peterson “Algo Stablecoin Protocol Beanstalk Cut Down by Governance Hijack” 2022. [Online] Available: https://blockworks.co/algo-stablecoin-protocol-beanstalk-cut-down-by-governance-hijack/ [Accessed: May 10, 2022]

PeckShield “bZx Hack Full Disclosure (With Detailed Profit Analysis)” 2020. [Online]. Available: https://peckshield.medium.com/bzx-hack-full-disclosure-with-detailed-profit-analysis-e6b1fa9b18fc [Accessed: May 10, 2022]

Ardit Dika, Mariusz Nowostawski “Security Vulnerabilities in Ethereum Smart Contracts” 2018. [Online]. Available: https://www.researchgate.net/publication/333590995_Security_Vulnerabilities_in_Ethereum_Smart_Contracts [Accessed: May 10, 2022]

Eduardo Freitas “How to Unstick Stuck Transactions in MetaMask” 2021. [Online]. Available: https://medium.com/kogecoin/how-to-unstick-stuck-transactions-in-metamask-b23228a0a429 [Accessed: May 9, 2022]

David Schatsky, Amanpreet Arora, Aniket Dongre “Blockchain and the five vectors of progress” 2018. [Online]. Available: https://www2.deloitte.com/us/en/insights/focus/signals-for-strategists/value-of-blockchain-applications-interoperability.html [Accessed: May 9, 2022]

Markus Waas “SushiSwap Explained!” 2021. [Online]. Available: https://soliditydeveloper.com/sushi-swap [Accessed: May 9, 2022]

Source code of PancakeSwap smart contracts. 2022. [Online]. Available: https://github.com/pancakeswap/pancake-smart-contracts [Accessed: May 9, 2022]

Johannes Rude Jensen, Mohsen Pourpouneh, Kurt Nielsen, Omri Ross “The Homogenous Properties of Automated Market Makers” 2021. [Online]. Available: https://arxiv.org/abs/2105.02782 [Accessed: May 9, 2022]

Public Rest API for Binance. 2022. [Online]. Available: https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md [Accessed: May 9, 2022]

Michael Neuder, Rithvik Rao, Daniel J. Moroz, David C. Parkes “Strategic Liquidity Provision in Uniswap v3” 2021. [Online]. Available: https://arxiv.org/abs/2106.12033 [Accessed: May 9, 2022]

Shayan Eskandari, Seyedehmahsa Moosavi, Jeremy Clark “SoK: Transparent Dishonesty: front-running attacks on Blockchain” 2019. [Online]. Available: https://arxiv.org/abs/1902.05164 [Accessed: May 9, 2022]

Christof Ferreira Torres, Ramiro Camino, Radu State “Frontrunner Jones and the Raiders of the Dark Forest: An Empirical Study of Frontrunning on the Ethereum Blockchain” 2021. [Online]. Available: https://arxiv.org/abs/2102.03347 [Accessed: May 9, 2022]

Dave Michaels, Alexander Osipovich “Regulators Investigate Crypto-Exchange Developer Uniswap Labs” [Online]. Available: https://www.wsj.com/articles/regulators-investigate-crypto-exchange-developer-uniswap-labs-11630666800 [Accessed: May. 1, 2022].

Max Dilendorf, Kareem Tabba “Uniswap – An illusion of decentralization?” 2021. [Online]. Available: https://dilendorf.com/resources/uniswap-an-illusion-of-decentralization.html [Accessed: May. 1, 2022].

Nikhilesh De “Uniswap Launches Governance Token in Bid to Keep Up with Rival AMM SushiSwap” 2020. [Online]. Available: https://www.coindesk.com/markets/2020/09/17/uniswap-launches-governance-token-in-bid-to-keep-up-with-rival-amm-sushiswap/ [Accessed: May 1, 2022]

Kyle Bersani “Separating Governance Tokens from Securities: How the Utility Token May Fall Short of the Investment Contract” 2022. Cardozo Law Rev., Volume 43 Issue 3

Uniswap Blog “Introducing UNI” 2020. [Online]. Available: https://uniswap.org/blog/uni [Accessed: May 1, 2022]

Liesl Eichholz “The UNI Token: Is Uniswap Really Decentralized?” 2020. [Online]. Available: https://insights.glassnode.com/uni-token-is-uniswap-really-decentralized/ [Accessed: May 1, 2022]

“BlockFi Agrees to Pay $100 Million in Penalties and Pursue Registration of its Crypto Lending Product” 2022. [Online]. Available: https://www.sec.gov/news/press-release/2022-26 [Accessed: May. 1, 2022].

“SEC Charges EtherDelta Founder with Operating an Unregistered Exchange” 2018. [Online]. Available: https://www.sec.gov/news/press-release/2018-258 [Accessed: May. 1, 2022].

“Uniswap Labs Terms of Service” 2022. [Online]. Available: https://uniswap.org/terms-of-service [Accessed: May. 1, 2022].

“Uniswap protocol disclaimer” 2022. [Online]. Available: https://uniswap.org/disclaimer [Accessed: May. 1, 2022].

Sarah Aberg, Pouneh Almasi “SEC Proposed Amendments Could Significantly Impact DeFi Companies” 2022. [Online]. Available: https://www.corporatesecuritieslawblog.com/2022/02/sec-proposed-amendments-could-significantly-impact-defi-companies/ [Accessed: May 1, 2022]

Ross Bulat “Uniswap V2: Everything New with the Decentralised Exchange” 2020. [Online]. Available: https://rossbulat.medium.com/uniswap-v2-everything-new-with-the-decentralised-exchange-52b4bb2093ab [Accessed: May 1, 2022]

Hayden Adams “Uniswap Whitepaper (v1)” 2018. [Online]. Available: https://hackmd.io/@HaydenAdams/HJ9jLsfTz [Accessed: May 1, 2022]

Hayden Adams (haydenzadams) “In fact majority of volume doesn’t come through http://app.uniswap.org today. This is due to a proliferation of on-chain integrations and alternative interfaces including: Trading bots, Wallets, Interface forks (due to OSS interface), Other interfaces, DEX Aggregators“ 2021. [Online]. Available: https://twitter.com/haydenzadams/status/1418962001989185538 [Accessed: May 1, 2022]

Steven Ehrlich “SEC Signs Deal to Investigate DeFi Transactions” 2021. [Online]. Available: https://www.forbes.com/sites/stevenehrlich/2021/08/27/sec-signs-deal-to-investigate-defi-transactions/?sh=1a4a9de6787c [Accessed: May 1, 2022]

Jonathan Vanian “Some venture capitalists are shifting their focus and funds away from A.I. to Web3 and DeFi” 2022. [Online]. Available: https://fortune.com/2022/03/29/web3-defi-artificial-intelligence-funding/ [Accessed: May 9, 2022]

David Z Morris “An Ape Ain’t Free: In Defense of Ethereum’s Fees” 2022. [Online]. Available: https://www.coindesk.com/layer2/2022/05/03/an-ape-aint-free-in-defense-of-ethereums-fees/ [Accessed: May 9, 2022]

Scaling overview. Ethereum Development Documentation. 2022. [Online]. Available: https://ethereum.org/en/developers/docs/scaling/ [Accessed: May 9, 2022]

Downloads

Published

2023-01-09

How to Cite

[1]
N. Koroļkovs and S. Kodors, “UNISWAP - A CASE STUDY OF DECENTRALIZED EXCHANGES ON THE BLOCKCHAIN”, HET, no. 26, pp. 25–30, Jan. 2023, doi: 10.17770/het2022.26.6950.