{
  "id": "2023/1338",
  "url": "https://opencryptology.org/2023/1338",
  "original_url": "https://eprint.iacr.org/2023/1338",
  "title": "Lanturn: Measuring Economic Security of Smart Contracts Through Adaptive Learning",
  "authors": [
    "Kushal Babel",
    "Mojan Javaheripi",
    "Yan Ji",
    "Mahimna Kelkar",
    "Farinaz Koushanfar",
    "Ari Juels"
  ],
  "affiliations": null,
  "abstract": "We introduce Lanturn: a general purpose adaptive learning-based framework for measuring the cryptoeconomic security of composed decentralized-finance (DeFi) smart contracts. Lanturn discovers strategies comprising of concrete transactions for extracting economic value from smart contracts interacting with a particular transaction environment. We formulate the strategy discovery as a black-box optimization problem and leverage a novel adaptive learning-based algorithm to address it.\nLanturn features three key properties. First, it needs no contract-specific heuristics or reasoning, due to our black-box formulation of cryptoeconomic security. Second, it utilizes a simulation framework that operates natively on blockchain state and smart contract machine code, such that transactions returned by Lanturn’s learning-based optimization engine can be executed on-chain without modification. Finally, Lanturn is scalable in that it can explore strategies comprising a large number of transactions that can be reordered or subject to insertion of new transactions.\nWe evaluate Lanturn on the historical data of the biggest and most active DeFi Applications: Sushiswap, UniswapV2, UniswapV3, and AaveV2. Our results show that Lanturn not only rediscovers existing, well-known strategies for extracting value from smart contracts, but also discovers new strategies that are previously undocumented. Lanturn also consistently discovers higher value than evidenced in the wild, surpassing a natural baseline computed using value extracted by bots and other strategic agents.",
  "category": "Applications",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Lanturn: Measuring Economic Security of Smart Contracts Through Adaptive Learning” by Kushal Babel, Mojan Javaheripi, Yan Ji, Mahimna Kelkar, Farinaz Koushanfar, Ari Juels, Cryptology ePrint Archive, Paper 2023/1338, https://eprint.iacr.org/2023/1338. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2023-09-07T22:47:45Z",
    "updated": "2023-09-07T22:47:45Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2023/1338.pdf",
    "sha256": "95522c0880db3b272f874dec8ece44ecf32d28b821b8f7f4b90de31cf883a5c9",
    "size": 1404193,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:41Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "eprint_size": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2023/1338/versions/20240114T061341Z.pdf",
      "captured_at": "2024-01-14T06:13:41Z",
      "label": "copy captured 2024-01-14",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2023/1338.pdf",
      "size": 1404193,
      "sha256": "95522c0880db3b272f874dec8ece44ecf32d28b821b8f7f4b90de31cf883a5c9",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20251125010131id_/https://eprint.iacr.org/2023/1338.pdf",
      "captured_at": "2025-11-25T01:01:31Z",
      "size": 1387573
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2023/1338.pdf",
      "captured_at": "2024-01-14T06:13:41Z",
      "size": 1404193
    }
  ],
  "bibtex": "@misc{cryptoeprint:2023/1338,\n      author = {Kushal Babel and Mojan Javaheripi and Yan Ji and Mahimna Kelkar and Farinaz Koushanfar and Ari Juels},\n      title = {Lanturn: Measuring Economic Security of Smart Contracts Through Adaptive Learning},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2023/1338},\n      year = {2023},\n      url = {https://eprint.iacr.org/2023/1338}\n}"
}
