Investigating Similarities Across Decentralized Financial (DeFi) Services

Junliang Luo, Stefan Kitzler, Pietro Saggese
3/23/2024
q-fin.STcs.LGq-fin.GN

No official code found. Best implementation: JunLLuo/DeFi-similarity (3 stars, Apache-2.0, last commit 2025-03-24).

Abstract

We explore the adoption of graph representation learning (GRL) algorithms to investigate similarities across services offered by Decentralized Finance (DeFi) protocols. Following existing literature, we use Ethereum transaction data to identify the DeFi building blocks. These are sets of protocol-specific smart contracts that are utilized in combination within single transactions and encapsulate the logic to conduct specific financial services such as swapping or lending cryptoassets. We propose a method to categorize these blocks into clusters based on their smart contract attributes and the graph structure of their smart contract calls. We employ GRL to create embedding vectors from building blocks and agglomerative models for clustering them. To evaluate whether they are effectively grouped in clusters of similar functionalities, we associate them with eight financial functionality categories and use this information as the target label. We find that in the best-case scenario purity reaches .888. We use additional information to associate the building blocks with protocol-specific target labels, obtaining comparable purity (.864) but higher V-Measure (.571); we discuss plausible explanations for this difference. In summary, this method helps categorize existing financial products offered by DeFi protocols, and can effectively automatize the detection of similar DeFi services, especially within protocols.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Graph representation learning-based code to cluster and categorize DeFi protocol building blocks.

30PythonNov 8, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{luo2024investigating,
  title  = {Investigating Similarities Across Decentralized Financial (DeFi) Services},
  author = {Junliang Luo and Stefan Kitzler and Pietro Saggese},
  year   = {2024},
  eprint = {2404.00034},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.00034v1}
}

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/2404.00034.svg)](https://codeofpaper.com/paper/2404.00034)

Discussion