Paper 2023/892
Suboptimality in DeFi
Abstract
The decentralized finance (DeFi) ecosystem has proven to be popular in facilitating financial operations, such as token exchange and lending. The public availability of DeFi platforms’ code, together with real-time data on all user interactions with them, has given rise to complex tools that find and seize profit opportunities on behalf of users. In this work, we show that both users and the aforementioned tools sometimes act suboptimally: their profits can be increased by more than 100%, with the highest amount of missed revenue by a suboptimal action reaching 428.14ETH ($517K). To reach these findings, we examine core DeFi primitives used by over 850 platforms that are responsible for a daily volume of more than 100 million USD in Ethereum alone: (1) lending and borrowing funds, (2) using flashswaps to close arbitrage opportunities between decentralized exchanges (DEXs), (3) liquidation of insolvent loans using flashswaps, which combines the previous two. The profit that can be made from each primitive is then cast as an optimization problem that can be solved. We show that missed opportunities to make a profit are noticed by others and are sometimes followed by back-running transactions that extract profits using similar actions. By analyzing these events, we find that some transactions are circumstantially tied to specific miners and hypothesize that they use their knowledge of private orderflow for a profit. Essentially, this is an instance of miner-extractable value (MEV) "in action".
Note: Accepted to the 4th Annual CBER Conference.
Metadata
- Available format(s)
- Category
- Applications
- Publication info
- Preprint.
- Keywords
- CryptocurrencyBlockchainDeFiDecentralized FinanceMiner Extractable ValueLendingExchanges
- Contact author(s)
-
aviv yaish @ mail huji ac il
mayadotan @ mail huji ac il
kaihua @ qin ac
avivz @ cs huji ac il
arthur @ gervais cc - History
- 2024-05-22: last of 3 revisions
- 2023-06-09: received
- See all versions
- Short URL
- https://ia.cr/2023/892
- License
-
CC BY
BibTeX
@misc{cryptoeprint:2023/892, author = {Aviv Yaish and Maya Dotan and Kaihua Qin and Aviv Zohar and Arthur Gervais}, title = {Suboptimality in {DeFi}}, howpublished = {Cryptology {ePrint} Archive, Paper 2023/892}, year = {2023}, url = {https://eprint.iacr.org/2023/892} }