{
  "id": "2022/445",
  "url": "https://opencryptology.org/2022/445",
  "original_url": "https://eprint.iacr.org/2022/445",
  "title": "TWAP Oracle Attacks: Easier Done than Said?",
  "authors": [
    "Torgin Mackinga",
    "Tejaswi Nadahalli",
    "Roger Wattenhofer"
  ],
  "affiliations": null,
  "abstract": "Blockchain ``on-chain'' oracles are critical to the functioning of many Decentralized Finance (DeFi) protocols. We analyze these oracles for manipulation resistance. Specifically, we analyze the cost of manipulating on-chain time-weighted average price (TWAP) oracles that use the arithmetic mean. It has been assumed that manipulating a TWAP oracle with the well-known multi-block attack is expensive and scales linearly with the length of the TWAP. We question this assumption with two novel results. First, we describe a single-block attack that works under the same setting as the multi-block attack but costs less to execute. Second, we describe a multi-block MEV (MMEV) style attack where the attacker colludes with a miner/proposer who can mine/propose two blocks in a row. This MMEV style attack makes oracle manipulation orders of magnitude cheaper than previously known attacks. In the proof-of-work setting, MMEV can be done by selfish mining even with very low shares of hashpower.",
  "category": "Cryptographic protocols",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“TWAP Oracle Attacks: Easier Done than Said?” by Torgin Mackinga, Tejaswi Nadahalli, Roger Wattenhofer, Cryptology ePrint Archive, Paper 2022/445, https://eprint.iacr.org/2022/445. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2022-04-12T07:43:15Z",
    "updated": "2022-04-12T07:43:15Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2022/445.pdf",
    "sha256": "2b6563adb30b4eaaab6fb9839f9c01efd63bc9038e66f5533538e0ea8b91a724",
    "size": 319247,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:34Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2022/445/versions/20240114T061334Z.pdf",
      "captured_at": "2024-01-14T06:13:34Z",
      "label": "copy captured 2024-01-14",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2022/445.pdf",
      "size": 319247,
      "sha256": "2b6563adb30b4eaaab6fb9839f9c01efd63bc9038e66f5533538e0ea8b91a724",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260928065704id_/https://eprint.iacr.org/2022/445.pdf",
      "captured_at": "2026-09-28T06:57:04Z",
      "size": 320563
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2022/445.pdf",
      "captured_at": "2024-01-14T06:13:34Z",
      "size": 319247
    }
  ],
  "bibtex": "@misc{cryptoeprint:2022/445,\n      author = {Torgin Mackinga and Tejaswi Nadahalli and Roger Wattenhofer},\n      title = {TWAP Oracle Attacks: Easier Done than Said?},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2022/445},\n      year = {2022},\n      url = {https://eprint.iacr.org/2022/445}\n}"
}
