{
  "schemaVersion": 1,
  "videoId": "e3tlnLDI-5s",
  "videoUrl": "https://www.youtube.com/watch?v=e3tlnLDI-5s",
  "title": "Glamsterdam Hard Fork: When Spent Gas Comes Back",
  "speakerCredit": "Ioannis Sachinoglou",
  "programmeTalkId": "dss26-a5e972e19e21d05f",
  "language": "en",
  "captionType": "auto-generated",
  "humanAccuracyReviewed": false,
  "spokenAudioCompletenessVerified": false,
  "cueEndTimesAvailable": false,
  "source": {
    "provider": "YouTube",
    "method": "native browser transcript export",
    "sha256": "e335621c9656955c7b07746267ebb8706593a0a6400452488a3dec5d8f921c35",
    "exportedAt": "2026-11-16T07:36:41.138495+00:00"
  },
  "qualityCaveats": [
    "Names, organizations, technical terms, code and numbers may be misrecognized.",
    "Source wording and disfluencies are preserved; no editorial corrections were applied.",
    "Export contains whole-second cue starts only; cue ends and subsecond timing are unavailable.",
    "A full caption-track export does not establish that every spoken word is represented.",
    "Automatic YouTube captions; not human-verified against the audio."
  ],
  "timingValidation": {
    "first_cue_start_seconds": 3,
    "last_cue_start_seconds": 1489,
    "video_duration_seconds": 1491,
    "seconds_after_last_cue_start": 2,
    "cue_start_gaps_over_30_seconds": [],
    "boundary_check": "pass",
    "criterion": "first cue <=15 seconds; last cue start within 30 seconds of player duration, allowing 1-second precision",
    "meaning": "Timing plausibility only; silence/applause or source caption omissions require audio review."
  },
  "segments": [
    {
      "index": 0,
      "start_seconds": 3,
      "source_timestamp": "0:03",
      "end_seconds": null,
      "text": "Thank you."
    },
    {
      "index": 1,
      "start_seconds": 5,
      "source_timestamp": "0:05",
      "end_seconds": null,
      "text": "Welcome to my talk. I know it's late,"
    },
    {
      "index": 2,
      "start_seconds": 7,
      "source_timestamp": "0:07",
      "end_seconds": null,
      "text": "but I find the topic quite interesting."
    },
    {
      "index": 3,
      "start_seconds": 11,
      "source_timestamp": "0:11",
      "end_seconds": null,
      "text": "So I'll be talking about Glamsterdam"
    },
    {
      "index": 4,
      "start_seconds": 12,
      "source_timestamp": "0:12",
      "end_seconds": null,
      "text": "hard fork and how the changes in the gas"
    },
    {
      "index": 5,
      "start_seconds": 16,
      "source_timestamp": "0:16",
      "end_seconds": null,
      "text": "accounting introduced some bugs that"
    },
    {
      "index": 6,
      "start_seconds": 19,
      "source_timestamp": "0:19",
      "end_seconds": null,
      "text": "were not anticipated actually."
    },
    {
      "index": 7,
      "start_seconds": 21,
      "source_timestamp": "0:21",
      "end_seconds": null,
      "text": "And actually this led to the delay of"
    },
    {
      "index": 8,
      "start_seconds": 25,
      "source_timestamp": "0:25",
      "end_seconds": null,
      "text": "Glamsterdam as it won't be"
    },
    {
      "index": 9,
      "start_seconds": 28,
      "source_timestamp": "0:28",
      "end_seconds": null,
      "text": "postponed soon on Hoodie."
    },
    {
      "index": 10,
      "start_seconds": 31,
      "source_timestamp": "0:31",
      "end_seconds": null,
      "text": "But before I dive into the technical"
    },
    {
      "index": 11,
      "start_seconds": 33,
      "source_timestamp": "0:33",
      "end_seconds": null,
      "text": "details, let me give a little bit of"
    },
    {
      "index": 12,
      "start_seconds": 34,
      "source_timestamp": "0:34",
      "end_seconds": null,
      "text": "background about Chain Security. So we"
    },
    {
      "index": 13,
      "start_seconds": 37,
      "source_timestamp": "0:37",
      "end_seconds": null,
      "text": "are one of the OGs in the audit"
    },
    {
      "index": 14,
      "start_seconds": 41,
      "source_timestamp": "0:41",
      "end_seconds": null,
      "text": "space. We've been auditing smart"
    },
    {
      "index": 15,
      "start_seconds": 43,
      "source_timestamp": "0:43",
      "end_seconds": null,
      "text": "contracts since 2017 and as a matter of"
    },
    {
      "index": 16,
      "start_seconds": 46,
      "source_timestamp": "0:46",
      "end_seconds": null,
      "text": "fact we have audited some of the most"
    },
    {
      "index": 17,
      "start_seconds": 48,
      "source_timestamp": "0:48",
      "end_seconds": null,
      "text": "important DeFi protocols. And it's not"
    },
    {
      "index": 18,
      "start_seconds": 52,
      "source_timestamp": "0:52",
      "end_seconds": null,
      "text": "actually the first time that we are"
    },
    {
      "index": 19,
      "start_seconds": 54,
      "source_timestamp": "0:54",
      "end_seconds": null,
      "text": "delaying a hard fork. The same thing"
    },
    {
      "index": 20,
      "start_seconds": 56,
      "source_timestamp": "0:56",
      "end_seconds": null,
      "text": "happened in 2019"
    },
    {
      "index": 21,
      "start_seconds": 58,
      "source_timestamp": "0:58",
      "end_seconds": null,
      "text": "when we found a bug"
    },
    {
      "index": 22,
      "start_seconds": 61,
      "source_timestamp": "1:01",
      "end_seconds": null,
      "text": "in the Constantinople hard fork."
    },
    {
      "index": 23,
      "start_seconds": 65,
      "source_timestamp": "1:05",
      "end_seconds": null,
      "text": "So this is not"
    },
    {
      "index": 24,
      "start_seconds": 68,
      "source_timestamp": "1:08",
      "end_seconds": null,
      "text": "my work."
    },
    {
      "index": 25,
      "start_seconds": 69,
      "source_timestamp": "1:09",
      "end_seconds": null,
      "text": "It should be credited to Tongi and"
    },
    {
      "index": 26,
      "start_seconds": 72,
      "source_timestamp": "1:12",
      "end_seconds": null,
      "text": "Hubert who are two colleagues of mine"
    },
    {
      "index": 27,
      "start_seconds": 74,
      "source_timestamp": "1:14",
      "end_seconds": null,
      "text": "who had the idea to flip the question"
    },
    {
      "index": 28,
      "start_seconds": 78,
      "source_timestamp": "1:18",
      "end_seconds": null,
      "text": "that"
    },
    {
      "index": 29,
      "start_seconds": 79,
      "source_timestamp": "1:19",
      "end_seconds": null,
      "text": "people asked before."
    },
    {
      "index": 30,
      "start_seconds": 81,
      "source_timestamp": "1:21",
      "end_seconds": null,
      "text": "So the question was"
    },
    {
      "index": 31,
      "start_seconds": 84,
      "source_timestamp": "1:24",
      "end_seconds": null,
      "text": "the original question was"
    },
    {
      "index": 32,
      "start_seconds": 87,
      "source_timestamp": "1:27",
      "end_seconds": null,
      "text": "how does the Glamsterdam break some of"
    },
    {
      "index": 33,
      "start_seconds": 90,
      "source_timestamp": "1:30",
      "end_seconds": null,
      "text": "the honest work"
    },
    {
      "index": 34,
      "start_seconds": 93,
      "source_timestamp": "1:33",
      "end_seconds": null,
      "text": "on the blockchain? So the EF was already"
    },
    {
      "index": 35,
      "start_seconds": 97,
      "source_timestamp": "1:37",
      "end_seconds": null,
      "text": "aware that some of the transactions"
    },
    {
      "index": 36,
      "start_seconds": 99,
      "source_timestamp": "1:39",
      "end_seconds": null,
      "text": "would break in the way that I'll explain"
    },
    {
      "index": 37,
      "start_seconds": 102,
      "source_timestamp": "1:42",
      "end_seconds": null,
      "text": "later, but then"
    },
    {
      "index": 38,
      "start_seconds": 104,
      "source_timestamp": "1:44",
      "end_seconds": null,
      "text": "my colleagues asked, okay,"
    },
    {
      "index": 39,
      "start_seconds": 107,
      "source_timestamp": "1:47",
      "end_seconds": null,
      "text": "does the Glamsterdam hard fork introduce"
    },
    {
      "index": 40,
      "start_seconds": 110,
      "source_timestamp": "1:50",
      "end_seconds": null,
      "text": "some behaviors that allow for evil evil"
    },
    {
      "index": 41,
      "start_seconds": 113,
      "source_timestamp": "1:53",
      "end_seconds": null,
      "text": "work that was not possible before?"
    },
    {
      "index": 42,
      "start_seconds": 118,
      "source_timestamp": "1:58",
      "end_seconds": null,
      "text": "And actually this the"
    },
    {
      "index": 43,
      "start_seconds": 121,
      "source_timestamp": "2:01",
      "end_seconds": null,
      "text": "to this question turned out to be quite"
    },
    {
      "index": 44,
      "start_seconds": 123,
      "source_timestamp": "2:03",
      "end_seconds": null,
      "text": "interesting and that's why we'll we are"
    },
    {
      "index": 45,
      "start_seconds": 125,
      "source_timestamp": "2:05",
      "end_seconds": null,
      "text": "collaborating with the Ethereum"
    },
    {
      "index": 46,
      "start_seconds": 127,
      "source_timestamp": "2:07",
      "end_seconds": null,
      "text": "Foundation and we have found"
    },
    {
      "index": 47,
      "start_seconds": 130,
      "source_timestamp": "2:10",
      "end_seconds": null,
      "text": "a lot of instances"
    },
    {
      "index": 48,
      "start_seconds": 132,
      "source_timestamp": "2:12",
      "end_seconds": null,
      "text": "of issues"
    },
    {
      "index": 49,
      "start_seconds": 134,
      "source_timestamp": "2:14",
      "end_seconds": null,
      "text": "and we are in the process of"
    },
    {
      "index": 50,
      "start_seconds": 136,
      "source_timestamp": "2:16",
      "end_seconds": null,
      "text": "responsibly disclosing those issues."
    },
    {
      "index": 51,
      "start_seconds": 140,
      "source_timestamp": "2:20",
      "end_seconds": null,
      "text": "So before I start explaining"
    },
    {
      "index": 52,
      "start_seconds": 144,
      "source_timestamp": "2:24",
      "end_seconds": null,
      "text": "the details, let me give you a little"
    },
    {
      "index": 53,
      "start_seconds": 146,
      "source_timestamp": "2:26",
      "end_seconds": null,
      "text": "bit of an intro."
    },
    {
      "index": 54,
      "start_seconds": 148,
      "source_timestamp": "2:28",
      "end_seconds": null,
      "text": "So as you might know there"
    },
    {
      "index": 55,
      "start_seconds": 151,
      "source_timestamp": "2:31",
      "end_seconds": null,
      "text": "some smart contracts have the need to"
    },
    {
      "index": 56,
      "start_seconds": 153,
      "source_timestamp": "2:33",
      "end_seconds": null,
      "text": "continue executing after a failure has"
    },
    {
      "index": 57,
      "start_seconds": 156,
      "source_timestamp": "2:36",
      "end_seconds": null,
      "text": "happened."
    },
    {
      "index": 58,
      "start_seconds": 158,
      "source_timestamp": "2:38",
      "end_seconds": null,
      "text": "So if we want to introduce an attacker"
    },
    {
      "index": 59,
      "start_seconds": 160,
      "source_timestamp": "2:40",
      "end_seconds": null,
      "text": "model"
    },
    {
      "index": 60,
      "start_seconds": 162,
      "source_timestamp": "2:42",
      "end_seconds": null,
      "text": "what"
    },
    {
      "index": 61,
      "start_seconds": 163,
      "source_timestamp": "2:43",
      "end_seconds": null,
      "text": "we are looking for is essentially a"
    },
    {
      "index": 62,
      "start_seconds": 165,
      "source_timestamp": "2:45",
      "end_seconds": null,
      "text": "permissionless function that can be"
    },
    {
      "index": 63,
      "start_seconds": 167,
      "source_timestamp": "2:47",
      "end_seconds": null,
      "text": "front run by an attacker with lower gas."
    },
    {
      "index": 64,
      "start_seconds": 171,
      "source_timestamp": "2:51",
      "end_seconds": null,
      "text": "Why do we need lower gas? We need this"
    },
    {
      "index": 65,
      "start_seconds": 173,
      "source_timestamp": "2:53",
      "end_seconds": null,
      "text": "because when gas runs low all these"
    },
    {
      "index": 66,
      "start_seconds": 177,
      "source_timestamp": "2:57",
      "end_seconds": null,
      "text": "weird behaviors the unexpected behaviors"
    },
    {
      "index": 67,
      "start_seconds": 179,
      "source_timestamp": "2:59",
      "end_seconds": null,
      "text": "become"
    },
    {
      "index": 68,
      "start_seconds": 180,
      "source_timestamp": "3:00",
      "end_seconds": null,
      "text": "more apparent and then"
    },
    {
      "index": 69,
      "start_seconds": 183,
      "source_timestamp": "3:03",
      "end_seconds": null,
      "text": "funky things can happen."
    },
    {
      "index": 70,
      "start_seconds": 185,
      "source_timestamp": "3:05",
      "end_seconds": null,
      "text": "And actually there are a lot of smart"
    },
    {
      "index": 71,
      "start_seconds": 187,
      "source_timestamp": "3:07",
      "end_seconds": null,
      "text": "contracts that allow"
    },
    {
      "index": 72,
      "start_seconds": 190,
      "source_timestamp": "3:10",
      "end_seconds": null,
      "text": "our attackers model to to exist. For"
    },
    {
      "index": 73,
      "start_seconds": 193,
      "source_timestamp": "3:13",
      "end_seconds": null,
      "text": "example you can look at bridges or meta"
    },
    {
      "index": 74,
      "start_seconds": 195,
      "source_timestamp": "3:15",
      "end_seconds": null,
      "text": "transactions."
    },
    {
      "index": 75,
      "start_seconds": 197,
      "source_timestamp": "3:17",
      "end_seconds": null,
      "text": "Um"
    },
    {
      "index": 76,
      "start_seconds": 200,
      "source_timestamp": "3:20",
      "end_seconds": null,
      "text": "we're talking about external calls,"
    },
    {
      "index": 77,
      "start_seconds": 202,
      "source_timestamp": "3:22",
      "end_seconds": null,
      "text": "right? And"
    },
    {
      "index": 78,
      "start_seconds": 204,
      "source_timestamp": "3:24",
      "end_seconds": null,
      "text": "we need to think and we need to remind"
    },
    {
      "index": 79,
      "start_seconds": 206,
      "source_timestamp": "3:26",
      "end_seconds": null,
      "text": "ourselves first of all how gas works"
    },
    {
      "index": 80,
      "start_seconds": 208,
      "source_timestamp": "3:28",
      "end_seconds": null,
      "text": "with external calls. Here I'm over"
    },
    {
      "index": 81,
      "start_seconds": 210,
      "source_timestamp": "3:30",
      "end_seconds": null,
      "text": "simpli I'm simplifying. I hope I'm not"
    },
    {
      "index": 82,
      "start_seconds": 212,
      "source_timestamp": "3:32",
      "end_seconds": null,
      "text": "over simplifying."
    },
    {
      "index": 83,
      "start_seconds": 215,
      "source_timestamp": "3:35",
      "end_seconds": null,
      "text": "But essentially when we make an external"
    },
    {
      "index": 84,
      "start_seconds": 217,
      "source_timestamp": "3:37",
      "end_seconds": null,
      "text": "call we forward some gas."
    },
    {
      "index": 85,
      "start_seconds": 220,
      "source_timestamp": "3:40",
      "end_seconds": null,
      "text": "The default value is 63 over 64 as"
    },
    {
      "index": 86,
      "start_seconds": 223,
      "source_timestamp": "3:43",
      "end_seconds": null,
      "text": "defined by the EIP 150."
    },
    {
      "index": 87,
      "start_seconds": 226,
      "source_timestamp": "3:46",
      "end_seconds": null,
      "text": "When the call terminates we are sort of"
    },
    {
      "index": 88,
      "start_seconds": 229,
      "source_timestamp": "3:49",
      "end_seconds": null,
      "text": "guaranteed that at least one over 64 of"
    },
    {
      "index": 89,
      "start_seconds": 232,
      "source_timestamp": "3:52",
      "end_seconds": null,
      "text": "the gas we initially sent to the call is"
    },
    {
      "index": 90,
      "start_seconds": 234,
      "source_timestamp": "3:54",
      "end_seconds": null,
      "text": "left. So naively we can assume that if"
    },
    {
      "index": 91,
      "start_seconds": 239,
      "source_timestamp": "3:59",
      "end_seconds": null,
      "text": "the call ran out of gas then"
    },
    {
      "index": 92,
      "start_seconds": 242,
      "source_timestamp": "4:02",
      "end_seconds": null,
      "text": "when call returns, we still have one"
    },
    {
      "index": 93,
      "start_seconds": 245,
      "source_timestamp": "4:05",
      "end_seconds": null,
      "text": "over 64 of the available gas to continue"
    },
    {
      "index": 94,
      "start_seconds": 248,
      "source_timestamp": "4:08",
      "end_seconds": null,
      "text": "executing."
    },
    {
      "index": 95,
      "start_seconds": 251,
      "source_timestamp": "4:11",
      "end_seconds": null,
      "text": "So"
    },
    {
      "index": 96,
      "start_seconds": 252,
      "source_timestamp": "4:12",
      "end_seconds": null,
      "text": "to introduce"
    },
    {
      "index": 97,
      "start_seconds": 254,
      "source_timestamp": "4:14",
      "end_seconds": null,
      "text": "the first feature of 8037"
    },
    {
      "index": 98,
      "start_seconds": 259,
      "source_timestamp": "4:19",
      "end_seconds": null,
      "text": "so 8037 introduces this idea of cost per"
    },
    {
      "index": 99,
      "start_seconds": 262,
      "source_timestamp": "4:22",
      "end_seconds": null,
      "text": "state byte and they actually price this"
    },
    {
      "index": 100,
      "start_seconds": 265,
      "source_timestamp": "4:25",
      "end_seconds": null,
      "text": "at 1,500 per byte. So if you want to"
    },
    {
      "index": 101,
      "start_seconds": 268,
      "source_timestamp": "4:28",
      "end_seconds": null,
      "text": "consider called a store"
    },
    {
      "index": 102,
      "start_seconds": 271,
      "source_timestamp": "4:31",
      "end_seconds": null,
      "text": "to a fresh slot, then under Osaka the"
    },
    {
      "index": 103,
      "start_seconds": 275,
      "source_timestamp": "4:35",
      "end_seconds": null,
      "text": "the current"
    },
    {
      "index": 104,
      "start_seconds": 277,
      "source_timestamp": "4:37",
      "end_seconds": null,
      "text": "version of"
    },
    {
      "index": 105,
      "start_seconds": 278,
      "source_timestamp": "4:38",
      "end_seconds": null,
      "text": "Ethereum you one would pay something"
    },
    {
      "index": 106,
      "start_seconds": 280,
      "source_timestamp": "4:40",
      "end_seconds": null,
      "text": "around 22,000"
    },
    {
      "index": 107,
      "start_seconds": 282,
      "source_timestamp": "4:42",
      "end_seconds": null,
      "text": "but under Amsterdam"
    },
    {
      "index": 108,
      "start_seconds": 285,
      "source_timestamp": "4:45",
      "end_seconds": null,
      "text": "one pays"
    },
    {
      "index": 109,
      "start_seconds": 286,
      "source_timestamp": "4:46",
      "end_seconds": null,
      "text": "more than 100,000 right around 100"
    },
    {
      "index": 110,
      "start_seconds": 289,
      "source_timestamp": "4:49",
      "end_seconds": null,
      "text": "and 10,000 and the term at least the"
    },
    {
      "index": 111,
      "start_seconds": 293,
      "source_timestamp": "4:53",
      "end_seconds": null,
      "text": "97,000 comes exactly from this cost"
    },
    {
      "index": 112,
      "start_seconds": 297,
      "source_timestamp": "4:57",
      "end_seconds": null,
      "text": "the gas per byte right because it slot"
    },
    {
      "index": 113,
      "start_seconds": 300,
      "source_timestamp": "5:00",
      "end_seconds": null,
      "text": "on Ethereum is 64 bytes."
    },
    {
      "index": 114,
      "start_seconds": 303,
      "source_timestamp": "5:03",
      "end_seconds": null,
      "text": "I'll dive deeper into the the other term"
    },
    {
      "index": 115,
      "start_seconds": 305,
      "source_timestamp": "5:05",
      "end_seconds": null,
      "text": "later but yeah just to be precise"
    },
    {
      "index": 116,
      "start_seconds": 310,
      "source_timestamp": "5:10",
      "end_seconds": null,
      "text": "8037 has a brother the 8038 and some"
    },
    {
      "index": 117,
      "start_seconds": 315,
      "source_timestamp": "5:15",
      "end_seconds": null,
      "text": "some of the pricing is defined there but"
    },
    {
      "index": 118,
      "start_seconds": 317,
      "source_timestamp": "5:17",
      "end_seconds": null,
      "text": "I'll be mostly focusing on 8037."
    },
    {
      "index": 119,
      "start_seconds": 321,
      "source_timestamp": "5:21",
      "end_seconds": null,
      "text": "And this brings me already to the first"
    },
    {
      "index": 120,
      "start_seconds": 323,
      "source_timestamp": "5:23",
      "end_seconds": null,
      "text": "issue."
    },
    {
      "index": 121,
      "start_seconds": 326,
      "source_timestamp": "5:26",
      "end_seconds": null,
      "text": "So as I said"
    },
    {
      "index": 122,
      "start_seconds": 328,
      "source_timestamp": "5:28",
      "end_seconds": null,
      "text": "when the idea of"
    },
    {
      "index": 123,
      "start_seconds": 331,
      "source_timestamp": "5:31",
      "end_seconds": null,
      "text": "this EAP was introduced it became"
    },
    {
      "index": 124,
      "start_seconds": 334,
      "source_timestamp": "5:34",
      "end_seconds": null,
      "text": "apparent that some smart contracts will"
    },
    {
      "index": 125,
      "start_seconds": 336,
      "source_timestamp": "5:36",
      "end_seconds": null,
      "text": "break because the cost"
    },
    {
      "index": 126,
      "start_seconds": 339,
      "source_timestamp": "5:39",
      "end_seconds": null,
      "text": "of the operation increases."
    },
    {
      "index": 127,
      "start_seconds": 342,
      "source_timestamp": "5:42",
      "end_seconds": null,
      "text": "So there are a lot of smart contracts"
    },
    {
      "index": 128,
      "start_seconds": 344,
      "source_timestamp": "5:44",
      "end_seconds": null,
      "text": "out there as you can see in the in the"
    },
    {
      "index": 129,
      "start_seconds": 347,
      "source_timestamp": "5:47",
      "end_seconds": null,
      "text": "first example which define"
    },
    {
      "index": 130,
      "start_seconds": 350,
      "source_timestamp": "5:50",
      "end_seconds": null,
      "text": "some gas some budget on the gas and of"
    },
    {
      "index": 131,
      "start_seconds": 353,
      "source_timestamp": "5:53",
      "end_seconds": null,
      "text": "course this fails."
    },
    {
      "index": 132,
      "start_seconds": 356,
      "source_timestamp": "5:56",
      "end_seconds": null,
      "text": "This is fine. The interesting thing is"
    },
    {
      "index": 133,
      "start_seconds": 358,
      "source_timestamp": "5:58",
      "end_seconds": null,
      "text": "to to kind of"
    },
    {
      "index": 134,
      "start_seconds": 360,
      "source_timestamp": "6:00",
      "end_seconds": null,
      "text": "reverse"
    },
    {
      "index": 135,
      "start_seconds": 361,
      "source_timestamp": "6:01",
      "end_seconds": null,
      "text": "the view here."
    },
    {
      "index": 136,
      "start_seconds": 363,
      "source_timestamp": "6:03",
      "end_seconds": null,
      "text": "If"
    },
    {
      "index": 137,
      "start_seconds": 364,
      "source_timestamp": "6:04",
      "end_seconds": null,
      "text": "there is more gas"
    },
    {
      "index": 138,
      "start_seconds": 366,
      "source_timestamp": "6:06",
      "end_seconds": null,
      "text": "required to execute a call, this means"
    },
    {
      "index": 139,
      "start_seconds": 370,
      "source_timestamp": "6:10",
      "end_seconds": null,
      "text": "that a call can fail out of gas"
    },
    {
      "index": 140,
      "start_seconds": 374,
      "source_timestamp": "6:14",
      "end_seconds": null,
      "text": "when we supply even higher gas, right?"
    },
    {
      "index": 141,
      "start_seconds": 377,
      "source_timestamp": "6:17",
      "end_seconds": null,
      "text": "So this means"
    },
    {
      "index": 142,
      "start_seconds": 378,
      "source_timestamp": "6:18",
      "end_seconds": null,
      "text": "when the call returns from an out of gas"
    },
    {
      "index": 143,
      "start_seconds": 381,
      "source_timestamp": "6:21",
      "end_seconds": null,
      "text": "failure, we will still have 164 but"
    },
    {
      "index": 144,
      "start_seconds": 384,
      "source_timestamp": "6:24",
      "end_seconds": null,
      "text": "since"
    },
    {
      "index": 145,
      "start_seconds": 386,
      "source_timestamp": "6:26",
      "end_seconds": null,
      "text": "since the gas we supplied is higher,"
    },
    {
      "index": 146,
      "start_seconds": 388,
      "source_timestamp": "6:28",
      "end_seconds": null,
      "text": "this means that now the gas we have is"
    },
    {
      "index": 147,
      "start_seconds": 391,
      "source_timestamp": "6:31",
      "end_seconds": null,
      "text": "also higher."
    },
    {
      "index": 148,
      "start_seconds": 392,
      "source_timestamp": "6:32",
      "end_seconds": null,
      "text": "So this means in the second example down"
    },
    {
      "index": 149,
      "start_seconds": 394,
      "source_timestamp": "6:34",
      "end_seconds": null,
      "text": "here"
    },
    {
      "index": 150,
      "start_seconds": 397,
      "source_timestamp": "6:37",
      "end_seconds": null,
      "text": "if if"
    },
    {
      "index": 151,
      "start_seconds": 398,
      "source_timestamp": "6:38",
      "end_seconds": null,
      "text": "I call"
    },
    {
      "index": 152,
      "start_seconds": 400,
      "source_timestamp": "6:40",
      "end_seconds": null,
      "text": "a token I make a low level call and I"
    },
    {
      "index": 153,
      "start_seconds": 403,
      "source_timestamp": "6:43",
      "end_seconds": null,
      "text": "consume a lot of gas"
    },
    {
      "index": 154,
      "start_seconds": 406,
      "source_timestamp": "6:46",
      "end_seconds": null,
      "text": "the implicit assumption up to Osaka was"
    },
    {
      "index": 155,
      "start_seconds": 410,
      "source_timestamp": "6:50",
      "end_seconds": null,
      "text": "that if the call runs out of gas then it"
    },
    {
      "index": 156,
      "start_seconds": 412,
      "source_timestamp": "6:52",
      "end_seconds": null,
      "text": "won't have enough gas"
    },
    {
      "index": 157,
      "start_seconds": 415,
      "source_timestamp": "6:55",
      "end_seconds": null,
      "text": "when it returns to emit an event, but"
    },
    {
      "index": 158,
      "start_seconds": 418,
      "source_timestamp": "6:58",
      "end_seconds": null,
      "text": "this assumption now breaks. So now"
    },
    {
      "index": 159,
      "start_seconds": 420,
      "source_timestamp": "7:00",
      "end_seconds": null,
      "text": "people are able"
    },
    {
      "index": 160,
      "start_seconds": 422,
      "source_timestamp": "7:02",
      "end_seconds": null,
      "text": "if they are able to front run of course"
    },
    {
      "index": 161,
      "start_seconds": 424,
      "source_timestamp": "7:04",
      "end_seconds": null,
      "text": "the call and provide the correct amount"
    },
    {
      "index": 162,
      "start_seconds": 427,
      "source_timestamp": "7:07",
      "end_seconds": null,
      "text": "of gas to spoof the emission of some"
    },
    {
      "index": 163,
      "start_seconds": 430,
      "source_timestamp": "7:10",
      "end_seconds": null,
      "text": "events. And here you can see that things"
    },
    {
      "index": 164,
      "start_seconds": 433,
      "source_timestamp": "7:13",
      "end_seconds": null,
      "text": "that look kind of straightforward start"
    },
    {
      "index": 165,
      "start_seconds": 435,
      "source_timestamp": "7:15",
      "end_seconds": null,
      "text": "to break a little bit."
    },
    {
      "index": 166,
      "start_seconds": 438,
      "source_timestamp": "7:18",
      "end_seconds": null,
      "text": "To execute the to to explain the second"
    },
    {
      "index": 167,
      "start_seconds": 441,
      "source_timestamp": "7:21",
      "end_seconds": null,
      "text": "issue, we first need to to dive a little"
    },
    {
      "index": 168,
      "start_seconds": 443,
      "source_timestamp": "7:23",
      "end_seconds": null,
      "text": "bit deeper"
    },
    {
      "index": 169,
      "start_seconds": 445,
      "source_timestamp": "7:25",
      "end_seconds": null,
      "text": "into the 8037."
    },
    {
      "index": 170,
      "start_seconds": 448,
      "source_timestamp": "7:28",
      "end_seconds": null,
      "text": "So"
    },
    {
      "index": 171,
      "start_seconds": 449,
      "source_timestamp": "7:29",
      "end_seconds": null,
      "text": "8037"
    },
    {
      "index": 172,
      "start_seconds": 451,
      "source_timestamp": "7:31",
      "end_seconds": null,
      "text": "allows"
    },
    {
      "index": 173,
      "start_seconds": 453,
      "source_timestamp": "7:33",
      "end_seconds": null,
      "text": "users to"
    },
    {
      "index": 174,
      "start_seconds": 454,
      "source_timestamp": "7:34",
      "end_seconds": null,
      "text": "specify higher gas for the transaction"
    },
    {
      "index": 175,
      "start_seconds": 458,
      "source_timestamp": "7:38",
      "end_seconds": null,
      "text": "that actually exceeds the TX max gas"
    },
    {
      "index": 176,
      "start_seconds": 460,
      "source_timestamp": "7:40",
      "end_seconds": null,
      "text": "limit that was introduced before."
    },
    {
      "index": 177,
      "start_seconds": 464,
      "source_timestamp": "7:44",
      "end_seconds": null,
      "text": "So any additional"
    },
    {
      "index": 178,
      "start_seconds": 466,
      "source_timestamp": "7:46",
      "end_seconds": null,
      "text": "gas that exceeds this cap is accounted"
    },
    {
      "index": 179,
      "start_seconds": 469,
      "source_timestamp": "7:49",
      "end_seconds": null,
      "text": "for this reservoir. So this is another"
    },
    {
      "index": 180,
      "start_seconds": 472,
      "source_timestamp": "7:52",
      "end_seconds": null,
      "text": "pool where we can"
    },
    {
      "index": 181,
      "start_seconds": 473,
      "source_timestamp": "7:53",
      "end_seconds": null,
      "text": "draw gas from"
    },
    {
      "index": 182,
      "start_seconds": 476,
      "source_timestamp": "7:56",
      "end_seconds": null,
      "text": "and I'll explain later how this is used."
    },
    {
      "index": 183,
      "start_seconds": 481,
      "source_timestamp": "8:01",
      "end_seconds": null,
      "text": "So the reservoir doesn't behave exactly"
    },
    {
      "index": 184,
      "start_seconds": 483,
      "source_timestamp": "8:03",
      "end_seconds": null,
      "text": "the same way as the normal gas left,"
    },
    {
      "index": 185,
      "start_seconds": 487,
      "source_timestamp": "8:07",
      "end_seconds": null,
      "text": "which is the part of the gas below the"
    },
    {
      "index": 186,
      "start_seconds": 493,
      "source_timestamp": "8:13",
      "end_seconds": null,
      "text": "gas left behaves still behaves exactly"
    },
    {
      "index": 187,
      "start_seconds": 495,
      "source_timestamp": "8:15",
      "end_seconds": null,
      "text": "as it used to,"
    },
    {
      "index": 188,
      "start_seconds": 496,
      "source_timestamp": "8:16",
      "end_seconds": null,
      "text": "but the reservoir is fully forwarded"
    },
    {
      "index": 189,
      "start_seconds": 500,
      "source_timestamp": "8:20",
      "end_seconds": null,
      "text": "during the external call."
    },
    {
      "index": 190,
      "start_seconds": 502,
      "source_timestamp": "8:22",
      "end_seconds": null,
      "text": "And interestingly,"
    },
    {
      "index": 191,
      "start_seconds": 505,
      "source_timestamp": "8:25",
      "end_seconds": null,
      "text": "the gas"
    },
    {
      "index": 192,
      "start_seconds": 507,
      "source_timestamp": "8:27",
      "end_seconds": null,
      "text": "opcode, the one that returns gas left,"
    },
    {
      "index": 193,
      "start_seconds": 509,
      "source_timestamp": "8:29",
      "end_seconds": null,
      "text": "only gives us the gas"
    },
    {
      "index": 194,
      "start_seconds": 511,
      "source_timestamp": "8:31",
      "end_seconds": null,
      "text": "left part of the gas we're using, not"
    },
    {
      "index": 195,
      "start_seconds": 514,
      "source_timestamp": "8:34",
      "end_seconds": null,
      "text": "the reservoir."
    },
    {
      "index": 196,
      "start_seconds": 516,
      "source_timestamp": "8:36",
      "end_seconds": null,
      "text": "This will become very interesting later."
    },
    {
      "index": 197,
      "start_seconds": 520,
      "source_timestamp": "8:40",
      "end_seconds": null,
      "text": "So"
    },
    {
      "index": 198,
      "start_seconds": 521,
      "source_timestamp": "8:41",
      "end_seconds": null,
      "text": "how do we use the reservoir?"
    },
    {
      "index": 199,
      "start_seconds": 523,
      "source_timestamp": "8:43",
      "end_seconds": null,
      "text": "The EIP starts to differentiate between"
    },
    {
      "index": 200,
      "start_seconds": 527,
      "source_timestamp": "8:47",
      "end_seconds": null,
      "text": "the execution gas and the state gas."
    },
    {
      "index": 201,
      "start_seconds": 530,
      "source_timestamp": "8:50",
      "end_seconds": null,
      "text": "The execution gas is charged by gas"
    },
    {
      "index": 202,
      "start_seconds": 532,
      "source_timestamp": "8:52",
      "end_seconds": null,
      "text": "left. It's what we are we are"
    },
    {
      "index": 203,
      "start_seconds": 536,
      "source_timestamp": "8:56",
      "end_seconds": null,
      "text": "all already familiar with."
    },
    {
      "index": 204,
      "start_seconds": 539,
      "source_timestamp": "8:59",
      "end_seconds": null,
      "text": "However, now whenever we create"
    },
    {
      "index": 205,
      "start_seconds": 543,
      "source_timestamp": "9:03",
      "end_seconds": null,
      "text": "state, first state,"
    },
    {
      "index": 206,
      "start_seconds": 546,
      "source_timestamp": "9:06",
      "end_seconds": null,
      "text": "we first try to charge the reservoir. If"
    },
    {
      "index": 207,
      "start_seconds": 550,
      "source_timestamp": "9:10",
      "end_seconds": null,
      "text": "the reservoir is not enough to cover for"
    },
    {
      "index": 208,
      "start_seconds": 552,
      "source_timestamp": "9:12",
      "end_seconds": null,
      "text": "the"
    },
    {
      "index": 209,
      "start_seconds": 554,
      "source_timestamp": "9:14",
      "end_seconds": null,
      "text": "state creation expenses,"
    },
    {
      "index": 210,
      "start_seconds": 556,
      "source_timestamp": "9:16",
      "end_seconds": null,
      "text": "then"
    },
    {
      "index": 211,
      "start_seconds": 557,
      "source_timestamp": "9:17",
      "end_seconds": null,
      "text": "there is a spillover"
    },
    {
      "index": 212,
      "start_seconds": 559,
      "source_timestamp": "9:19",
      "end_seconds": null,
      "text": "which essentially subtracts gas from gas"
    },
    {
      "index": 213,
      "start_seconds": 562,
      "source_timestamp": "9:22",
      "end_seconds": null,
      "text": "left. And in this case, we increase a"
    },
    {
      "index": 214,
      "start_seconds": 565,
      "source_timestamp": "9:25",
      "end_seconds": null,
      "text": "variable called state gas from gas left."
    },
    {
      "index": 215,
      "start_seconds": 568,
      "source_timestamp": "9:28",
      "end_seconds": null,
      "text": "Again, to make things clear, we only"
    },
    {
      "index": 216,
      "start_seconds": 571,
      "source_timestamp": "9:31",
      "end_seconds": null,
      "text": "care about freshly created storage. What"
    },
    {
      "index": 217,
      "start_seconds": 575,
      "source_timestamp": "9:35",
      "end_seconds": null,
      "text": "this means is that we care about slots"
    },
    {
      "index": 218,
      "start_seconds": 578,
      "source_timestamp": "9:38",
      "end_seconds": null,
      "text": "that were zero at the beginning of the"
    },
    {
      "index": 219,
      "start_seconds": 579,
      "source_timestamp": "9:39",
      "end_seconds": null,
      "text": "transaction"
    },
    {
      "index": 220,
      "start_seconds": 580,
      "source_timestamp": "9:40",
      "end_seconds": null,
      "text": "and"
    },
    {
      "index": 221,
      "start_seconds": 582,
      "source_timestamp": "9:42",
      "end_seconds": null,
      "text": "during the transaction we touch them and"
    },
    {
      "index": 222,
      "start_seconds": 584,
      "source_timestamp": "9:44",
      "end_seconds": null,
      "text": "we try to write on them."
    },
    {
      "index": 223,
      "start_seconds": 588,
      "source_timestamp": "9:48",
      "end_seconds": null,
      "text": "So to give you an example,"
    },
    {
      "index": 224,
      "start_seconds": 592,
      "source_timestamp": "9:52",
      "end_seconds": null,
      "text": "let's consider two operations only,"
    },
    {
      "index": 225,
      "start_seconds": 595,
      "source_timestamp": "9:55",
      "end_seconds": null,
      "text": "addition and an SStore to a first"
    },
    {
      "index": 226,
      "start_seconds": 598,
      "source_timestamp": "9:58",
      "end_seconds": null,
      "text": "variable. Unfortunately, it doesn't"
    },
    {
      "index": 227,
      "start_seconds": 599,
      "source_timestamp": "9:59",
      "end_seconds": null,
      "text": "render very well. In my slides, it was"
    },
    {
      "index": 228,
      "start_seconds": 602,
      "source_timestamp": "10:02",
      "end_seconds": null,
      "text": "better."
    },
    {
      "index": 229,
      "start_seconds": 604,
      "source_timestamp": "10:04",
      "end_seconds": null,
      "text": "But anyways, so"
    },
    {
      "index": 230,
      "start_seconds": 607,
      "source_timestamp": "10:07",
      "end_seconds": null,
      "text": "the addition doesn't touch any state,"
    },
    {
      "index": 231,
      "start_seconds": 609,
      "source_timestamp": "10:09",
      "end_seconds": null,
      "text": "right? So it only consume execution gas."
    },
    {
      "index": 232,
      "start_seconds": 613,
      "source_timestamp": "10:13",
      "end_seconds": null,
      "text": "The store on a fresh storage touch"
    },
    {
      "index": 233,
      "start_seconds": 616,
      "source_timestamp": "10:16",
      "end_seconds": null,
      "text": "touches state, the state gas, right? So"
    },
    {
      "index": 234,
      "start_seconds": 619,
      "source_timestamp": "10:19",
      "end_seconds": null,
      "text": "now we differentiate and we consume"
    },
    {
      "index": 235,
      "start_seconds": 622,
      "source_timestamp": "10:22",
      "end_seconds": null,
      "text": "100,000 from the state gas and 10,000"
    },
    {
      "index": 236,
      "start_seconds": 626,
      "source_timestamp": "10:26",
      "end_seconds": null,
      "text": "from the execution gas. Of course, all"
    },
    {
      "index": 237,
      "start_seconds": 628,
      "source_timestamp": "10:28",
      "end_seconds": null,
      "text": "these numbers are not precise. I'm just"
    },
    {
      "index": 238,
      "start_seconds": 630,
      "source_timestamp": "10:30",
      "end_seconds": null,
      "text": "using them"
    },
    {
      "index": 239,
      "start_seconds": 632,
      "source_timestamp": "10:32",
      "end_seconds": null,
      "text": "for my example."
    },
    {
      "index": 240,
      "start_seconds": 634,
      "source_timestamp": "10:34",
      "end_seconds": null,
      "text": "So"
    },
    {
      "index": 241,
      "start_seconds": 635,
      "source_timestamp": "10:35",
      "end_seconds": null,
      "text": "if we were to run a series of"
    },
    {
      "index": 242,
      "start_seconds": 638,
      "source_timestamp": "10:38",
      "end_seconds": null,
      "text": "operations, if we were to do an"
    },
    {
      "index": 243,
      "start_seconds": 640,
      "source_timestamp": "10:40",
      "end_seconds": null,
      "text": "addition, we know that the addition only"
    },
    {
      "index": 244,
      "start_seconds": 642,
      "source_timestamp": "10:42",
      "end_seconds": null,
      "text": "costs three gas, so we consume it from"
    },
    {
      "index": 245,
      "start_seconds": 644,
      "source_timestamp": "10:44",
      "end_seconds": null,
      "text": "gas left. Then the first S store on a"
    },
    {
      "index": 246,
      "start_seconds": 647,
      "source_timestamp": "10:47",
      "end_seconds": null,
      "text": "fresh lot we encounter, we can"
    },
    {
      "index": 247,
      "start_seconds": 652,
      "source_timestamp": "10:52",
      "end_seconds": null,
      "text": "we can consume it from state gas, the"
    },
    {
      "index": 248,
      "start_seconds": 655,
      "source_timestamp": "10:55",
      "end_seconds": null,
      "text": "100,000 part, and then because the S"
    },
    {
      "index": 249,
      "start_seconds": 658,
      "source_timestamp": "10:58",
      "end_seconds": null,
      "text": "store has an execution part, we consume"
    },
    {
      "index": 250,
      "start_seconds": 661,
      "source_timestamp": "11:01",
      "end_seconds": null,
      "text": "it from"
    },
    {
      "index": 251,
      "start_seconds": 662,
      "source_timestamp": "11:02",
      "end_seconds": null,
      "text": "we deduct it from the gas left."
    },
    {
      "index": 252,
      "start_seconds": 665,
      "source_timestamp": "11:05",
      "end_seconds": null,
      "text": "Now, if we have"
    },
    {
      "index": 253,
      "start_seconds": 667,
      "source_timestamp": "11:07",
      "end_seconds": null,
      "text": "a second operation, a S store operation"
    },
    {
      "index": 254,
      "start_seconds": 670,
      "source_timestamp": "11:10",
      "end_seconds": null,
      "text": "on another slot,"
    },
    {
      "index": 255,
      "start_seconds": 672,
      "source_timestamp": "11:12",
      "end_seconds": null,
      "text": "then the reservoir is not enough to"
    },
    {
      "index": 256,
      "start_seconds": 674,
      "source_timestamp": "11:14",
      "end_seconds": null,
      "text": "cover for the state gas. So we consume"
    },
    {
      "index": 257,
      "start_seconds": 677,
      "source_timestamp": "11:17",
      "end_seconds": null,
      "text": "as much we can from the reservoir and"
    },
    {
      "index": 258,
      "start_seconds": 679,
      "source_timestamp": "11:19",
      "end_seconds": null,
      "text": "the rest we consume"
    },
    {
      "index": 259,
      "start_seconds": 683,
      "source_timestamp": "11:23",
      "end_seconds": null,
      "text": "out of the gas left."
    },
    {
      "index": 260,
      "start_seconds": 686,
      "source_timestamp": "11:26",
      "end_seconds": null,
      "text": "And because we spend gas to create"
    },
    {
      "index": 261,
      "start_seconds": 690,
      "source_timestamp": "11:30",
      "end_seconds": null,
      "text": "storage out of gas left, we increase"
    },
    {
      "index": 262,
      "start_seconds": 692,
      "source_timestamp": "11:32",
      "end_seconds": null,
      "text": "this state gas from gas left variable to"
    },
    {
      "index": 263,
      "start_seconds": 695,
      "source_timestamp": "11:35",
      "end_seconds": null,
      "text": "50,000 because we consumed 50,000 from"
    },
    {
      "index": 264,
      "start_seconds": 698,
      "source_timestamp": "11:38",
      "end_seconds": null,
      "text": "the reservoir and then the rest we"
    },
    {
      "index": 265,
      "start_seconds": 699,
      "source_timestamp": "11:39",
      "end_seconds": null,
      "text": "consume from the gas left."
    },
    {
      "index": 266,
      "start_seconds": 704,
      "source_timestamp": "11:44",
      "end_seconds": null,
      "text": "And now I think we are able to"
    },
    {
      "index": 267,
      "start_seconds": 706,
      "source_timestamp": "11:46",
      "end_seconds": null,
      "text": "understand the second issue."
    },
    {
      "index": 268,
      "start_seconds": 709,
      "source_timestamp": "11:49",
      "end_seconds": null,
      "text": "Assume we are trying to execute an"
    },
    {
      "index": 269,
      "start_seconds": 711,
      "source_timestamp": "11:51",
      "end_seconds": null,
      "text": "operation of a specific ID as long as"
    },
    {
      "index": 270,
      "start_seconds": 714,
      "source_timestamp": "11:54",
      "end_seconds": null,
      "text": "this operation is not settled."
    },
    {
      "index": 271,
      "start_seconds": 717,
      "source_timestamp": "11:57",
      "end_seconds": null,
      "text": "Then we execute"
    },
    {
      "index": 272,
      "start_seconds": 719,
      "source_timestamp": "11:59",
      "end_seconds": null,
      "text": "a low-level call and we forward 63/64"
    },
    {
      "index": 273,
      "start_seconds": 723,
      "source_timestamp": "12:03",
      "end_seconds": null,
      "text": "of the gas."
    },
    {
      "index": 274,
      "start_seconds": 726,
      "source_timestamp": "12:06",
      "end_seconds": null,
      "text": "And"
    },
    {
      "index": 275,
      "start_seconds": 727,
      "source_timestamp": "12:07",
      "end_seconds": null,
      "text": "we have defined we have given enough"
    },
    {
      "index": 276,
      "start_seconds": 729,
      "source_timestamp": "12:09",
      "end_seconds": null,
      "text": "gas, so there there is a lot of the"
    },
    {
      "index": 277,
      "start_seconds": 731,
      "source_timestamp": "12:11",
      "end_seconds": null,
      "text": "reservoir, right?"
    },
    {
      "index": 278,
      "start_seconds": 733,
      "source_timestamp": "12:13",
      "end_seconds": null,
      "text": "Pre"
    },
    {
      "index": 279,
      "start_seconds": 734,
      "source_timestamp": "12:14",
      "end_seconds": null,
      "text": "pre Amsterdam,"
    },
    {
      "index": 280,
      "start_seconds": 738,
      "source_timestamp": "12:18",
      "end_seconds": null,
      "text": "there are only two cases that are"
    },
    {
      "index": 281,
      "start_seconds": 739,
      "source_timestamp": "12:19",
      "end_seconds": null,
      "text": "possible."
    },
    {
      "index": 282,
      "start_seconds": 741,
      "source_timestamp": "12:21",
      "end_seconds": null,
      "text": "The call either succeeds and we set it"
    },
    {
      "index": 283,
      "start_seconds": 744,
      "source_timestamp": "12:24",
      "end_seconds": null,
      "text": "to done or it fails due to some logic"
    },
    {
      "index": 284,
      "start_seconds": 748,
      "source_timestamp": "12:28",
      "end_seconds": null,
      "text": "error"
    },
    {
      "index": 285,
      "start_seconds": 749,
      "source_timestamp": "12:29",
      "end_seconds": null,
      "text": "and we set it to failed."
    },
    {
      "index": 286,
      "start_seconds": 753,
      "source_timestamp": "12:33",
      "end_seconds": null,
      "text": "However, now there is a third"
    },
    {
      "index": 287,
      "start_seconds": 755,
      "source_timestamp": "12:35",
      "end_seconds": null,
      "text": "possibility."
    },
    {
      "index": 288,
      "start_seconds": 757,
      "source_timestamp": "12:37",
      "end_seconds": null,
      "text": "The implicit assumption before Amsterdam"
    },
    {
      "index": 289,
      "start_seconds": 759,
      "source_timestamp": "12:39",
      "end_seconds": null,
      "text": "was that we don't have enough gas to"
    },
    {
      "index": 290,
      "start_seconds": 762,
      "source_timestamp": "12:42",
      "end_seconds": null,
      "text": "execute"
    },
    {
      "index": 291,
      "start_seconds": 764,
      "source_timestamp": "12:44",
      "end_seconds": null,
      "text": "a write if the external call ran out of"
    },
    {
      "index": 292,
      "start_seconds": 767,
      "source_timestamp": "12:47",
      "end_seconds": null,
      "text": "gas."
    },
    {
      "index": 293,
      "start_seconds": 768,
      "source_timestamp": "12:48",
      "end_seconds": null,
      "text": "However, now"
    },
    {
      "index": 294,
      "start_seconds": 770,
      "source_timestamp": "12:50",
      "end_seconds": null,
      "text": "the execution gas cost"
    },
    {
      "index": 295,
      "start_seconds": 772,
      "source_timestamp": "12:52",
      "end_seconds": null,
      "text": "of operation of operations is lower,"
    },
    {
      "index": 296,
      "start_seconds": 775,
      "source_timestamp": "12:55",
      "end_seconds": null,
      "text": "right? We can"
    },
    {
      "index": 297,
      "start_seconds": 778,
      "source_timestamp": "12:58",
      "end_seconds": null,
      "text": "consume the big part of the operation"
    },
    {
      "index": 298,
      "start_seconds": 781,
      "source_timestamp": "13:01",
      "end_seconds": null,
      "text": "taking gas from the reservoir and the"
    },
    {
      "index": 299,
      "start_seconds": 783,
      "source_timestamp": "13:03",
      "end_seconds": null,
      "text": "reservoir the limit is way higher. So we"
    },
    {
      "index": 300,
      "start_seconds": 786,
      "source_timestamp": "13:06",
      "end_seconds": null,
      "text": "can have a lot of reservoir. We can"
    },
    {
      "index": 301,
      "start_seconds": 789,
      "source_timestamp": "13:09",
      "end_seconds": null,
      "text": "make an external call that doesn't"
    },
    {
      "index": 302,
      "start_seconds": 790,
      "source_timestamp": "13:10",
      "end_seconds": null,
      "text": "consume a lot of this"
    },
    {
      "index": 303,
      "start_seconds": 793,
      "source_timestamp": "13:13",
      "end_seconds": null,
      "text": "reservoir and then we end up in a"
    },
    {
      "index": 304,
      "start_seconds": 795,
      "source_timestamp": "13:15",
      "end_seconds": null,
      "text": "situation where we have enough gas to"
    },
    {
      "index": 305,
      "start_seconds": 798,
      "source_timestamp": "13:18",
      "end_seconds": null,
      "text": "execute"
    },
    {
      "index": 306,
      "start_seconds": 800,
      "source_timestamp": "13:20",
      "end_seconds": null,
      "text": "a write to storage where beforehand it"
    },
    {
      "index": 307,
      "start_seconds": 802,
      "source_timestamp": "13:22",
      "end_seconds": null,
      "text": "was not expected."
    },
    {
      "index": 308,
      "start_seconds": 805,
      "source_timestamp": "13:25",
      "end_seconds": null,
      "text": "This might be a little bit confusing"
    },
    {
      "index": 309,
      "start_seconds": 807,
      "source_timestamp": "13:27",
      "end_seconds": null,
      "text": "especially if you"
    },
    {
      "index": 310,
      "start_seconds": 809,
      "source_timestamp": "13:29",
      "end_seconds": null,
      "text": "managed to pay attention because I know"
    },
    {
      "index": 311,
      "start_seconds": 811,
      "source_timestamp": "13:31",
      "end_seconds": null,
      "text": "everyone is very tired."
    },
    {
      "index": 312,
      "start_seconds": 813,
      "source_timestamp": "13:33",
      "end_seconds": null,
      "text": "But it might be a little bit confusing"
    },
    {
      "index": 313,
      "start_seconds": 814,
      "source_timestamp": "13:34",
      "end_seconds": null,
      "text": "if you consider the previous issue"
    },
    {
      "index": 314,
      "start_seconds": 816,
      "source_timestamp": "13:36",
      "end_seconds": null,
      "text": "because previously I said"
    },
    {
      "index": 315,
      "start_seconds": 819,
      "source_timestamp": "13:39",
      "end_seconds": null,
      "text": "operations are very expensive and I'm"
    },
    {
      "index": 316,
      "start_seconds": 821,
      "source_timestamp": "13:41",
      "end_seconds": null,
      "text": "telling you"
    },
    {
      "index": 317,
      "start_seconds": 822,
      "source_timestamp": "13:42",
      "end_seconds": null,
      "text": "operations are cheap. Here you need to"
    },
    {
      "index": 318,
      "start_seconds": 825,
      "source_timestamp": "13:45",
      "end_seconds": null,
      "text": "understand that I'm talking about the"
    },
    {
      "index": 319,
      "start_seconds": 826,
      "source_timestamp": "13:46",
      "end_seconds": null,
      "text": "execution gas part of the operation, not"
    },
    {
      "index": 320,
      "start_seconds": 829,
      "source_timestamp": "13:49",
      "end_seconds": null,
      "text": "the"
    },
    {
      "index": 321,
      "start_seconds": 830,
      "source_timestamp": "13:50",
      "end_seconds": null,
      "text": "state part of the operation."
    },
    {
      "index": 322,
      "start_seconds": 836,
      "source_timestamp": "13:56",
      "end_seconds": null,
      "text": "To go to the next issue, we need to"
    },
    {
      "index": 323,
      "start_seconds": 838,
      "source_timestamp": "13:58",
      "end_seconds": null,
      "text": "understand a little bit the mechanism"
    },
    {
      "index": 324,
      "start_seconds": 840,
      "source_timestamp": "14:00",
      "end_seconds": null,
      "text": "of refills."
    },
    {
      "index": 325,
      "start_seconds": 842,
      "source_timestamp": "14:02",
      "end_seconds": null,
      "text": "So remember we have a fresh"
    },
    {
      "index": 326,
      "start_seconds": 844,
      "source_timestamp": "14:04",
      "end_seconds": null,
      "text": "slot."
    },
    {
      "index": 327,
      "start_seconds": 845,
      "source_timestamp": "14:05",
      "end_seconds": null,
      "text": "We have written to it and then because"
    },
    {
      "index": 328,
      "start_seconds": 849,
      "source_timestamp": "14:09",
      "end_seconds": null,
      "text": "the price is very high, the intention is"
    },
    {
      "index": 329,
      "start_seconds": 852,
      "source_timestamp": "14:12",
      "end_seconds": null,
      "text": "to allow more transactions"
    },
    {
      "index": 330,
      "start_seconds": 855,
      "source_timestamp": "14:15",
      "end_seconds": null,
      "text": "more transactions and bigger to execute."
    },
    {
      "index": 331,
      "start_seconds": 857,
      "source_timestamp": "14:17",
      "end_seconds": null,
      "text": "So we cannot be very aggressive with how"
    },
    {
      "index": 332,
      "start_seconds": 859,
      "source_timestamp": "14:19",
      "end_seconds": null,
      "text": "we consume gas. So the idea"
    },
    {
      "index": 333,
      "start_seconds": 862,
      "source_timestamp": "14:22",
      "end_seconds": null,
      "text": "is that we reset"
    },
    {
      "index": 334,
      "start_seconds": 864,
      "source_timestamp": "14:24",
      "end_seconds": null,
      "text": "so if a a fresh slot is reset, is set to"
    },
    {
      "index": 335,
      "start_seconds": 866,
      "source_timestamp": "14:26",
      "end_seconds": null,
      "text": "zero again, then we refill"
    },
    {
      "index": 336,
      "start_seconds": 869,
      "source_timestamp": "14:29",
      "end_seconds": null,
      "text": "the reservoir and the gas left."
    },
    {
      "index": 337,
      "start_seconds": 872,
      "source_timestamp": "14:32",
      "end_seconds": null,
      "text": "And we essentially do the opposite of"
    },
    {
      "index": 338,
      "start_seconds": 876,
      "source_timestamp": "14:36",
      "end_seconds": null,
      "text": "what we did before. So if we refill"
    },
    {
      "index": 339,
      "start_seconds": 881,
      "source_timestamp": "14:41",
      "end_seconds": null,
      "text": "a storage variable and there is some"
    },
    {
      "index": 340,
      "start_seconds": 883,
      "source_timestamp": "14:43",
      "end_seconds": null,
      "text": "state gas from gas left available, then"
    },
    {
      "index": 341,
      "start_seconds": 885,
      "source_timestamp": "14:45",
      "end_seconds": null,
      "text": "we will use this to to refill the gas"
    },
    {
      "index": 342,
      "start_seconds": 888,
      "source_timestamp": "14:48",
      "end_seconds": null,
      "text": "left and otherwise we will refill the"
    },
    {
      "index": 343,
      "start_seconds": 890,
      "source_timestamp": "14:50",
      "end_seconds": null,
      "text": "reservoir. So following up on my"
    },
    {
      "index": 344,
      "start_seconds": 892,
      "source_timestamp": "14:52",
      "end_seconds": null,
      "text": "previous example"
    },
    {
      "index": 345,
      "start_seconds": 895,
      "source_timestamp": "14:55",
      "end_seconds": null,
      "text": "if we set the the the a slot, which was"
    },
    {
      "index": 346,
      "start_seconds": 899,
      "source_timestamp": "14:59",
      "end_seconds": null,
      "text": "a fresh"
    },
    {
      "index": 347,
      "start_seconds": 901,
      "source_timestamp": "15:01",
      "end_seconds": null,
      "text": "slot"
    },
    {
      "index": 348,
      "start_seconds": 902,
      "source_timestamp": "15:02",
      "end_seconds": null,
      "text": "back, the first thing we see is that we"
    },
    {
      "index": 349,
      "start_seconds": 905,
      "source_timestamp": "15:05",
      "end_seconds": null,
      "text": "realize"
    },
    {
      "index": 350,
      "start_seconds": 907,
      "source_timestamp": "15:07",
      "end_seconds": null,
      "text": "that the state state gas from gas left"
    },
    {
      "index": 351,
      "start_seconds": 909,
      "source_timestamp": "15:09",
      "end_seconds": null,
      "text": "is 50,000. So we know that we need we"
    },
    {
      "index": 352,
      "start_seconds": 913,
      "source_timestamp": "15:13",
      "end_seconds": null,
      "text": "owe to gas left 50,000. So we increase"
    },
    {
      "index": 353,
      "start_seconds": 916,
      "source_timestamp": "15:16",
      "end_seconds": null,
      "text": "gas left"
    },
    {
      "index": 354,
      "start_seconds": 918,
      "source_timestamp": "15:18",
      "end_seconds": null,
      "text": "and then because the whole operation is"
    },
    {
      "index": 355,
      "start_seconds": 920,
      "source_timestamp": "15:20",
      "end_seconds": null,
      "text": "100,000, the rest 50,000 we"
    },
    {
      "index": 356,
      "start_seconds": 924,
      "source_timestamp": "15:24",
      "end_seconds": null,
      "text": "refill we use it to refill the"
    },
    {
      "index": 357,
      "start_seconds": 926,
      "source_timestamp": "15:26",
      "end_seconds": null,
      "text": "reservoir."
    },
    {
      "index": 358,
      "start_seconds": 927,
      "source_timestamp": "15:27",
      "end_seconds": null,
      "text": "The the second storage set is simpler"
    },
    {
      "index": 359,
      "start_seconds": 931,
      "source_timestamp": "15:31",
      "end_seconds": null,
      "text": "because we don't owe anything to gas"
    },
    {
      "index": 360,
      "start_seconds": 933,
      "source_timestamp": "15:33",
      "end_seconds": null,
      "text": "left, so we simply increase the"
    },
    {
      "index": 361,
      "start_seconds": 935,
      "source_timestamp": "15:35",
      "end_seconds": null,
      "text": "reservoir. Here"
    },
    {
      "index": 362,
      "start_seconds": 937,
      "source_timestamp": "15:37",
      "end_seconds": null,
      "text": "on purpose I omitted this 100"
    },
    {
      "index": 363,
      "start_seconds": 941,
      "source_timestamp": "15:41",
      "end_seconds": null,
      "text": "execution gas that the reset would cost."
    },
    {
      "index": 364,
      "start_seconds": 945,
      "source_timestamp": "15:45",
      "end_seconds": null,
      "text": "But what I want to draw your attention"
    },
    {
      "index": 365,
      "start_seconds": 947,
      "source_timestamp": "15:47",
      "end_seconds": null,
      "text": "on is"
    },
    {
      "index": 366,
      "start_seconds": 949,
      "source_timestamp": "15:49",
      "end_seconds": null,
      "text": "the reason why I have it in red is"
    },
    {
      "index": 367,
      "start_seconds": 952,
      "source_timestamp": "15:52",
      "end_seconds": null,
      "text": "that the first reset actually increases"
    },
    {
      "index": 368,
      "start_seconds": 957,
      "source_timestamp": "15:57",
      "end_seconds": null,
      "text": "gas left."
    },
    {
      "index": 369,
      "start_seconds": 959,
      "source_timestamp": "15:59",
      "end_seconds": null,
      "text": "And this"
    },
    {
      "index": 370,
      "start_seconds": 961,
      "source_timestamp": "16:01",
      "end_seconds": null,
      "text": "is something we were not aware of. So"
    },
    {
      "index": 371,
      "start_seconds": 965,
      "source_timestamp": "16:05",
      "end_seconds": null,
      "text": "it turns out for the very first time"
    },
    {
      "index": 372,
      "start_seconds": 967,
      "source_timestamp": "16:07",
      "end_seconds": null,
      "text": "that gas left doesn't always"
    },
    {
      "index": 373,
      "start_seconds": 970,
      "source_timestamp": "16:10",
      "end_seconds": null,
      "text": "monotonically decrease, but actually"
    },
    {
      "index": 374,
      "start_seconds": 973,
      "source_timestamp": "16:13",
      "end_seconds": null,
      "text": "there are cases"
    },
    {
      "index": 375,
      "start_seconds": 976,
      "source_timestamp": "16:16",
      "end_seconds": null,
      "text": "where it increases."
    },
    {
      "index": 376,
      "start_seconds": 978,
      "source_timestamp": "16:18",
      "end_seconds": null,
      "text": "So, if we revisit the previous example a"
    },
    {
      "index": 377,
      "start_seconds": 982,
      "source_timestamp": "16:22",
      "end_seconds": null,
      "text": "little bit more"
    },
    {
      "index": 378,
      "start_seconds": 984,
      "source_timestamp": "16:24",
      "end_seconds": null,
      "text": "extended,"
    },
    {
      "index": 379,
      "start_seconds": 986,
      "source_timestamp": "16:26",
      "end_seconds": null,
      "text": "if we use"
    },
    {
      "index": 380,
      "start_seconds": 990,
      "source_timestamp": "16:30",
      "end_seconds": null,
      "text": "if we use a lock variable, which is"
    },
    {
      "index": 381,
      "start_seconds": 992,
      "source_timestamp": "16:32",
      "end_seconds": null,
      "text": "initially set to zero, so it's fresh for"
    },
    {
      "index": 382,
      "start_seconds": 995,
      "source_timestamp": "16:35",
      "end_seconds": null,
      "text": "us."
    },
    {
      "index": 383,
      "start_seconds": 996,
      "source_timestamp": "16:36",
      "end_seconds": null,
      "text": "If we set the lock variable to"
    },
    {
      "index": 384,
      "start_seconds": 999,
      "source_timestamp": "16:39",
      "end_seconds": null,
      "text": "to true, then execute"
    },
    {
      "index": 385,
      "start_seconds": 1001,
      "source_timestamp": "16:41",
      "end_seconds": null,
      "text": "the external call. The external call we"
    },
    {
      "index": 386,
      "start_seconds": 1004,
      "source_timestamp": "16:44",
      "end_seconds": null,
      "text": "forward 63 over 64. The external call"
    },
    {
      "index": 387,
      "start_seconds": 1007,
      "source_timestamp": "16:47",
      "end_seconds": null,
      "text": "fails or doesn't fail, maybe doesn't"
    },
    {
      "index": 388,
      "start_seconds": 1009,
      "source_timestamp": "16:49",
      "end_seconds": null,
      "text": "matter. It matters for the issue, but"
    },
    {
      "index": 389,
      "start_seconds": 1012,
      "source_timestamp": "16:52",
      "end_seconds": null,
      "text": "not for for the example currently."
    },
    {
      "index": 390,
      "start_seconds": 1014,
      "source_timestamp": "16:54",
      "end_seconds": null,
      "text": "Once we come back,"
    },
    {
      "index": 391,
      "start_seconds": 1016,
      "source_timestamp": "16:56",
      "end_seconds": null,
      "text": "we reset the lock and at this point, if"
    },
    {
      "index": 392,
      "start_seconds": 1019,
      "source_timestamp": "16:59",
      "end_seconds": null,
      "text": "the reservoir is not enough and the"
    },
    {
      "index": 393,
      "start_seconds": 1021,
      "source_timestamp": "17:01",
      "end_seconds": null,
      "text": "state"
    },
    {
      "index": 394,
      "start_seconds": 1023,
      "source_timestamp": "17:03",
      "end_seconds": null,
      "text": "state gas from gas, I don't remember"
    },
    {
      "index": 395,
      "start_seconds": 1024,
      "source_timestamp": "17:04",
      "end_seconds": null,
      "text": "what it's called,"
    },
    {
      "index": 396,
      "start_seconds": 1026,
      "source_timestamp": "17:06",
      "end_seconds": null,
      "text": "is is positive, then this ends up"
    },
    {
      "index": 397,
      "start_seconds": 1029,
      "source_timestamp": "17:09",
      "end_seconds": null,
      "text": "increasing"
    },
    {
      "index": 398,
      "start_seconds": 1031,
      "source_timestamp": "17:11",
      "end_seconds": null,
      "text": "gas left. So, in the actual attack,"
    },
    {
      "index": 399,
      "start_seconds": 1034,
      "source_timestamp": "17:14",
      "end_seconds": null,
      "text": "if we have a failure in the external"
    },
    {
      "index": 400,
      "start_seconds": 1037,
      "source_timestamp": "17:17",
      "end_seconds": null,
      "text": "call,"
    },
    {
      "index": 401,
      "start_seconds": 1038,
      "source_timestamp": "17:18",
      "end_seconds": null,
      "text": "then of course the boolean will be"
    },
    {
      "index": 402,
      "start_seconds": 1040,
      "source_timestamp": "17:20",
      "end_seconds": null,
      "text": "wrong,"
    },
    {
      "index": 403,
      "start_seconds": 1041,
      "source_timestamp": "17:21",
      "end_seconds": null,
      "text": "it will be false,"
    },
    {
      "index": 404,
      "start_seconds": 1043,
      "source_timestamp": "17:23",
      "end_seconds": null,
      "text": "but the refill will increase"
    },
    {
      "index": 405,
      "start_seconds": 1046,
      "source_timestamp": "17:26",
      "end_seconds": null,
      "text": "gas left. So now, if we try to to"
    },
    {
      "index": 406,
      "start_seconds": 1050,
      "source_timestamp": "17:30",
      "end_seconds": null,
      "text": "perform this check to to understand"
    },
    {
      "index": 407,
      "start_seconds": 1052,
      "source_timestamp": "17:32",
      "end_seconds": null,
      "text": "whether the failure was caused by a"
    },
    {
      "index": 408,
      "start_seconds": 1054,
      "source_timestamp": "17:34",
      "end_seconds": null,
      "text": "logic error or it was caused because we"
    },
    {
      "index": 409,
      "start_seconds": 1057,
      "source_timestamp": "17:37",
      "end_seconds": null,
      "text": "ran out of gas, we"
    },
    {
      "index": 410,
      "start_seconds": 1060,
      "source_timestamp": "17:40",
      "end_seconds": null,
      "text": "we will end up in with a wrong"
    },
    {
      "index": 411,
      "start_seconds": 1061,
      "source_timestamp": "17:41",
      "end_seconds": null,
      "text": "conclusion."
    },
    {
      "index": 412,
      "start_seconds": 1063,
      "source_timestamp": "17:43",
      "end_seconds": null,
      "text": "And this is actually quite interesting"
    },
    {
      "index": 413,
      "start_seconds": 1064,
      "source_timestamp": "17:44",
      "end_seconds": null,
      "text": "and it appears quite often."
    },
    {
      "index": 414,
      "start_seconds": 1067,
      "source_timestamp": "17:47",
      "end_seconds": null,
      "text": "And it all"
    },
    {
      "index": 415,
      "start_seconds": 1069,
      "source_timestamp": "17:49",
      "end_seconds": null,
      "text": "comes down to the monotonicity of gas"
    },
    {
      "index": 416,
      "start_seconds": 1070,
      "source_timestamp": "17:50",
      "end_seconds": null,
      "text": "left."
    },
    {
      "index": 417,
      "start_seconds": 1074,
      "source_timestamp": "17:54",
      "end_seconds": null,
      "text": "So,"
    },
    {
      "index": 418,
      "start_seconds": 1076,
      "source_timestamp": "17:56",
      "end_seconds": null,
      "text": "the next part is even more complex, but"
    },
    {
      "index": 419,
      "start_seconds": 1079,
      "source_timestamp": "17:59",
      "end_seconds": null,
      "text": "I think it gets quite simpler"
    },
    {
      "index": 420,
      "start_seconds": 1082,
      "source_timestamp": "18:02",
      "end_seconds": null,
      "text": "if you think"
    },
    {
      "index": 421,
      "start_seconds": 1084,
      "source_timestamp": "18:04",
      "end_seconds": null,
      "text": "failures as resets."
    },
    {
      "index": 422,
      "start_seconds": 1087,
      "source_timestamp": "18:07",
      "end_seconds": null,
      "text": "When we have a revert, a state change is"
    },
    {
      "index": 423,
      "start_seconds": 1090,
      "source_timestamp": "18:10",
      "end_seconds": null,
      "text": "not committed. So, following the same"
    },
    {
      "index": 424,
      "start_seconds": 1093,
      "source_timestamp": "18:13",
      "end_seconds": null,
      "text": "logic as before, we should refill"
    },
    {
      "index": 425,
      "start_seconds": 1097,
      "source_timestamp": "18:17",
      "end_seconds": null,
      "text": "gas left or the reservoir. So, if we"
    },
    {
      "index": 426,
      "start_seconds": 1100,
      "source_timestamp": "18:20",
      "end_seconds": null,
      "text": "have a failure, we know how much of the"
    },
    {
      "index": 427,
      "start_seconds": 1102,
      "source_timestamp": "18:22",
      "end_seconds": null,
      "text": "gas"
    },
    {
      "index": 428,
      "start_seconds": 1104,
      "source_timestamp": "18:24",
      "end_seconds": null,
      "text": "left we consumed,"
    },
    {
      "index": 429,
      "start_seconds": 1105,
      "source_timestamp": "18:25",
      "end_seconds": null,
      "text": "because we have"
    },
    {
      "index": 430,
      "start_seconds": 1107,
      "source_timestamp": "18:27",
      "end_seconds": null,
      "text": "uh we have added it to the to the state"
    },
    {
      "index": 431,
      "start_seconds": 1109,
      "source_timestamp": "18:29",
      "end_seconds": null,
      "text": "gas from gas left."
    },
    {
      "index": 432,
      "start_seconds": 1111,
      "source_timestamp": "18:31",
      "end_seconds": null,
      "text": "And we simply"
    },
    {
      "index": 433,
      "start_seconds": 1113,
      "source_timestamp": "18:33",
      "end_seconds": null,
      "text": "upon failure reset the reservoir to the"
    },
    {
      "index": 434,
      "start_seconds": 1116,
      "source_timestamp": "18:36",
      "end_seconds": null,
      "text": "value it had beforehand."
    },
    {
      "index": 435,
      "start_seconds": 1119,
      "source_timestamp": "18:39",
      "end_seconds": null,
      "text": "And this brings me to I think the most"
    },
    {
      "index": 436,
      "start_seconds": 1123,
      "source_timestamp": "18:43",
      "end_seconds": null,
      "text": "complex and I think one of the most"
    },
    {
      "index": 437,
      "start_seconds": 1125,
      "source_timestamp": "18:45",
      "end_seconds": null,
      "text": "common attacks."
    },
    {
      "index": 438,
      "start_seconds": 1127,
      "source_timestamp": "18:47",
      "end_seconds": null,
      "text": "So, yeah, bear with me."
    },
    {
      "index": 439,
      "start_seconds": 1130,
      "source_timestamp": "18:50",
      "end_seconds": null,
      "text": "Let's assume we have"
    },
    {
      "index": 440,
      "start_seconds": 1132,
      "source_timestamp": "18:52",
      "end_seconds": null,
      "text": "a contract, right? Our contract that"
    },
    {
      "index": 441,
      "start_seconds": 1134,
      "source_timestamp": "18:54",
      "end_seconds": null,
      "text": "makes a call to an intermediary"
    },
    {
      "index": 442,
      "start_seconds": 1137,
      "source_timestamp": "18:57",
      "end_seconds": null,
      "text": "contract,"
    },
    {
      "index": 443,
      "start_seconds": 1138,
      "source_timestamp": "18:58",
      "end_seconds": null,
      "text": "and this intermediary contract creates"
    },
    {
      "index": 444,
      "start_seconds": 1141,
      "source_timestamp": "19:01",
      "end_seconds": null,
      "text": "some state."
    },
    {
      "index": 445,
      "start_seconds": 1143,
      "source_timestamp": "19:03",
      "end_seconds": null,
      "text": "Now, this intermediary contract makes"
    },
    {
      "index": 446,
      "start_seconds": 1145,
      "source_timestamp": "19:05",
      "end_seconds": null,
      "text": "another call to a target contract."
    },
    {
      "index": 447,
      "start_seconds": 1148,
      "source_timestamp": "19:08",
      "end_seconds": null,
      "text": "What happens if we provide just enough"
    },
    {
      "index": 448,
      "start_seconds": 1152,
      "source_timestamp": "19:12",
      "end_seconds": null,
      "text": "gas so the target contract, the"
    },
    {
      "index": 449,
      "start_seconds": 1154,
      "source_timestamp": "19:14",
      "end_seconds": null,
      "text": "execution of the target contract runs"
    },
    {
      "index": 450,
      "start_seconds": 1156,
      "source_timestamp": "19:16",
      "end_seconds": null,
      "text": "out of gas?"
    },
    {
      "index": 451,
      "start_seconds": 1157,
      "source_timestamp": "19:17",
      "end_seconds": null,
      "text": "At this point, the target contract"
    },
    {
      "index": 452,
      "start_seconds": 1159,
      "source_timestamp": "19:19",
      "end_seconds": null,
      "text": "returns the control to the intermediary"
    },
    {
      "index": 453,
      "start_seconds": 1161,
      "source_timestamp": "19:21",
      "end_seconds": null,
      "text": "contract, and the intermediary contract"
    },
    {
      "index": 454,
      "start_seconds": 1163,
      "source_timestamp": "19:23",
      "end_seconds": null,
      "text": "may see the failure"
    },
    {
      "index": 455,
      "start_seconds": 1166,
      "source_timestamp": "19:26",
      "end_seconds": null,
      "text": "and want to bubble it up. And what it's"
    },
    {
      "index": 456,
      "start_seconds": 1169,
      "source_timestamp": "19:29",
      "end_seconds": null,
      "text": "going to do is simply return"
    },
    {
      "index": 457,
      "start_seconds": 1171,
      "source_timestamp": "19:31",
      "end_seconds": null,
      "text": "uh revert, sorry."
    },
    {
      "index": 458,
      "start_seconds": 1174,
      "source_timestamp": "19:34",
      "end_seconds": null,
      "text": "When the call reverts,"
    },
    {
      "index": 459,
      "start_seconds": 1177,
      "source_timestamp": "19:37",
      "end_seconds": null,
      "text": "the state that was created"
    },
    {
      "index": 460,
      "start_seconds": 1180,
      "source_timestamp": "19:40",
      "end_seconds": null,
      "text": "uh is not committed, right? So, it gets"
    },
    {
      "index": 461,
      "start_seconds": 1184,
      "source_timestamp": "19:44",
      "end_seconds": null,
      "text": "the the gas we paid gets refilled."
    },
    {
      "index": 462,
      "start_seconds": 1187,
      "source_timestamp": "19:47",
      "end_seconds": null,
      "text": "So, now we return back to our original"
    },
    {
      "index": 463,
      "start_seconds": 1190,
      "source_timestamp": "19:50",
      "end_seconds": null,
      "text": "contract"
    },
    {
      "index": 464,
      "start_seconds": 1192,
      "source_timestamp": "19:52",
      "end_seconds": null,
      "text": "that has way more gas than it originally"
    },
    {
      "index": 465,
      "start_seconds": 1195,
      "source_timestamp": "19:55",
      "end_seconds": null,
      "text": "expected, right? Because all the the"
    },
    {
      "index": 466,
      "start_seconds": 1197,
      "source_timestamp": "19:57",
      "end_seconds": null,
      "text": "refills all the crates creation all the"
    },
    {
      "index": 467,
      "start_seconds": 1200,
      "source_timestamp": "20:00",
      "end_seconds": null,
      "text": "state creation"
    },
    {
      "index": 468,
      "start_seconds": 1201,
      "source_timestamp": "20:01",
      "end_seconds": null,
      "text": "we did before"
    },
    {
      "index": 469,
      "start_seconds": 1203,
      "source_timestamp": "20:03",
      "end_seconds": null,
      "text": "was never committed."
    },
    {
      "index": 470,
      "start_seconds": 1204,
      "source_timestamp": "20:04",
      "end_seconds": null,
      "text": "So, now if we were to run"
    },
    {
      "index": 471,
      "start_seconds": 1207,
      "source_timestamp": "20:07",
      "end_seconds": null,
      "text": "a check like the previous one trying to"
    },
    {
      "index": 472,
      "start_seconds": 1210,
      "source_timestamp": "20:10",
      "end_seconds": null,
      "text": "figure out whether we ran out of gas or"
    },
    {
      "index": 473,
      "start_seconds": 1212,
      "source_timestamp": "20:12",
      "end_seconds": null,
      "text": "whether there is a logic error,"
    },
    {
      "index": 474,
      "start_seconds": 1216,
      "source_timestamp": "20:16",
      "end_seconds": null,
      "text": "we will most likely"
    },
    {
      "index": 475,
      "start_seconds": 1218,
      "source_timestamp": "20:18",
      "end_seconds": null,
      "text": "end up with the wrong conclusion."
    },
    {
      "index": 476,
      "start_seconds": 1224,
      "source_timestamp": "20:24",
      "end_seconds": null,
      "text": "So,"
    },
    {
      "index": 477,
      "start_seconds": 1226,
      "source_timestamp": "20:26",
      "end_seconds": null,
      "text": "I'm trying to be fast everyone"
    },
    {
      "index": 478,
      "start_seconds": 1229,
      "source_timestamp": "20:29",
      "end_seconds": null,
      "text": "kind of relax a little bit."
    },
    {
      "index": 479,
      "start_seconds": 1232,
      "source_timestamp": "20:32",
      "end_seconds": null,
      "text": "So,"
    },
    {
      "index": 480,
      "start_seconds": 1234,
      "source_timestamp": "20:34",
      "end_seconds": null,
      "text": "what it means in general for us?"
    },
    {
      "index": 481,
      "start_seconds": 1238,
      "source_timestamp": "20:38",
      "end_seconds": null,
      "text": "The EIP 8037 and 8038"
    },
    {
      "index": 482,
      "start_seconds": 1243,
      "source_timestamp": "20:43",
      "end_seconds": null,
      "text": "introduce"
    },
    {
      "index": 483,
      "start_seconds": 1244,
      "source_timestamp": "20:44",
      "end_seconds": null,
      "text": "introduces some features that make"
    },
    {
      "index": 484,
      "start_seconds": 1248,
      "source_timestamp": "20:48",
      "end_seconds": null,
      "text": "malicious transactions"
    },
    {
      "index": 485,
      "start_seconds": 1250,
      "source_timestamp": "20:50",
      "end_seconds": null,
      "text": "malicious actions possible."
    },
    {
      "index": 486,
      "start_seconds": 1253,
      "source_timestamp": "20:53",
      "end_seconds": null,
      "text": "It increases the required gas, right?"
    },
    {
      "index": 487,
      "start_seconds": 1256,
      "source_timestamp": "20:56",
      "end_seconds": null,
      "text": "So, the residual gas also increases even"
    },
    {
      "index": 488,
      "start_seconds": 1259,
      "source_timestamp": "20:59",
      "end_seconds": null,
      "text": "in the case of an out of gas execution."
    },
    {
      "index": 489,
      "start_seconds": 1264,
      "source_timestamp": "21:04",
      "end_seconds": null,
      "text": "However, it decreases the execution"
    },
    {
      "index": 490,
      "start_seconds": 1268,
      "source_timestamp": "21:08",
      "end_seconds": null,
      "text": "gas consumed. So, now we might end up"
    },
    {
      "index": 491,
      "start_seconds": 1273,
      "source_timestamp": "21:13",
      "end_seconds": null,
      "text": "revert and end up in a situation where"
    },
    {
      "index": 492,
      "start_seconds": 1275,
      "source_timestamp": "21:15",
      "end_seconds": null,
      "text": "we have more gas than we expected"
    },
    {
      "index": 493,
      "start_seconds": 1277,
      "source_timestamp": "21:17",
      "end_seconds": null,
      "text": "because our reservoir is pretty full."
    },
    {
      "index": 494,
      "start_seconds": 1280,
      "source_timestamp": "21:20",
      "end_seconds": null,
      "text": "It breaks the monotonicity"
    },
    {
      "index": 495,
      "start_seconds": 1282,
      "source_timestamp": "21:22",
      "end_seconds": null,
      "text": "of gas left"
    },
    {
      "index": 496,
      "start_seconds": 1285,
      "source_timestamp": "21:25",
      "end_seconds": null,
      "text": "and it also"
    },
    {
      "index": 497,
      "start_seconds": 1287,
      "source_timestamp": "21:27",
      "end_seconds": null,
      "text": "through the way it handles failure"
    },
    {
      "index": 498,
      "start_seconds": 1290,
      "source_timestamp": "21:30",
      "end_seconds": null,
      "text": "returns gas"
    },
    {
      "index": 499,
      "start_seconds": 1293,
      "source_timestamp": "21:33",
      "end_seconds": null,
      "text": "in places where"
    },
    {
      "index": 500,
      "start_seconds": 1294,
      "source_timestamp": "21:34",
      "end_seconds": null,
      "text": "the developers when writing the"
    },
    {
      "index": 501,
      "start_seconds": 1297,
      "source_timestamp": "21:37",
      "end_seconds": null,
      "text": "contracts before Glamster assumed"
    },
    {
      "index": 502,
      "start_seconds": 1301,
      "source_timestamp": "21:41",
      "end_seconds": null,
      "text": "that the gas has been consumed."
    },
    {
      "index": 503,
      "start_seconds": 1305,
      "source_timestamp": "21:45",
      "end_seconds": null,
      "text": "So, if you are a developer or if you are"
    },
    {
      "index": 504,
      "start_seconds": 1308,
      "source_timestamp": "21:48",
      "end_seconds": null,
      "text": "an auditor"
    },
    {
      "index": 505,
      "start_seconds": 1310,
      "source_timestamp": "21:50",
      "end_seconds": null,
      "text": "you might be wondering what you should"
    },
    {
      "index": 506,
      "start_seconds": 1311,
      "source_timestamp": "21:51",
      "end_seconds": null,
      "text": "be"
    },
    {
      "index": 507,
      "start_seconds": 1312,
      "source_timestamp": "21:52",
      "end_seconds": null,
      "text": "looking out for."
    },
    {
      "index": 508,
      "start_seconds": 1314,
      "source_timestamp": "21:54",
      "end_seconds": null,
      "text": "And I think the answer is again in in"
    },
    {
      "index": 509,
      "start_seconds": 1318,
      "source_timestamp": "21:58",
      "end_seconds": null,
      "text": "the issues, right? So,"
    },
    {
      "index": 510,
      "start_seconds": 1320,
      "source_timestamp": "22:00",
      "end_seconds": null,
      "text": "if you find contracts"
    },
    {
      "index": 511,
      "start_seconds": 1323,
      "source_timestamp": "22:03",
      "end_seconds": null,
      "text": "with a"
    },
    {
      "index": 512,
      "start_seconds": 1324,
      "source_timestamp": "22:04",
      "end_seconds": null,
      "text": "fixed budget"
    },
    {
      "index": 513,
      "start_seconds": 1325,
      "source_timestamp": "22:05",
      "end_seconds": null,
      "text": "rethink"
    },
    {
      "index": 514,
      "start_seconds": 1326,
      "source_timestamp": "22:06",
      "end_seconds": null,
      "text": "how the budget requirements change after"
    },
    {
      "index": 515,
      "start_seconds": 1330,
      "source_timestamp": "22:10",
      "end_seconds": null,
      "text": "Glamster dam."
    },
    {
      "index": 516,
      "start_seconds": 1332,
      "source_timestamp": "22:12",
      "end_seconds": null,
      "text": "Think how reverts"
    },
    {
      "index": 517,
      "start_seconds": 1337,
      "source_timestamp": "22:17",
      "end_seconds": null,
      "text": "how reverts affect your code. This is"
    },
    {
      "index": 518,
      "start_seconds": 1339,
      "source_timestamp": "22:19",
      "end_seconds": null,
      "text": "twofold, right?"
    },
    {
      "index": 519,
      "start_seconds": 1341,
      "source_timestamp": "22:21",
      "end_seconds": null,
      "text": "One might assume that"
    },
    {
      "index": 520,
      "start_seconds": 1343,
      "source_timestamp": "22:23",
      "end_seconds": null,
      "text": "if I have an out of gas execution."
    },
    {
      "index": 521,
      "start_seconds": 1346,
      "source_timestamp": "22:26",
      "end_seconds": null,
      "text": "Re-"
    },
    {
      "index": 522,
      "start_seconds": 1347,
      "source_timestamp": "22:27",
      "end_seconds": null,
      "text": "the the transaction will revert and"
    },
    {
      "index": 523,
      "start_seconds": 1349,
      "source_timestamp": "22:29",
      "end_seconds": null,
      "text": "therefore I won't have enough gas to"
    },
    {
      "index": 524,
      "start_seconds": 1352,
      "source_timestamp": "22:32",
      "end_seconds": null,
      "text": "perform more actions, but this is as I"
    },
    {
      "index": 525,
      "start_seconds": 1354,
      "source_timestamp": "22:34",
      "end_seconds": null,
      "text": "showed you"
    },
    {
      "index": 526,
      "start_seconds": 1355,
      "source_timestamp": "22:35",
      "end_seconds": null,
      "text": "is wrong."
    },
    {
      "index": 527,
      "start_seconds": 1357,
      "source_timestamp": "22:37",
      "end_seconds": null,
      "text": "And also you need to be thinking about"
    },
    {
      "index": 528,
      "start_seconds": 1359,
      "source_timestamp": "22:39",
      "end_seconds": null,
      "text": "refills all the time now because as soon"
    },
    {
      "index": 529,
      "start_seconds": 1362,
      "source_timestamp": "22:42",
      "end_seconds": null,
      "text": "as you"
    },
    {
      "index": 530,
      "start_seconds": 1364,
      "source_timestamp": "22:44",
      "end_seconds": null,
      "text": "reset a variable you get more gas back"
    },
    {
      "index": 531,
      "start_seconds": 1367,
      "source_timestamp": "22:47",
      "end_seconds": null,
      "text": "that can be used for other operations"
    },
    {
      "index": 532,
      "start_seconds": 1369,
      "source_timestamp": "22:49",
      "end_seconds": null,
      "text": "later and can be used to trick checks"
    },
    {
      "index": 533,
      "start_seconds": 1373,
      "source_timestamp": "22:53",
      "end_seconds": null,
      "text": "that you have in place."
    },
    {
      "index": 534,
      "start_seconds": 1376,
      "source_timestamp": "22:56",
      "end_seconds": null,
      "text": "And this touches on the on the my last"
    },
    {
      "index": 535,
      "start_seconds": 1378,
      "source_timestamp": "22:58",
      "end_seconds": null,
      "text": "point which is"
    },
    {
      "index": 536,
      "start_seconds": 1380,
      "source_timestamp": "23:00",
      "end_seconds": null,
      "text": "you need to think how you you handle"
    },
    {
      "index": 537,
      "start_seconds": 1384,
      "source_timestamp": "23:04",
      "end_seconds": null,
      "text": "the failure."
    },
    {
      "index": 538,
      "start_seconds": 1387,
      "source_timestamp": "23:07",
      "end_seconds": null,
      "text": "So if you found this stock interesting"
    },
    {
      "index": 539,
      "start_seconds": 1390,
      "source_timestamp": "23:10",
      "end_seconds": null,
      "text": "and if you have questions feel free"
    },
    {
      "index": 540,
      "start_seconds": 1393,
      "source_timestamp": "23:13",
      "end_seconds": null,
      "text": "to contact us at"
    },
    {
      "index": 541,
      "start_seconds": 1394,
      "source_timestamp": "23:14",
      "end_seconds": null,
      "text": "glamsterdam@chainsecurity."
    },
    {
      "index": 542,
      "start_seconds": 1396,
      "source_timestamp": "23:16",
      "end_seconds": null,
      "text": "If you want to read"
    },
    {
      "index": 543,
      "start_seconds": 1397,
      "source_timestamp": "23:17",
      "end_seconds": null,
      "text": "again about"
    },
    {
      "index": 544,
      "start_seconds": 1399,
      "source_timestamp": "23:19",
      "end_seconds": null,
      "text": "this issue"
    },
    {
      "index": 545,
      "start_seconds": 1401,
      "source_timestamp": "23:21",
      "end_seconds": null,
      "text": "feel free to to read our blog."
    },
    {
      "index": 546,
      "start_seconds": 1404,
      "source_timestamp": "23:24",
      "end_seconds": null,
      "text": "And otherwise thank you very much for"
    },
    {
      "index": 547,
      "start_seconds": 1405,
      "source_timestamp": "23:25",
      "end_seconds": null,
      "text": "your attention and happy to take"
    },
    {
      "index": 548,
      "start_seconds": 1407,
      "source_timestamp": "23:27",
      "end_seconds": null,
      "text": "questions."
    },
    {
      "index": 549,
      "start_seconds": 1408,
      "source_timestamp": "23:28",
      "end_seconds": null,
      "text": "[applause]"
    },
    {
      "index": 550,
      "start_seconds": 1412,
      "source_timestamp": "23:32",
      "end_seconds": null,
      "text": "Do you need microphone?"
    },
    {
      "index": 551,
      "start_seconds": 1415,
      "source_timestamp": "23:35",
      "end_seconds": null,
      "text": ">> Hi, Mohamed from Dido."
    },
    {
      "index": 552,
      "start_seconds": 1418,
      "source_timestamp": "23:38",
      "end_seconds": null,
      "text": "Thank you for the talk."
    },
    {
      "index": 553,
      "start_seconds": 1420,
      "source_timestamp": "23:40",
      "end_seconds": null,
      "text": "Just one question. Why why did"
    },
    {
      "index": 554,
      "start_seconds": 1423,
      "source_timestamp": "23:43",
      "end_seconds": null,
      "text": "why don't we have the protocol more or"
    },
    {
      "index": 555,
      "start_seconds": 1426,
      "source_timestamp": "23:46",
      "end_seconds": null,
      "text": "the the fork or the change more backward"
    },
    {
      "index": 556,
      "start_seconds": 1429,
      "source_timestamp": "23:49",
      "end_seconds": null,
      "text": "compatible in the sense that"
    },
    {
      "index": 557,
      "start_seconds": 1432,
      "source_timestamp": "23:52",
      "end_seconds": null,
      "text": "there is a does not cannot refill the"
    },
    {
      "index": 558,
      "start_seconds": 1435,
      "source_timestamp": "23:55",
      "end_seconds": null,
      "text": "gas left stuff and then it needs a"
    },
    {
      "index": 559,
      "start_seconds": 1438,
      "source_timestamp": "23:58",
      "end_seconds": null,
      "text": "special instruction to do this and in"
    },
    {
      "index": 560,
      "start_seconds": 1441,
      "source_timestamp": "24:01",
      "end_seconds": null,
      "text": "that case everything existing now will"
    },
    {
      "index": 561,
      "start_seconds": 1443,
      "source_timestamp": "24:03",
      "end_seconds": null,
      "text": "not be affected and then everyone is"
    },
    {
      "index": 562,
      "start_seconds": 1445,
      "source_timestamp": "24:05",
      "end_seconds": null,
      "text": "deploying a new code would be able to"
    },
    {
      "index": 563,
      "start_seconds": 1447,
      "source_timestamp": "24:07",
      "end_seconds": null,
      "text": "control this and do secure code instead"
    },
    {
      "index": 564,
      "start_seconds": 1449,
      "source_timestamp": "24:09",
      "end_seconds": null,
      "text": "of getting into the hazard of finding"
    },
    {
      "index": 565,
      "start_seconds": 1452,
      "source_timestamp": "24:12",
      "end_seconds": null,
      "text": "the bugs."
    },
    {
      "index": 566,
      "start_seconds": 1453,
      "source_timestamp": "24:13",
      "end_seconds": null,
      "text": ">> Yeah,"
    },
    {
      "index": 567,
      "start_seconds": 1454,
      "source_timestamp": "24:14",
      "end_seconds": null,
      "text": "that's a good question."
    },
    {
      "index": 568,
      "start_seconds": 1455,
      "source_timestamp": "24:15",
      "end_seconds": null,
      "text": "I guess the answer is that you want to"
    },
    {
      "index": 569,
      "start_seconds": 1457,
      "source_timestamp": "24:17",
      "end_seconds": null,
      "text": "have"
    },
    {
      "index": 570,
      "start_seconds": 1458,
      "source_timestamp": "24:18",
      "end_seconds": null,
      "text": "some kind of backwards compatibility"
    },
    {
      "index": 571,
      "start_seconds": 1460,
      "source_timestamp": "24:20",
      "end_seconds": null,
      "text": "maybe or actually you don't want to"
    },
    {
      "index": 572,
      "start_seconds": 1462,
      "source_timestamp": "24:22",
      "end_seconds": null,
      "text": "touch Solidity. So because this is a"
    },
    {
      "index": 573,
      "start_seconds": 1464,
      "source_timestamp": "24:24",
      "end_seconds": null,
      "text": "change on the on the execution layer"
    },
    {
      "index": 574,
      "start_seconds": 1467,
      "source_timestamp": "24:27",
      "end_seconds": null,
      "text": "uh,"
    },
    {
      "index": 575,
      "start_seconds": 1468,
      "source_timestamp": "24:28",
      "end_seconds": null,
      "text": "they have people thought that they"
    },
    {
      "index": 576,
      "start_seconds": 1470,
      "source_timestamp": "24:30",
      "end_seconds": null,
      "text": "shouldn't try to to change solidity,"
    },
    {
      "index": 577,
      "start_seconds": 1473,
      "source_timestamp": "24:33",
      "end_seconds": null,
      "text": "right?"
    },
    {
      "index": 578,
      "start_seconds": 1474,
      "source_timestamp": "24:34",
      "end_seconds": null,
      "text": "Uh, so I think"
    },
    {
      "index": 579,
      "start_seconds": 1476,
      "source_timestamp": "24:36",
      "end_seconds": null,
      "text": "that's the simple answer. I mean, there"
    },
    {
      "index": 580,
      "start_seconds": 1477,
      "source_timestamp": "24:37",
      "end_seconds": null,
      "text": "are many ways to mitigate the issue if"
    },
    {
      "index": 581,
      "start_seconds": 1480,
      "source_timestamp": "24:40",
      "end_seconds": null,
      "text": "you if you revisit the spec, but because"
    },
    {
      "index": 582,
      "start_seconds": 1484,
      "source_timestamp": "24:44",
      "end_seconds": null,
      "text": "the spec is live, this is a little bit"
    },
    {
      "index": 583,
      "start_seconds": 1486,
      "source_timestamp": "24:46",
      "end_seconds": null,
      "text": "out of question currently."
    },
    {
      "index": 584,
      "start_seconds": 1489,
      "source_timestamp": "24:49",
      "end_seconds": null,
      "text": "Thank you very much."
    }
  ]
}
