{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,3,30]],"date-time":"2026-03-30T04:57:47Z","timestamp":1774846667066,"version":"3.50.1"},"reference-count":54,"publisher":"Association for Computing Machinery (ACM)","issue":"2","license":[{"start":{"date-parts":[[2023,3,27]],"date-time":"2023-03-27T00:00:00Z","timestamp":1679875200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["ACM Trans. Web"],"published-print":{"date-parts":[[2023,5,31]]},"abstract":"<jats:p>We present a measurement study on compositions of Decentralized Finance (DeFi) protocols, which aim to disrupt traditional finance and offer services on top of distributed ledgers, such as Ethereum. Understanding DeFi compositions is of great importance, as they may impact the development of ecosystem interoperability, are increasingly integrated with web technologies, and may introduce risks through complexity. Starting from a dataset of 23 labeled DeFi protocols and 10,663,881 associated Ethereum accounts, we study the interactions of protocols and associated smart contracts. From a network perspective, we find that decentralized exchange (DEX) and lending protocol account nodes have high degree and centrality values, that interactions among protocol nodes primarily occur in a strongly connected component, and that known community detection methods cannot disentangle DeFi protocols. Therefore, we propose an algorithm to decompose a protocol call into a nested set of building blocks that may be part of other DeFi protocols. This allows us to untangle and study protocol compositions. With a ground truth dataset that we have collected, we can demonstrate the algorithm\u2019s capability by finding that swaps are the most frequently used building blocks. As building blocks can be nested, that is, contained in each other, we provide visualizations of composition trees for deeper inspections. We also present a broad picture of DeFi compositions by extracting and flattening the entire nested building block structure across multiple DeFi protocols. Finally, to demonstrate the practicality of our approach, we present a case study that is inspired by the recent collapse of the UST stablecoin in the Terra ecosystem. Under the hypothetical assumption that the stablecoin USD Tether would experience a similar fate, we study which building blocks \u2014 and, thereby, DeFi protocols \u2014 would be affected. Overall, our results and methods contribute to a better understanding of a new family of financial products.<\/jats:p>","DOI":"10.1145\/3532857","type":"journal-article","created":{"date-parts":[[2022,10,8]],"date-time":"2022-10-08T13:04:23Z","timestamp":1665234263000},"page":"1-26","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":60,"title":["Disentangling Decentralized Finance (DeFi) Compositions"],"prefix":"10.1145","volume":"17","author":[{"ORCID":"https:\/\/orcid.org\/0000-0001-8454-167X","authenticated-orcid":false,"given":"Stefan","family":"Kitzler","sequence":"first","affiliation":[{"name":"Complexity Science Hub Vienna and AIT - Austrian Institute of Technology, Giefinggasse, Vienna, Austria"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-8329-3133","authenticated-orcid":false,"given":"Friedhelm","family":"Victor","sequence":"additional","affiliation":[{"name":"Technische Universit\u00e4t Berlin, Berlin, Germany"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-7387-0846","authenticated-orcid":false,"given":"Pietro","family":"Saggese","sequence":"additional","affiliation":[{"name":"Complexity Science Hub Vienna and AIT - Austrian Institute of Technology, Giefinggasse, Vienna, Austria"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-0415-4491","authenticated-orcid":false,"given":"Bernhard","family":"Haslhofer","sequence":"additional","affiliation":[{"name":"Complexity Science Hub Vienna, Vienna, Austria"}]}],"member":"320","published-online":{"date-parts":[[2023,3,27]]},"reference":[{"key":"e_1_3_2_2_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-54455-6_8"},{"key":"e_1_3_2_3_2","volume-title":"The Origins of the Financial Crisis","author":"Baily Martin Neil","year":"2008","unstructured":"Martin Neil Baily, Robert E. Litan, and Matthew S. Johnson. 2008. The Origins of the Financial Crisis. Technical Report. Brookings Institution."},{"key":"e_1_3_2_4_2","doi-asserted-by":"publisher","DOI":"10.1126\/science.286.5439.509"},{"key":"e_1_3_2_5_2","doi-asserted-by":"publisher","DOI":"10.1145\/3471140"},{"key":"e_1_3_2_6_2","doi-asserted-by":"publisher","DOI":"10.1088\/1742-5468\/2008\/10\/P10008"},{"key":"e_1_3_2_7_2","doi-asserted-by":"publisher","DOI":"10.1038\/s41467-019-08746-5"},{"key":"e_1_3_2_8_2","doi-asserted-by":"publisher","DOI":"10.1145\/3381036"},{"key":"e_1_3_2_9_2","doi-asserted-by":"publisher","DOI":"10.1145\/3366423.3380215"},{"key":"e_1_3_2_10_2","doi-asserted-by":"publisher","DOI":"10.1137\/070710111"},{"key":"e_1_3_2_11_2","doi-asserted-by":"publisher","DOI":"10.1109\/SP40000.2020.00040"},{"key":"e_1_3_2_12_2","doi-asserted-by":"publisher","DOI":"10.1088\/1742-5468\/2005\/09\/P09008"},{"key":"e_1_3_2_13_2","unstructured":"DeFi Pulse. 2021. Total Value Locked (USD) in DeFi. Retrieved July 2021 from https:\/\/defipulse.com\/."},{"key":"e_1_3_2_14_2","article-title":"Composing networks of automated market makers","author":"Engel Daniel","year":"2021","unstructured":"Daniel Engel and Maurice Herlihy. 2021. Composing networks of automated market makers. arXiv preprint arXiv:2106.00083 (2021).","journal-title":"arXiv preprint arXiv:2106.00083"},{"key":"e_1_3_2_15_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-32101-7_7"},{"key":"e_1_3_2_16_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-51280-4_12"},{"key":"e_1_3_2_17_2","doi-asserted-by":"publisher","DOI":"10.1109\/CVCBT50464.2020.00005"},{"key":"e_1_3_2_18_2","doi-asserted-by":"publisher","DOI":"10.1145\/3419614.3423254"},{"key":"e_1_3_2_19_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.ins.2019.04.013"},{"key":"e_1_3_2_20_2","volume-title":"DeFi and the Future of Finance","author":"Harvey Campbell R.","year":"2021","unstructured":"Campbell R. Harvey, Ashwin Ramachandran, and Joey Santoro. 2021. DeFi and the Future of Finance. John Wiley & Sons."},{"key":"e_1_3_2_21_2","article-title":"Atomic cross-chain swaps","volume":"1801","author":"Herlihy Maurice","year":"2018","unstructured":"Maurice Herlihy. 2018. Atomic cross-chain swaps. CoRR abs\/1801.09515 (2018). arXiv:1801.09515. http:\/\/arxiv.org\/abs\/1801.09515.","journal-title":"CoRR"},{"key":"e_1_3_2_22_2","doi-asserted-by":"publisher","DOI":"10.1111\/jofi.12498"},{"issue":"2","key":"e_1_3_2_23_2","article-title":"(In)stability for the blockchain: Deleveraging spirals and stablecoin attacks","volume":"1","author":"Klages-Mundt Ariah","year":"2021","unstructured":"Ariah Klages-Mundt and Andreea Minca. 2021. (In)stability for the blockchain: Deleveraging spirals and stablecoin attacks. Cryptoeconomic Systems 1, 2 (Oct. 222021). https:\/\/cryptoeconomicsystems.pubpub.org\/pub\/klages-mundt-blockchain-instability.","journal-title":"Cryptoeconomic Systems"},{"key":"e_1_3_2_24_2","doi-asserted-by":"publisher","DOI":"10.1103\/PhysRevE.80.016118"},{"key":"e_1_3_2_25_2","doi-asserted-by":"publisher","DOI":"10.1145\/3366423.3380103"},{"key":"e_1_3_2_26_2","doi-asserted-by":"publisher","DOI":"10.1137\/1.9781611976236.59"},{"key":"e_1_3_2_27_2","article-title":"A first look into DeFi oracles","author":"Liu Bowen","year":"2020","unstructured":"Bowen Liu, Pawel Szalachowski, and Jianying Zhou. 2020. A first look into DeFi oracles. arXiv preprint arXiv:2005.04377 (2020).","journal-title":"arXiv preprint arXiv:2005.04377"},{"key":"e_1_3_2_28_2","doi-asserted-by":"publisher","DOI":"10.3390\/su14020913"},{"key":"e_1_3_2_29_2","doi-asserted-by":"publisher","DOI":"10.5555\/3283407"},{"key":"e_1_3_2_30_2","doi-asserted-by":"publisher","DOI":"10.1103\/PhysRevE.74.036104"},{"key":"e_1_3_2_31_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-86486-6_48"},{"key":"e_1_3_2_32_2","article-title":"Liquidations: DeFi on a knife-edge","author":"Perez Daniel","year":"2020","unstructured":"Daniel Perez, Sam M. Werner, Jiahua Xu, and Benjamin Livshits. 2020. Liquidations: DeFi on a knife-edge. arXiv preprint arXiv:2009.13235 (2020).","journal-title":"arXiv preprint arXiv:2009.13235"},{"key":"e_1_3_2_33_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-75762-5_3"},{"key":"e_1_3_2_34_2","doi-asserted-by":"publisher","DOI":"10.1002\/asi.4630270505"},{"key":"e_1_3_2_35_2","doi-asserted-by":"publisher","DOI":"10.1103\/PhysRevE.76.036106"},{"key":"e_1_3_2_36_2","unstructured":"Rahul Rai. 2022. The Death Spiral: How Terra\u2019s Algorithmic Stablecoin Came Crashing Down. Retrieved June 5 2022 from https:\/\/www.forbes.com\/sites\/rahulrai\/2022\/05\/17\/the-death-spiral-how-terras-algorithmic-stablecoin-came-crashing-down\/?sh=41275c6a71a2."},{"key":"e_1_3_2_37_2","doi-asserted-by":"publisher","DOI":"10.20955\/r.103.153-74"},{"key":"e_1_3_2_38_2","article-title":"Layer 2 blockchain scaling: A survey","author":"Sguanci Cosimo","year":"2021","unstructured":"Cosimo Sguanci, Roberto Spatafora, and Andrea Mario Vergani. 2021. Layer 2 blockchain scaling: A survey. arXiv preprint arXiv:2107.10881 (2021).","journal-title":"arXiv preprint arXiv:2107.10881"},{"key":"e_1_3_2_39_2","doi-asserted-by":"publisher","DOI":"10.1016\/j.jnca.2019.102471"},{"key":"e_1_3_2_40_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-96661-8_45"},{"key":"e_1_3_2_41_2","doi-asserted-by":"publisher","DOI":"10.1109\/ACCESS.2022.3200051"},{"key":"e_1_3_2_42_2","article-title":"Formal analysis of composable DeFi protocols","volume":"2103","author":"Tolmach Palina","year":"2021","unstructured":"Palina Tolmach, Yi Li, Shang-Wei Lin, and Yang Liu. 2021. Formal analysis of composable DeFi protocols. CoRR abs\/2103.00540. (2021). arXiv:2103.00540. https:\/\/arxiv.org\/abs\/2103.00540.","journal-title":"CoRR"},{"key":"e_1_3_2_43_2","doi-asserted-by":"publisher","DOI":"10.1038\/s41598-019-41695-z"},{"key":"e_1_3_2_44_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-030-32101-7_8"},{"key":"e_1_3_2_45_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-63958-0_9"},{"key":"e_1_3_2_46_2","doi-asserted-by":"publisher","DOI":"10.1145\/3457977.3460301"},{"key":"e_1_3_2_47_2","article-title":"SoK: Exploring blockchains interoperability","author":"Wang Gang","year":"2021","unstructured":"Gang Wang. 2021. SoK: Exploring blockchains interoperability. Cryptology ePrint Archive (2021).","journal-title":"Cryptology ePrint Archive"},{"key":"e_1_3_2_48_2","doi-asserted-by":"publisher","DOI":"10.1145\/3487553.3524201"},{"key":"e_1_3_2_49_2","article-title":"Behavior of liquidity providers in decentralized exchanges","author":"Wang Ye","year":"2021","unstructured":"Ye Wang, Lioba Heimbach, and Roger Wattenhofer. 2021. Behavior of liquidity providers in decentralized exchanges. arXiv preprint arXiv:2105.13822 (2021).","journal-title":"arXiv preprint arXiv:2105.13822"},{"key":"e_1_3_2_50_2","doi-asserted-by":"crossref","unstructured":"Sam M. Werner Daniel Perez Lewis Gudgeon Ariah Klages-Mundt Dominik Harz and William J. Knottenbelt. 2021. SoK: Decentralized Finance (DeFi). (2021). arxiv:cs.CR\/2101.08778.","DOI":"10.1145\/3558535.3559780"},{"key":"e_1_3_2_51_2","doi-asserted-by":"publisher","DOI":"10.1109\/ICDM.2012.139"},{"issue":"1","key":"e_1_3_2_52_2","first-page":"1","article-title":"A comparative analysis of community detection algorithms on artificial networks","volume":"6","author":"Yang Zhao","year":"2016","unstructured":"Zhao Yang, Ren\u00e9 Algesheimer, and Claudio J. Tessone. 2016. A comparative analysis of community detection algorithms on artificial networks. Scientific Reports 6, 1 (2016), 1\u201318.","journal-title":"Scientific Reports"},{"key":"e_1_3_2_53_2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-64331-0_1"},{"key":"e_1_3_2_54_2","doi-asserted-by":"publisher","DOI":"10.1093\/jfr\/fjaa010"},{"key":"e_1_3_2_55_2","doi-asserted-by":"publisher","DOI":"10.1145\/3442381.3449916"}],"container-title":["ACM Transactions on the Web"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3532857","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3532857","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T19:00:37Z","timestamp":1750186837000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3532857"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,3,27]]},"references-count":54,"journal-issue":{"issue":"2","published-print":{"date-parts":[[2023,5,31]]}},"alternative-id":["10.1145\/3532857"],"URL":"https:\/\/doi.org\/10.1145\/3532857","relation":{},"ISSN":["1559-1131","1559-114X"],"issn-type":[{"value":"1559-1131","type":"print"},{"value":"1559-114X","type":"electronic"}],"subject":[],"published":{"date-parts":[[2023,3,27]]},"assertion":[{"value":"2021-12-15","order":0,"name":"received","label":"Received","group":{"name":"publication_history","label":"Publication History"}},{"value":"2022-09-05","order":1,"name":"accepted","label":"Accepted","group":{"name":"publication_history","label":"Publication History"}},{"value":"2023-03-27","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}