UCL Discovery
UCL home » Library Services » Electronic resources » UCL Discovery

Detecting DeFi securities violations from token smart contract code

Trozze, Arianna; Kleinberg, Bennett; Davies, Toby; (2024) Detecting DeFi securities violations from token smart contract code. Financial Innovation , 10 (1) , Article 78. 10.1186/s40854-023-00572-5. Green open access

[thumbnail of Trozze et al. - 2024 - Detecting DeFi securities violations from token sm.pdf]
Preview
Text
Trozze et al. - 2024 - Detecting DeFi securities violations from token sm.pdf - Published Version

Download (2MB) | Preview

Abstract

Decentralized Finance (DeFi) is a system of financial products and services built and delivered through smart contracts on various blockchains. In recent years, DeFi has gained popularity and market capitalization. However, it has also been connected to crime, particularly various types of securities violations. The lack of Know Your Customer requirements in DeFi poses challenges for governments trying to mitigate potential offenses. This study aims to determine whether this problem is suited to a machine learning approach, namely, whether we can identify DeFi projects potentially engaging in securities violations based on their tokens’ smart contract code. We adapted prior works on detecting specific types of securities violations across Ethereum by building classifiers based on features extracted from DeFi projects’ tokens’ smart contract code (specifically, opcode-based features). Our final model was a random forest model that achieved an 80% F-1 score against a baseline of 50%. Notably, we further explored the code-based features that are the most important to our model’s performance in more detail by analyzing tokens’ Solidity code and conducting cosine similarity analyses. We found that one element of the code that our opcode-based features can capture is the implementation of the SafeMath library, although this does not account for the entirety of our features. Another contribution of our study is a new dataset, comprising (a) a verified ground truth dataset for tokens involved in securities violations and (b) a set of legitimate tokens from a reputable DeFi aggregator. This paper further discusses the potential use of a model like ours by prosecutors in enforcement efforts and connects it to a wider legal context.

Type: Article
Title: Detecting DeFi securities violations from token smart contract code
Open access status: An open access version is available from UCL Discovery
DOI: 10.1186/s40854-023-00572-5
Publisher version: http://dx.doi.org/10.1186/s40854-023-00572-5
Language: English
Additional information: Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
Keywords: Social Sciences, Business, Finance, Social Sciences, Mathematical Methods, Business & Economics, Mathematical Methods In Social Sciences, DeFi, Decentralized finance, Ethereum, Fraud, Cryptocurrency, Machine learning, Securities law
UCL classification: UCL
UCL > Provost and Vice Provost Offices > UCL BEAMS
UCL > Provost and Vice Provost Offices > UCL BEAMS > Faculty of Engineering Science
UCL > Provost and Vice Provost Offices > UCL BEAMS > Faculty of Engineering Science > Dept of Security and Crime Science
URI: https://discovery.ucl.ac.uk/id/eprint/10194112
Downloads since deposit
10Downloads
Download activity - last month
Download activity - last 12 months
Downloads by country - last 12 months

Archive Staff Only

View Item View Item