{
  "schemaVersion": 1,
  "videoId": "hW406CR7Tnc",
  "videoUrl": "https://www.youtube.com/watch?v=hW406CR7Tnc",
  "title": "Formal Verification of Stake Pools: From General Design to a Real-World Application",
  "speakerCredit": "Kevin Lotz",
  "programmeTalkId": "dss26-b7d6f459571fc695",
  "language": "en",
  "captionType": "auto-generated",
  "humanAccuracyReviewed": false,
  "spokenAudioCompletenessVerified": false,
  "cueEndTimesAvailable": false,
  "source": {
    "provider": "YouTube",
    "method": "native browser transcript export",
    "sha256": "7e583abd9188723eb4a0490ab392a44bb18add0ef6738ec9caa5056ff1647adf",
    "exportedAt": "2026-11-16T07:33:57.312781+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": 0,
    "last_cue_start_seconds": 864,
    "video_duration_seconds": 867,
    "seconds_after_last_cue_start": 3,
    "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": 0,
      "source_timestamp": "0:00",
      "end_seconds": null,
      "text": "Okay."
    },
    {
      "index": 1,
      "start_seconds": 1,
      "source_timestamp": "0:01",
      "end_seconds": null,
      "text": "Uh thanks for the introduction. Hi"
    },
    {
      "index": 2,
      "start_seconds": 3,
      "source_timestamp": "0:03",
      "end_seconds": null,
      "text": "everyone. My name is Kevin."
    },
    {
      "index": 3,
      "start_seconds": 5,
      "source_timestamp": "0:05",
      "end_seconds": null,
      "text": "I work as a formal verification"
    },
    {
      "index": 4,
      "start_seconds": 6,
      "source_timestamp": "0:06",
      "end_seconds": null,
      "text": "researcher for Cetora and yeah,"
    },
    {
      "index": 5,
      "start_seconds": 9,
      "source_timestamp": "0:09",
      "end_seconds": null,
      "text": "as was introduced,"
    },
    {
      "index": 6,
      "start_seconds": 10,
      "source_timestamp": "0:10",
      "end_seconds": null,
      "text": "I want to talk in the next 15 minutes"
    },
    {
      "index": 7,
      "start_seconds": 12,
      "source_timestamp": "0:12",
      "end_seconds": null,
      "text": "about"
    },
    {
      "index": 8,
      "start_seconds": 13,
      "source_timestamp": "0:13",
      "end_seconds": null,
      "text": "formal verification of stake pools."
    },
    {
      "index": 9,
      "start_seconds": 15,
      "source_timestamp": "0:15",
      "end_seconds": null,
      "text": "I'm keeping it fairly abstract, so I'm"
    },
    {
      "index": 10,
      "start_seconds": 17,
      "source_timestamp": "0:17",
      "end_seconds": null,
      "text": "starting with general design of what"
    },
    {
      "index": 11,
      "start_seconds": 19,
      "source_timestamp": "0:19",
      "end_seconds": null,
      "text": "stake pools are, so mental model of the"
    },
    {
      "index": 12,
      "start_seconds": 22,
      "source_timestamp": "0:22",
      "end_seconds": null,
      "text": "moving parts and of the one of the"
    },
    {
      "index": 13,
      "start_seconds": 25,
      "source_timestamp": "0:25",
      "end_seconds": null,
      "text": "arguably most important invariants that"
    },
    {
      "index": 14,
      "start_seconds": 27,
      "source_timestamp": "0:27",
      "end_seconds": null,
      "text": "stake pools should guarantee you."
    },
    {
      "index": 15,
      "start_seconds": 30,
      "source_timestamp": "0:30",
      "end_seconds": null,
      "text": "From there on, I'm going to go to a"
    },
    {
      "index": 16,
      "start_seconds": 32,
      "source_timestamp": "0:32",
      "end_seconds": null,
      "text": "concrete implementation that we formally"
    },
    {
      "index": 17,
      "start_seconds": 33,
      "source_timestamp": "0:33",
      "end_seconds": null,
      "text": "verified at Cetora and the outcome of"
    },
    {
      "index": 18,
      "start_seconds": 36,
      "source_timestamp": "0:36",
      "end_seconds": null,
      "text": "this formal verification was that we"
    },
    {
      "index": 19,
      "start_seconds": 38,
      "source_timestamp": "0:38",
      "end_seconds": null,
      "text": "found"
    },
    {
      "index": 20,
      "start_seconds": 39,
      "source_timestamp": "0:39",
      "end_seconds": null,
      "text": "security bug, a high severity one that"
    },
    {
      "index": 21,
      "start_seconds": 41,
      "source_timestamp": "0:41",
      "end_seconds": null,
      "text": "was lingering around for a couple of"
    },
    {
      "index": 22,
      "start_seconds": 42,
      "source_timestamp": "0:42",
      "end_seconds": null,
      "text": "years and survived multiple audits."
    },
    {
      "index": 23,
      "start_seconds": 46,
      "source_timestamp": "0:46",
      "end_seconds": null,
      "text": "Okay."
    },
    {
      "index": 24,
      "start_seconds": 47,
      "source_timestamp": "0:47",
      "end_seconds": null,
      "text": "Let me Well,"
    },
    {
      "index": 25,
      "start_seconds": 49,
      "source_timestamp": "0:49",
      "end_seconds": null,
      "text": "okay, there we go."
    },
    {
      "index": 26,
      "start_seconds": 51,
      "source_timestamp": "0:51",
      "end_seconds": null,
      "text": "Yeah, so first a quick primer on what's"
    },
    {
      "index": 27,
      "start_seconds": 53,
      "source_timestamp": "0:53",
      "end_seconds": null,
      "text": "what I mean by stake pools. I think the"
    },
    {
      "index": 28,
      "start_seconds": 55,
      "source_timestamp": "0:55",
      "end_seconds": null,
      "text": "concept is pretty simple."
    },
    {
      "index": 29,
      "start_seconds": 57,
      "source_timestamp": "0:57",
      "end_seconds": null,
      "text": "So you have some assets and you want to"
    },
    {
      "index": 30,
      "start_seconds": 58,
      "source_timestamp": "0:58",
      "end_seconds": null,
      "text": "stake them, but you don't want to go to"
    },
    {
      "index": 31,
      "start_seconds": 60,
      "source_timestamp": "1:00",
      "end_seconds": null,
      "text": "a single validator directly, so you can"
    },
    {
      "index": 32,
      "start_seconds": 63,
      "source_timestamp": "1:03",
      "end_seconds": null,
      "text": "go to a stake pool and it much like"
    },
    {
      "index": 33,
      "start_seconds": 65,
      "source_timestamp": "1:05",
      "end_seconds": null,
      "text": "behaves like a"
    },
    {
      "index": 34,
      "start_seconds": 67,
      "source_timestamp": "1:07",
      "end_seconds": null,
      "text": "like a standard vault. So users deposit"
    },
    {
      "index": 35,
      "start_seconds": 70,
      "source_timestamp": "1:10",
      "end_seconds": null,
      "text": "their assets into the stake pool, they"
    },
    {
      "index": 36,
      "start_seconds": 71,
      "source_timestamp": "1:11",
      "end_seconds": null,
      "text": "lend in their reserve and the stake pool"
    },
    {
      "index": 37,
      "start_seconds": 74,
      "source_timestamp": "1:14",
      "end_seconds": null,
      "text": "means back shares proportional to"
    },
    {
      "index": 38,
      "start_seconds": 76,
      "source_timestamp": "1:16",
      "end_seconds": null,
      "text": "whatever you deposited into it."
    },
    {
      "index": 39,
      "start_seconds": 79,
      "source_timestamp": "1:19",
      "end_seconds": null,
      "text": "But then on top of that, there's some"
    },
    {
      "index": 40,
      "start_seconds": 80,
      "source_timestamp": "1:20",
      "end_seconds": null,
      "text": "kind of operator that moves the funds"
    },
    {
      "index": 41,
      "start_seconds": 83,
      "source_timestamp": "1:23",
      "end_seconds": null,
      "text": "out of the pool to one or multiple"
    },
    {
      "index": 42,
      "start_seconds": 86,
      "source_timestamp": "1:26",
      "end_seconds": null,
      "text": "validators where they can experience"
    },
    {
      "index": 43,
      "start_seconds": 88,
      "source_timestamp": "1:28",
      "end_seconds": null,
      "text": "slashing, but hopefully they only earn"
    },
    {
      "index": 44,
      "start_seconds": 91,
      "source_timestamp": "1:31",
      "end_seconds": null,
      "text": "rewards. So at the later point in time,"
    },
    {
      "index": 45,
      "start_seconds": 93,
      "source_timestamp": "1:33",
      "end_seconds": null,
      "text": "users can redeem their shares and get"
    },
    {
      "index": 46,
      "start_seconds": 95,
      "source_timestamp": "1:35",
      "end_seconds": null,
      "text": "back hopefully more than what they put"
    },
    {
      "index": 47,
      "start_seconds": 97,
      "source_timestamp": "1:37",
      "end_seconds": null,
      "text": "into the pool in the first place."
    },
    {
      "index": 48,
      "start_seconds": 100,
      "source_timestamp": "1:40",
      "end_seconds": null,
      "text": "So that's"
    },
    {
      "index": 49,
      "start_seconds": 101,
      "source_timestamp": "1:41",
      "end_seconds": null,
      "text": "that's the general idea of stake pools."
    },
    {
      "index": 50,
      "start_seconds": 104,
      "source_timestamp": "1:44",
      "end_seconds": null,
      "text": "And whenever we see something that"
    },
    {
      "index": 51,
      "start_seconds": 106,
      "source_timestamp": "1:46",
      "end_seconds": null,
      "text": "resembles vaults in any shape, what we"
    },
    {
      "index": 52,
      "start_seconds": 109,
      "source_timestamp": "1:49",
      "end_seconds": null,
      "text": "tend to prove is or what we"
    },
    {
      "index": 53,
      "start_seconds": 111,
      "source_timestamp": "1:51",
      "end_seconds": null,
      "text": "try to verify is an invariant called"
    },
    {
      "index": 54,
      "start_seconds": 113,
      "source_timestamp": "1:53",
      "end_seconds": null,
      "text": "solvency."
    },
    {
      "index": 55,
      "start_seconds": 115,
      "source_timestamp": "1:55",
      "end_seconds": null,
      "text": "So what this means basically is that the"
    },
    {
      "index": 56,
      "start_seconds": 117,
      "source_timestamp": "1:57",
      "end_seconds": null,
      "text": "shares that are issued at the moment"
    },
    {
      "index": 57,
      "start_seconds": 118,
      "source_timestamp": "1:58",
      "end_seconds": null,
      "text": "these are always less than or to the"
    },
    {
      "index": 58,
      "start_seconds": 120,
      "source_timestamp": "2:00",
      "end_seconds": null,
      "text": "extractable value and then the case of"
    },
    {
      "index": 59,
      "start_seconds": 122,
      "source_timestamp": "2:02",
      "end_seconds": null,
      "text": "stake that is"
    },
    {
      "index": 60,
      "start_seconds": 124,
      "source_timestamp": "2:04",
      "end_seconds": null,
      "text": "whatever is in cash in the reserve plus"
    },
    {
      "index": 61,
      "start_seconds": 126,
      "source_timestamp": "2:06",
      "end_seconds": null,
      "text": "the current value at the validators that"
    },
    {
      "index": 62,
      "start_seconds": 128,
      "source_timestamp": "2:08",
      "end_seconds": null,
      "text": "are staked so including the rewards."
    },
    {
      "index": 63,
      "start_seconds": 131,
      "source_timestamp": "2:11",
      "end_seconds": null,
      "text": "We ignore"
    },
    {
      "index": 64,
      "start_seconds": 132,
      "source_timestamp": "2:12",
      "end_seconds": null,
      "text": "slashing because that's the only"
    },
    {
      "index": 65,
      "start_seconds": 134,
      "source_timestamp": "2:14",
      "end_seconds": null,
      "text": "exception that can break solvency so for"
    },
    {
      "index": 66,
      "start_seconds": 136,
      "source_timestamp": "2:16",
      "end_seconds": null,
      "text": "for that invariant we simply ignore it."
    },
    {
      "index": 67,
      "start_seconds": 139,
      "source_timestamp": "2:19",
      "end_seconds": null,
      "text": "And so what this says is if everybody"
    },
    {
      "index": 68,
      "start_seconds": 141,
      "source_timestamp": "2:21",
      "end_seconds": null,
      "text": "was to redeem their shares at once now"
    },
    {
      "index": 69,
      "start_seconds": 144,
      "source_timestamp": "2:24",
      "end_seconds": null,
      "text": "at the same time then there would be"
    },
    {
      "index": 70,
      "start_seconds": 145,
      "source_timestamp": "2:25",
      "end_seconds": null,
      "text": "enough value in the pool to honor every"
    },
    {
      "index": 71,
      "start_seconds": 148,
      "source_timestamp": "2:28",
      "end_seconds": null,
      "text": "share."
    },
    {
      "index": 72,
      "start_seconds": 149,
      "source_timestamp": "2:29",
      "end_seconds": null,
      "text": "We tend to prove this because it"
    },
    {
      "index": 73,
      "start_seconds": 152,
      "source_timestamp": "2:32",
      "end_seconds": null,
      "text": "it covers many classes of bugs at once."
    },
    {
      "index": 74,
      "start_seconds": 154,
      "source_timestamp": "2:34",
      "end_seconds": null,
      "text": "For example if you mint too many shares"
    },
    {
      "index": 75,
      "start_seconds": 156,
      "source_timestamp": "2:36",
      "end_seconds": null,
      "text": "on on the deposit due to a rounding"
    },
    {
      "index": 76,
      "start_seconds": 159,
      "source_timestamp": "2:39",
      "end_seconds": null,
      "text": "issue or some kind of fee setup that is"
    },
    {
      "index": 77,
      "start_seconds": 161,
      "source_timestamp": "2:41",
      "end_seconds": null,
      "text": "that is not correct then you will"
    },
    {
      "index": 78,
      "start_seconds": 163,
      "source_timestamp": "2:43",
      "end_seconds": null,
      "text": "probably find this"
    },
    {
      "index": 79,
      "start_seconds": 165,
      "source_timestamp": "2:45",
      "end_seconds": null,
      "text": "violation to solvency. Same for paying"
    },
    {
      "index": 80,
      "start_seconds": 167,
      "source_timestamp": "2:47",
      "end_seconds": null,
      "text": "payouts or for a state that can where"
    },
    {
      "index": 81,
      "start_seconds": 170,
      "source_timestamp": "2:50",
      "end_seconds": null,
      "text": "the internal accounting can drift from"
    },
    {
      "index": 82,
      "start_seconds": 171,
      "source_timestamp": "2:51",
      "end_seconds": null,
      "text": "the on-chain state."
    },
    {
      "index": 83,
      "start_seconds": 174,
      "source_timestamp": "2:54",
      "end_seconds": null,
      "text": "So we have this solvency the invariant"
    },
    {
      "index": 84,
      "start_seconds": 177,
      "source_timestamp": "2:57",
      "end_seconds": null,
      "text": "and invariant here means that we want to"
    },
    {
      "index": 85,
      "start_seconds": 178,
      "source_timestamp": "2:58",
      "end_seconds": null,
      "text": "make sure that the pool"
    },
    {
      "index": 86,
      "start_seconds": 181,
      "source_timestamp": "3:01",
      "end_seconds": null,
      "text": "satisfies this at every reachable state."
    },
    {
      "index": 87,
      "start_seconds": 184,
      "source_timestamp": "3:04",
      "end_seconds": null,
      "text": "So the principle or the technique that"
    },
    {
      "index": 88,
      "start_seconds": 187,
      "source_timestamp": "3:07",
      "end_seconds": null,
      "text": "you can use to verify this is called"
    },
    {
      "index": 89,
      "start_seconds": 189,
      "source_timestamp": "3:09",
      "end_seconds": null,
      "text": "induction and"
    },
    {
      "index": 90,
      "start_seconds": 191,
      "source_timestamp": "3:11",
      "end_seconds": null,
      "text": "this thing doesn't work. Oh, there we"
    },
    {
      "index": 91,
      "start_seconds": 192,
      "source_timestamp": "3:12",
      "end_seconds": null,
      "text": "go."
    },
    {
      "index": 92,
      "start_seconds": 194,
      "source_timestamp": "3:14",
      "end_seconds": null,
      "text": "So what you do is"
    },
    {
      "index": 93,
      "start_seconds": 197,
      "source_timestamp": "3:17",
      "end_seconds": null,
      "text": "okay you prove first that the solvency"
    },
    {
      "index": 94,
      "start_seconds": 200,
      "source_timestamp": "3:20",
      "end_seconds": null,
      "text": "invariant holds whenever you create a"
    },
    {
      "index": 95,
      "start_seconds": 202,
      "source_timestamp": "3:22",
      "end_seconds": null,
      "text": "new pool. So when a freshly created pool"
    },
    {
      "index": 96,
      "start_seconds": 205,
      "source_timestamp": "3:25",
      "end_seconds": null,
      "text": "solvency needs needs to hold and then"
    },
    {
      "index": 97,
      "start_seconds": 207,
      "source_timestamp": "3:27",
      "end_seconds": null,
      "text": "what you prove in the next step is for"
    },
    {
      "index": 98,
      "start_seconds": 208,
      "source_timestamp": "3:28",
      "end_seconds": null,
      "text": "every"
    },
    {
      "index": 99,
      "start_seconds": 209,
      "source_timestamp": "3:29",
      "end_seconds": null,
      "text": "state mutating function or operation or"
    },
    {
      "index": 100,
      "start_seconds": 212,
      "source_timestamp": "3:32",
      "end_seconds": null,
      "text": "outside event you take a solvent pool."
    },
    {
      "index": 101,
      "start_seconds": 214,
      "source_timestamp": "3:34",
      "end_seconds": null,
      "text": "So you take any pool that is in a"
    },
    {
      "index": 102,
      "start_seconds": 215,
      "source_timestamp": "3:35",
      "end_seconds": null,
      "text": "solvent state. You execute that function"
    },
    {
      "index": 103,
      "start_seconds": 218,
      "source_timestamp": "3:38",
      "end_seconds": null,
      "text": "and you assert or you verify that the"
    },
    {
      "index": 104,
      "start_seconds": 220,
      "source_timestamp": "3:40",
      "end_seconds": null,
      "text": "the pool is still in a solvent state"
    },
    {
      "index": 105,
      "start_seconds": 221,
      "source_timestamp": "3:41",
      "end_seconds": null,
      "text": "afterwards."
    },
    {
      "index": 106,
      "start_seconds": 222,
      "source_timestamp": "3:42",
      "end_seconds": null,
      "text": "If you can do this for any operation and"
    },
    {
      "index": 107,
      "start_seconds": 224,
      "source_timestamp": "3:44",
      "end_seconds": null,
      "text": "any outside state change so for example"
    },
    {
      "index": 108,
      "start_seconds": 227,
      "source_timestamp": "3:47",
      "end_seconds": null,
      "text": "airdrops"
    },
    {
      "index": 109,
      "start_seconds": 229,
      "source_timestamp": "3:49",
      "end_seconds": null,
      "text": "then you can be guaranteed that the pool"
    },
    {
      "index": 110,
      "start_seconds": 230,
      "source_timestamp": "3:50",
      "end_seconds": null,
      "text": "is"
    },
    {
      "index": 111,
      "start_seconds": 231,
      "source_timestamp": "3:51",
      "end_seconds": null,
      "text": "solvent in every state."
    },
    {
      "index": 112,
      "start_seconds": 234,
      "source_timestamp": "3:54",
      "end_seconds": null,
      "text": "And you can use your favorite formal"
    },
    {
      "index": 113,
      "start_seconds": 235,
      "source_timestamp": "3:55",
      "end_seconds": null,
      "text": "verification framework of your liking to"
    },
    {
      "index": 114,
      "start_seconds": 238,
      "source_timestamp": "3:58",
      "end_seconds": null,
      "text": "prove this. For example you can use the"
    },
    {
      "index": 115,
      "start_seconds": 240,
      "source_timestamp": "4:00",
      "end_seconds": null,
      "text": "approach with NES that was described in"
    },
    {
      "index": 116,
      "start_seconds": 242,
      "source_timestamp": "4:02",
      "end_seconds": null,
      "text": "the talk before that."
    },
    {
      "index": 117,
      "start_seconds": 244,
      "source_timestamp": "4:04",
      "end_seconds": null,
      "text": "You can also use fuzzing if you don't"
    },
    {
      "index": 118,
      "start_seconds": 246,
      "source_timestamp": "4:06",
      "end_seconds": null,
      "text": "want full guarantees."
    },
    {
      "index": 119,
      "start_seconds": 247,
      "source_timestamp": "4:07",
      "end_seconds": null,
      "text": "In the example that I'm going to show"
    },
    {
      "index": 120,
      "start_seconds": 248,
      "source_timestamp": "4:08",
      "end_seconds": null,
      "text": "next, what we use is the"
    },
    {
      "index": 121,
      "start_seconds": 251,
      "source_timestamp": "4:11",
      "end_seconds": null,
      "text": "and in a nutshell, you give it the"
    },
    {
      "index": 122,
      "start_seconds": 253,
      "source_timestamp": "4:13",
      "end_seconds": null,
      "text": "invariant and the code and it comes out"
    },
    {
      "index": 123,
      "start_seconds": 255,
      "source_timestamp": "4:15",
      "end_seconds": null,
      "text": "with the logical formula that can either"
    },
    {
      "index": 124,
      "start_seconds": 257,
      "source_timestamp": "4:17",
      "end_seconds": null,
      "text": "be proven, making sure or guaranteeing"
    },
    {
      "index": 125,
      "start_seconds": 259,
      "source_timestamp": "4:19",
      "end_seconds": null,
      "text": "the property holds"
    },
    {
      "index": 126,
      "start_seconds": 260,
      "source_timestamp": "4:20",
      "end_seconds": null,
      "text": "or it gives you a counter example"
    },
    {
      "index": 127,
      "start_seconds": 262,
      "source_timestamp": "4:22",
      "end_seconds": null,
      "text": "telling you where solvency can be"
    },
    {
      "index": 128,
      "start_seconds": 264,
      "source_timestamp": "4:24",
      "end_seconds": null,
      "text": "violated."
    },
    {
      "index": 129,
      "start_seconds": 266,
      "source_timestamp": "4:26",
      "end_seconds": null,
      "text": "Okay, so we proved this particular"
    },
    {
      "index": 130,
      "start_seconds": 268,
      "source_timestamp": "4:28",
      "end_seconds": null,
      "text": "invariant for the Solana stake pool"
    },
    {
      "index": 131,
      "start_seconds": 270,
      "source_timestamp": "4:30",
      "end_seconds": null,
      "text": "program. That's the standard stake pool"
    },
    {
      "index": 132,
      "start_seconds": 273,
      "source_timestamp": "4:33",
      "end_seconds": null,
      "text": "program on Solana."
    },
    {
      "index": 133,
      "start_seconds": 275,
      "source_timestamp": "4:35",
      "end_seconds": null,
      "text": "It's running since 2021."
    },
    {
      "index": 134,
      "start_seconds": 278,
      "source_timestamp": "4:38",
      "end_seconds": null,
      "text": "Two weeks ago, there were about 64"
    },
    {
      "index": 135,
      "start_seconds": 280,
      "source_timestamp": "4:40",
      "end_seconds": null,
      "text": "active pools."
    },
    {
      "index": 136,
      "start_seconds": 282,
      "source_timestamp": "4:42",
      "end_seconds": null,
      "text": "They together had 33.1 million SOL"
    },
    {
      "index": 137,
      "start_seconds": 285,
      "source_timestamp": "4:45",
      "end_seconds": null,
      "text": "locked and"
    },
    {
      "index": 138,
      "start_seconds": 287,
      "source_timestamp": "4:47",
      "end_seconds": null,
      "text": "there was roughly 3.4 billion"
    },
    {
      "index": 139,
      "start_seconds": 290,
      "source_timestamp": "4:50",
      "end_seconds": null,
      "text": "USD, so quite a lot."
    },
    {
      "index": 140,
      "start_seconds": 292,
      "source_timestamp": "4:52",
      "end_seconds": null,
      "text": "And it was audited a couple of times"
    },
    {
      "index": 141,
      "start_seconds": 294,
      "source_timestamp": "4:54",
      "end_seconds": null,
      "text": "since it was deployed and last year we"
    },
    {
      "index": 142,
      "start_seconds": 296,
      "source_timestamp": "4:56",
      "end_seconds": null,
      "text": "also formally verified it."
    },
    {
      "index": 143,
      "start_seconds": 300,
      "source_timestamp": "5:00",
      "end_seconds": null,
      "text": "So first, how does the Solana stake pool"
    },
    {
      "index": 144,
      "start_seconds": 302,
      "source_timestamp": "5:02",
      "end_seconds": null,
      "text": "program work? Okay."
    },
    {
      "index": 145,
      "start_seconds": 306,
      "source_timestamp": "5:06",
      "end_seconds": null,
      "text": "Okay, there we go."
    },
    {
      "index": 146,
      "start_seconds": 307,
      "source_timestamp": "5:07",
      "end_seconds": null,
      "text": "So it's more or less the same thing as"
    },
    {
      "index": 147,
      "start_seconds": 309,
      "source_timestamp": "5:09",
      "end_seconds": null,
      "text": "the general model. We have users that"
    },
    {
      "index": 148,
      "start_seconds": 311,
      "source_timestamp": "5:11",
      "end_seconds": null,
      "text": "deposit SOL into the stake pool."
    },
    {
      "index": 149,
      "start_seconds": 314,
      "source_timestamp": "5:14",
      "end_seconds": null,
      "text": "So this was supposed to be an animation."
    },
    {
      "index": 150,
      "start_seconds": 316,
      "source_timestamp": "5:16",
      "end_seconds": null,
      "text": "Now I see the whole thing now."
    },
    {
      "index": 151,
      "start_seconds": 319,
      "source_timestamp": "5:19",
      "end_seconds": null,
      "text": "And the pool mints back what's called"
    },
    {
      "index": 152,
      "start_seconds": 321,
      "source_timestamp": "5:21",
      "end_seconds": null,
      "text": "pool tokens, which is nothing different"
    },
    {
      "index": 153,
      "start_seconds": 323,
      "source_timestamp": "5:23",
      "end_seconds": null,
      "text": "than the shares we saw on the general"
    },
    {
      "index": 154,
      "start_seconds": 324,
      "source_timestamp": "5:24",
      "end_seconds": null,
      "text": "model."
    },
    {
      "index": 155,
      "start_seconds": 325,
      "source_timestamp": "5:25",
      "end_seconds": null,
      "text": "Then an operator, the staker comes into"
    },
    {
      "index": 156,
      "start_seconds": 328,
      "source_timestamp": "5:28",
      "end_seconds": null,
      "text": "play that takes"
    },
    {
      "index": 157,
      "start_seconds": 329,
      "source_timestamp": "5:29",
      "end_seconds": null,
      "text": "that takes tokens out of the SOL out of"
    },
    {
      "index": 158,
      "start_seconds": 331,
      "source_timestamp": "5:31",
      "end_seconds": null,
      "text": "the reserve, puts them to the"
    },
    {
      "index": 159,
      "start_seconds": 333,
      "source_timestamp": "5:33",
      "end_seconds": null,
      "text": "validators. They land first in the"
    },
    {
      "index": 160,
      "start_seconds": 334,
      "source_timestamp": "5:34",
      "end_seconds": null,
      "text": "transient stake. There's kind of a"
    },
    {
      "index": 161,
      "start_seconds": 335,
      "source_timestamp": "5:35",
      "end_seconds": null,
      "text": "buffer because on Solana, stake can only"
    },
    {
      "index": 162,
      "start_seconds": 338,
      "source_timestamp": "5:38",
      "end_seconds": null,
      "text": "enter validators upon epoch boundary. So"
    },
    {
      "index": 163,
      "start_seconds": 341,
      "source_timestamp": "5:41",
      "end_seconds": null,
      "text": "after an epoch ends, the stake is moved"
    },
    {
      "index": 164,
      "start_seconds": 343,
      "source_timestamp": "5:43",
      "end_seconds": null,
      "text": "to the validator's active stake where it"
    },
    {
      "index": 165,
      "start_seconds": 345,
      "source_timestamp": "5:45",
      "end_seconds": null,
      "text": "gains rewards."
    },
    {
      "index": 166,
      "start_seconds": 346,
      "source_timestamp": "5:46",
      "end_seconds": null,
      "text": "If the users want to redeem their"
    },
    {
      "index": 167,
      "start_seconds": 348,
      "source_timestamp": "5:48",
      "end_seconds": null,
      "text": "shares, they go back to the pool."
    },
    {
      "index": 168,
      "start_seconds": 352,
      "source_timestamp": "5:52",
      "end_seconds": null,
      "text": "They'll redeem their shares, they get"
    },
    {
      "index": 169,
      "start_seconds": 353,
      "source_timestamp": "5:53",
      "end_seconds": null,
      "text": "burned"
    },
    {
      "index": 170,
      "start_seconds": 354,
      "source_timestamp": "5:54",
      "end_seconds": null,
      "text": "and the stake pool"
    },
    {
      "index": 171,
      "start_seconds": 357,
      "source_timestamp": "5:57",
      "end_seconds": null,
      "text": "moves SOL back to the user"
    },
    {
      "index": 172,
      "start_seconds": 360,
      "source_timestamp": "6:00",
      "end_seconds": null,
      "text": "for whatever these shares are worth at"
    },
    {
      "index": 173,
      "start_seconds": 362,
      "source_timestamp": "6:02",
      "end_seconds": null,
      "text": "the moment."
    },
    {
      "index": 174,
      "start_seconds": 364,
      "source_timestamp": "6:04",
      "end_seconds": null,
      "text": "What you have to care about is if the"
    },
    {
      "index": 175,
      "start_seconds": 365,
      "source_timestamp": "6:05",
      "end_seconds": null,
      "text": "reserve has less than some kind of set"
    },
    {
      "index": 176,
      "start_seconds": 367,
      "source_timestamp": "6:07",
      "end_seconds": null,
      "text": "minimum value. Um this is"
    },
    {
      "index": 177,
      "start_seconds": 370,
      "source_timestamp": "6:10",
      "end_seconds": null,
      "text": "kind of value that is never supposed to"
    },
    {
      "index": 178,
      "start_seconds": 371,
      "source_timestamp": "6:11",
      "end_seconds": null,
      "text": "be um um like uh it's always supposed to"
    },
    {
      "index": 179,
      "start_seconds": 374,
      "source_timestamp": "6:14",
      "end_seconds": null,
      "text": "be withheld in the reserve."
    },
    {
      "index": 180,
      "start_seconds": 376,
      "source_timestamp": "6:16",
      "end_seconds": null,
      "text": "So if you if there are not enough funds"
    },
    {
      "index": 181,
      "start_seconds": 379,
      "source_timestamp": "6:19",
      "end_seconds": null,
      "text": "to fulfill a redemption,"
    },
    {
      "index": 182,
      "start_seconds": 380,
      "source_timestamp": "6:20",
      "end_seconds": null,
      "text": "uh then either you have to wait until"
    },
    {
      "index": 183,
      "start_seconds": 382,
      "source_timestamp": "6:22",
      "end_seconds": null,
      "text": "other users top up with the reserve or"
    },
    {
      "index": 184,
      "start_seconds": 384,
      "source_timestamp": "6:24",
      "end_seconds": null,
      "text": "the staker comes in and unstakes"
    },
    {
      "index": 185,
      "start_seconds": 385,
      "source_timestamp": "6:25",
      "end_seconds": null,
      "text": "something so the pool has enough funds"
    },
    {
      "index": 186,
      "start_seconds": 387,
      "source_timestamp": "6:27",
      "end_seconds": null,
      "text": "available at the next epoch."
    },
    {
      "index": 187,
      "start_seconds": 390,
      "source_timestamp": "6:30",
      "end_seconds": null,
      "text": "So we tried to prove uh solvency on that"
    },
    {
      "index": 188,
      "start_seconds": 393,
      "source_timestamp": "6:33",
      "end_seconds": null,
      "text": "particular protocol."
    },
    {
      "index": 189,
      "start_seconds": 396,
      "source_timestamp": "6:36",
      "end_seconds": null,
      "text": "And in that case it's simply like"
    },
    {
      "index": 190,
      "start_seconds": 399,
      "source_timestamp": "6:39",
      "end_seconds": null,
      "text": "restated that the pool tokens"
    },
    {
      "index": 191,
      "start_seconds": 401,
      "source_timestamp": "6:41",
      "end_seconds": null,
      "text": "are less than or equal to the"
    },
    {
      "index": 192,
      "start_seconds": 402,
      "source_timestamp": "6:42",
      "end_seconds": null,
      "text": "extractable value. So the pool tokens"
    },
    {
      "index": 193,
      "start_seconds": 404,
      "source_timestamp": "6:44",
      "end_seconds": null,
      "text": "are the shares and the extractable value"
    },
    {
      "index": 194,
      "start_seconds": 406,
      "source_timestamp": "6:46",
      "end_seconds": null,
      "text": "in that case is the whatever is in the"
    },
    {
      "index": 195,
      "start_seconds": 408,
      "source_timestamp": "6:48",
      "end_seconds": null,
      "text": "reserve minus this minimal balance that"
    },
    {
      "index": 196,
      "start_seconds": 411,
      "source_timestamp": "6:51",
      "end_seconds": null,
      "text": "I said cannot be touched."
    },
    {
      "index": 197,
      "start_seconds": 413,
      "source_timestamp": "6:53",
      "end_seconds": null,
      "text": "Uh plus whatever is staked in the"
    },
    {
      "index": 198,
      "start_seconds": 414,
      "source_timestamp": "6:54",
      "end_seconds": null,
      "text": "validators including the reserve we have"
    },
    {
      "index": 199,
      "start_seconds": 417,
      "source_timestamp": "6:57",
      "end_seconds": null,
      "text": "already gotten uh the the rewards we"
    },
    {
      "index": 200,
      "start_seconds": 418,
      "source_timestamp": "6:58",
      "end_seconds": null,
      "text": "have already gotten plus what is in the"
    },
    {
      "index": 201,
      "start_seconds": 420,
      "source_timestamp": "7:00",
      "end_seconds": null,
      "text": "transient stake."
    },
    {
      "index": 202,
      "start_seconds": 422,
      "source_timestamp": "7:02",
      "end_seconds": null,
      "text": "So we were able to prove this but there"
    },
    {
      "index": 203,
      "start_seconds": 423,
      "source_timestamp": "7:03",
      "end_seconds": null,
      "text": "was a catch uh that we had to assume"
    },
    {
      "index": 204,
      "start_seconds": 426,
      "source_timestamp": "7:06",
      "end_seconds": null,
      "text": "something about the reserve"
    },
    {
      "index": 205,
      "start_seconds": 428,
      "source_timestamp": "7:08",
      "end_seconds": null,
      "text": "which sounds a bit ridiculous at first"
    },
    {
      "index": 206,
      "start_seconds": 430,
      "source_timestamp": "7:10",
      "end_seconds": null,
      "text": "if you have never like got in touch with"
    },
    {
      "index": 207,
      "start_seconds": 432,
      "source_timestamp": "7:12",
      "end_seconds": null,
      "text": "the Solana um system"
    },
    {
      "index": 208,
      "start_seconds": 435,
      "source_timestamp": "7:15",
      "end_seconds": null,
      "text": "which is that the pool can actually move"
    },
    {
      "index": 209,
      "start_seconds": 436,
      "source_timestamp": "7:16",
      "end_seconds": null,
      "text": "around uh the soul that is in in the"
    },
    {
      "index": 210,
      "start_seconds": 439,
      "source_timestamp": "7:19",
      "end_seconds": null,
      "text": "accounts so in the reserve and in the"
    },
    {
      "index": 211,
      "start_seconds": 441,
      "source_timestamp": "7:21",
      "end_seconds": null,
      "text": "stake accounts."
    },
    {
      "index": 212,
      "start_seconds": 443,
      "source_timestamp": "7:23",
      "end_seconds": null,
      "text": "Um what this is or why we need this is a"
    },
    {
      "index": 213,
      "start_seconds": 445,
      "source_timestamp": "7:25",
      "end_seconds": null,
      "text": "is like a peculiarity of the Solana"
    },
    {
      "index": 214,
      "start_seconds": 448,
      "source_timestamp": "7:28",
      "end_seconds": null,
      "text": "runtime"
    },
    {
      "index": 215,
      "start_seconds": 449,
      "source_timestamp": "7:29",
      "end_seconds": null,
      "text": "because on Solana"
    },
    {
      "index": 216,
      "start_seconds": 451,
      "source_timestamp": "7:31",
      "end_seconds": null,
      "text": "um every every account so every piece of"
    },
    {
      "index": 217,
      "start_seconds": 453,
      "source_timestamp": "7:33",
      "end_seconds": null,
      "text": "structured data um that is stored has"
    },
    {
      "index": 218,
      "start_seconds": 456,
      "source_timestamp": "7:36",
      "end_seconds": null,
      "text": "one owner program and that owner program"
    },
    {
      "index": 219,
      "start_seconds": 458,
      "source_timestamp": "7:38",
      "end_seconds": null,
      "text": "is the only one that can move actually"
    },
    {
      "index": 220,
      "start_seconds": 460,
      "source_timestamp": "7:40",
      "end_seconds": null,
      "text": "soul out of that account."
    },
    {
      "index": 221,
      "start_seconds": 462,
      "source_timestamp": "7:42",
      "end_seconds": null,
      "text": "So in case of the stake pools uh the"
    },
    {
      "index": 222,
      "start_seconds": 465,
      "source_timestamp": "7:45",
      "end_seconds": null,
      "text": "reserve uh the owner program of that"
    },
    {
      "index": 223,
      "start_seconds": 467,
      "source_timestamp": "7:47",
      "end_seconds": null,
      "text": "reserve was not actually the pool itself"
    },
    {
      "index": 224,
      "start_seconds": 469,
      "source_timestamp": "7:49",
      "end_seconds": null,
      "text": "but it was what is called the stake"
    },
    {
      "index": 225,
      "start_seconds": 471,
      "source_timestamp": "7:51",
      "end_seconds": null,
      "text": "program which is a Solana native program"
    },
    {
      "index": 226,
      "start_seconds": 474,
      "source_timestamp": "7:54",
      "end_seconds": null,
      "text": "which is out of scope of the pools or"
    },
    {
      "index": 227,
      "start_seconds": 476,
      "source_timestamp": "7:56",
      "end_seconds": null,
      "text": "the pools are built on top of that."
    },
    {
      "index": 228,
      "start_seconds": 479,
      "source_timestamp": "7:59",
      "end_seconds": null,
      "text": "But the users interact with the pool so"
    },
    {
      "index": 229,
      "start_seconds": 482,
      "source_timestamp": "8:02",
      "end_seconds": null,
      "text": "how does it work? Um the users go to the"
    },
    {
      "index": 230,
      "start_seconds": 485,
      "source_timestamp": "8:05",
      "end_seconds": null,
      "text": "pool and they"
    },
    {
      "index": 231,
      "start_seconds": 487,
      "source_timestamp": "8:07",
      "end_seconds": null,
      "text": "say they want to redeem some shares,"
    },
    {
      "index": 232,
      "start_seconds": 490,
      "source_timestamp": "8:10",
      "end_seconds": null,
      "text": "and the stake pool then goes to the"
    },
    {
      "index": 233,
      "start_seconds": 492,
      "source_timestamp": "8:12",
      "end_seconds": null,
      "text": "stake program, signs a request for the"
    },
    {
      "index": 234,
      "start_seconds": 495,
      "source_timestamp": "8:15",
      "end_seconds": null,
      "text": "stake program to move some SOL out of"
    },
    {
      "index": 235,
      "start_seconds": 497,
      "source_timestamp": "8:17",
      "end_seconds": null,
      "text": "the reserve,"
    },
    {
      "index": 236,
      "start_seconds": 498,
      "source_timestamp": "8:18",
      "end_seconds": null,
      "text": "and the stake program then checks the"
    },
    {
      "index": 237,
      "start_seconds": 500,
      "source_timestamp": "8:20",
      "end_seconds": null,
      "text": "authority, that's another field on that"
    },
    {
      "index": 238,
      "start_seconds": 502,
      "source_timestamp": "8:22",
      "end_seconds": null,
      "text": "account that is set to the address of"
    },
    {
      "index": 239,
      "start_seconds": 504,
      "source_timestamp": "8:24",
      "end_seconds": null,
      "text": "that stake pool program, and the stake"
    },
    {
      "index": 240,
      "start_seconds": 507,
      "source_timestamp": "8:27",
      "end_seconds": null,
      "text": "program checks who signed the request,"
    },
    {
      "index": 241,
      "start_seconds": 509,
      "source_timestamp": "8:29",
      "end_seconds": null,
      "text": "and if that is the stake pool program,"
    },
    {
      "index": 242,
      "start_seconds": 510,
      "source_timestamp": "8:30",
      "end_seconds": null,
      "text": "then that request is is carried out, so"
    },
    {
      "index": 243,
      "start_seconds": 513,
      "source_timestamp": "8:33",
      "end_seconds": null,
      "text": "it's granted."
    },
    {
      "index": 244,
      "start_seconds": 515,
      "source_timestamp": "8:35",
      "end_seconds": null,
      "text": "Um yes, so this is why we needed this"
    },
    {
      "index": 245,
      "start_seconds": 517,
      "source_timestamp": "8:37",
      "end_seconds": null,
      "text": "assumption. So in other words, what we"
    },
    {
      "index": 246,
      "start_seconds": 520,
      "source_timestamp": "8:40",
      "end_seconds": null,
      "text": "needed to prove is"
    },
    {
      "index": 247,
      "start_seconds": 521,
      "source_timestamp": "8:41",
      "end_seconds": null,
      "text": "um that the pool at all times is the"
    },
    {
      "index": 248,
      "start_seconds": 524,
      "source_timestamp": "8:44",
      "end_seconds": null,
      "text": "authority of the reserve and the"
    },
    {
      "index": 249,
      "start_seconds": 525,
      "source_timestamp": "8:45",
      "end_seconds": null,
      "text": "validator and the transient stake."
    },
    {
      "index": 250,
      "start_seconds": 528,
      "source_timestamp": "8:48",
      "end_seconds": null,
      "text": "Um if you look at the code, this looks"
    },
    {
      "index": 251,
      "start_seconds": 529,
      "source_timestamp": "8:49",
      "end_seconds": null,
      "text": "like a completely reasonable assumption"
    },
    {
      "index": 252,
      "start_seconds": 532,
      "source_timestamp": "8:52",
      "end_seconds": null,
      "text": "um because you know, the authority is"
    },
    {
      "index": 253,
      "start_seconds": 534,
      "source_timestamp": "8:54",
      "end_seconds": null,
      "text": "set once and then never touched,"
    },
    {
      "index": 254,
      "start_seconds": 536,
      "source_timestamp": "8:56",
      "end_seconds": null,
      "text": "but it is actually violated. We could"
    },
    {
      "index": 255,
      "start_seconds": 538,
      "source_timestamp": "8:58",
      "end_seconds": null,
      "text": "not verify this, and here's what could"
    },
    {
      "index": 256,
      "start_seconds": 540,
      "source_timestamp": "9:00",
      "end_seconds": null,
      "text": "happen."
    },
    {
      "index": 257,
      "start_seconds": 542,
      "source_timestamp": "9:02",
      "end_seconds": null,
      "text": "So"
    },
    {
      "index": 258,
      "start_seconds": 544,
      "source_timestamp": "9:04",
      "end_seconds": null,
      "text": "this is going to be hard to explain now,"
    },
    {
      "index": 259,
      "start_seconds": 545,
      "source_timestamp": "9:05",
      "end_seconds": null,
      "text": "okay, because the animations don't work."
    },
    {
      "index": 260,
      "start_seconds": 547,
      "source_timestamp": "9:07",
      "end_seconds": null,
      "text": "So um if the user wants to say you have"
    },
    {
      "index": 261,
      "start_seconds": 550,
      "source_timestamp": "9:10",
      "end_seconds": null,
      "text": "a reserve that has 20 SOL, uh so it now"
    },
    {
      "index": 262,
      "start_seconds": 553,
      "source_timestamp": "9:13",
      "end_seconds": null,
      "text": "shows zero point something something, so"
    },
    {
      "index": 263,
      "start_seconds": 555,
      "source_timestamp": "9:15",
      "end_seconds": null,
      "text": "it's supposed to be 20."
    },
    {
      "index": 264,
      "start_seconds": 557,
      "source_timestamp": "9:17",
      "end_seconds": null,
      "text": "And the user there's some user that can"
    },
    {
      "index": 265,
      "start_seconds": 559,
      "source_timestamp": "9:19",
      "end_seconds": null,
      "text": "withdraw their 20 SOL because he has"
    },
    {
      "index": 266,
      "start_seconds": 561,
      "source_timestamp": "9:21",
      "end_seconds": null,
      "text": "enough pool tokens. So it goes to the"
    },
    {
      "index": 267,
      "start_seconds": 562,
      "source_timestamp": "9:22",
      "end_seconds": null,
      "text": "stake pool program um asking"
    },
    {
      "index": 268,
      "start_seconds": 565,
      "source_timestamp": "9:25",
      "end_seconds": null,
      "text": "to withdraw the the 20 SOL by giving it"
    },
    {
      "index": 269,
      "start_seconds": 568,
      "source_timestamp": "9:28",
      "end_seconds": null,
      "text": "the pool tokens."
    },
    {
      "index": 270,
      "start_seconds": 569,
      "source_timestamp": "9:29",
      "end_seconds": null,
      "text": "And uh so the stake pool program goes to"
    },
    {
      "index": 271,
      "start_seconds": 572,
      "source_timestamp": "9:32",
      "end_seconds": null,
      "text": "the stake program, asking the stake"
    },
    {
      "index": 272,
      "start_seconds": 573,
      "source_timestamp": "9:33",
      "end_seconds": null,
      "text": "program to on behalf of the user move"
    },
    {
      "index": 273,
      "start_seconds": 575,
      "source_timestamp": "9:35",
      "end_seconds": null,
      "text": "out that 20 SOL and give that 20 SOL to"
    },
    {
      "index": 274,
      "start_seconds": 578,
      "source_timestamp": "9:38",
      "end_seconds": null,
      "text": "the user."
    },
    {
      "index": 275,
      "start_seconds": 579,
      "source_timestamp": "9:39",
      "end_seconds": null,
      "text": "The stake program sees that the"
    },
    {
      "index": 276,
      "start_seconds": 580,
      "source_timestamp": "9:40",
      "end_seconds": null,
      "text": "authority is properly set to the stake"
    },
    {
      "index": 277,
      "start_seconds": 582,
      "source_timestamp": "9:42",
      "end_seconds": null,
      "text": "pool as it should be"
    },
    {
      "index": 278,
      "start_seconds": 584,
      "source_timestamp": "9:44",
      "end_seconds": null,
      "text": "uh presented here, but um yeah, the"
    },
    {
      "index": 279,
      "start_seconds": 587,
      "source_timestamp": "9:47",
      "end_seconds": null,
      "text": "stake program then moves the 20 SOL from"
    },
    {
      "index": 280,
      "start_seconds": 590,
      "source_timestamp": "9:50",
      "end_seconds": null,
      "text": "uh the stake program moves the 20 SOL"
    },
    {
      "index": 281,
      "start_seconds": 591,
      "source_timestamp": "9:51",
      "end_seconds": null,
      "text": "from the reserve to the user."
    },
    {
      "index": 282,
      "start_seconds": 594,
      "source_timestamp": "9:54",
      "end_seconds": null,
      "text": "After that has happened, the reserve"
    },
    {
      "index": 283,
      "start_seconds": 596,
      "source_timestamp": "9:56",
      "end_seconds": null,
      "text": "technically drops to zero SOL,"
    },
    {
      "index": 284,
      "start_seconds": 598,
      "source_timestamp": "9:58",
      "end_seconds": null,
      "text": "and what the stake program then does is"
    },
    {
      "index": 285,
      "start_seconds": 601,
      "source_timestamp": "10:01",
      "end_seconds": null,
      "text": "it moves the states of the reserve to"
    },
    {
      "index": 286,
      "start_seconds": 603,
      "source_timestamp": "10:03",
      "end_seconds": null,
      "text": "uninitialized. So if whenever the stake"
    },
    {
      "index": 287,
      "start_seconds": 605,
      "source_timestamp": "10:05",
      "end_seconds": null,
      "text": "program sees a reserve dropping to zero,"
    },
    {
      "index": 288,
      "start_seconds": 608,
      "source_timestamp": "10:08",
      "end_seconds": null,
      "text": "it just moves it to an uninitialized"
    },
    {
      "index": 289,
      "start_seconds": 610,
      "source_timestamp": "10:10",
      "end_seconds": null,
      "text": "state."
    },
    {
      "index": 290,
      "start_seconds": 612,
      "source_timestamp": "10:12",
      "end_seconds": null,
      "text": "And even worse, after the transaction"
    },
    {
      "index": 291,
      "start_seconds": 614,
      "source_timestamp": "10:14",
      "end_seconds": null,
      "text": "ended, so when it sets it to an"
    },
    {
      "index": 292,
      "start_seconds": 616,
      "source_timestamp": "10:16",
      "end_seconds": null,
      "text": "uninitialized state, at the same time"
    },
    {
      "index": 293,
      "start_seconds": 618,
      "source_timestamp": "10:18",
      "end_seconds": null,
      "text": "the authority is set to none. So the"
    },
    {
      "index": 294,
      "start_seconds": 620,
      "source_timestamp": "10:20",
      "end_seconds": null,
      "text": "stake pool is not the authority anymore"
    },
    {
      "index": 295,
      "start_seconds": 622,
      "source_timestamp": "10:22",
      "end_seconds": null,
      "text": "of that reserve."
    },
    {
      "index": 296,
      "start_seconds": 624,
      "source_timestamp": "10:24",
      "end_seconds": null,
      "text": "And even worse, for an account that has"
    },
    {
      "index": 297,
      "start_seconds": 626,
      "source_timestamp": "10:26",
      "end_seconds": null,
      "text": "zero soul or has soul below a certain"
    },
    {
      "index": 298,
      "start_seconds": 628,
      "source_timestamp": "10:28",
      "end_seconds": null,
      "text": "rent minimum threshold, at the end of"
    },
    {
      "index": 299,
      "start_seconds": 630,
      "source_timestamp": "10:30",
      "end_seconds": null,
      "text": "the transaction that account gets"
    },
    {
      "index": 300,
      "start_seconds": 631,
      "source_timestamp": "10:31",
      "end_seconds": null,
      "text": "deleted from the runtime. So the reserve"
    },
    {
      "index": 301,
      "start_seconds": 634,
      "source_timestamp": "10:34",
      "end_seconds": null,
      "text": "completely vanishes and everything that"
    },
    {
      "index": 302,
      "start_seconds": 635,
      "source_timestamp": "10:35",
      "end_seconds": null,
      "text": "flows into that reserve by for example"
    },
    {
      "index": 303,
      "start_seconds": 637,
      "source_timestamp": "10:37",
      "end_seconds": null,
      "text": "unstaking from the validators cannot be"
    },
    {
      "index": 304,
      "start_seconds": 639,
      "source_timestamp": "10:39",
      "end_seconds": null,
      "text": "accessed anymore."
    },
    {
      "index": 305,
      "start_seconds": 642,
      "source_timestamp": "10:42",
      "end_seconds": null,
      "text": "That in itself is is bad enough, but it"
    },
    {
      "index": 306,
      "start_seconds": 644,
      "source_timestamp": "10:44",
      "end_seconds": null,
      "text": "compounds with a different issue"
    },
    {
      "index": 307,
      "start_seconds": 646,
      "source_timestamp": "10:46",
      "end_seconds": null,
      "text": "which is that"
    },
    {
      "index": 308,
      "start_seconds": 648,
      "source_timestamp": "10:48",
      "end_seconds": null,
      "text": "the stake program can actually"
    },
    {
      "index": 309,
      "start_seconds": 649,
      "source_timestamp": "10:49",
      "end_seconds": null,
      "text": "reinitialize accounts before the"
    },
    {
      "index": 310,
      "start_seconds": 652,
      "source_timestamp": "10:52",
      "end_seconds": null,
      "text": "transaction ends."
    },
    {
      "index": 311,
      "start_seconds": 653,
      "source_timestamp": "10:53",
      "end_seconds": null,
      "text": "So this is what this picture here"
    },
    {
      "index": 312,
      "start_seconds": 655,
      "source_timestamp": "10:55",
      "end_seconds": null,
      "text": "presents, because if we have a malicious"
    },
    {
      "index": 313,
      "start_seconds": 657,
      "source_timestamp": "10:57",
      "end_seconds": null,
      "text": "user,"
    },
    {
      "index": 314,
      "start_seconds": 658,
      "source_timestamp": "10:58",
      "end_seconds": null,
      "text": "the user itself can transfer a minimum"
    },
    {
      "index": 315,
      "start_seconds": 661,
      "source_timestamp": "11:01",
      "end_seconds": null,
      "text": "value, so a very small value back to the"
    },
    {
      "index": 316,
      "start_seconds": 663,
      "source_timestamp": "11:03",
      "end_seconds": null,
      "text": "reserve."
    },
    {
      "index": 317,
      "start_seconds": 664,
      "source_timestamp": "11:04",
      "end_seconds": null,
      "text": "And"
    },
    {
      "index": 318,
      "start_seconds": 665,
      "source_timestamp": "11:05",
      "end_seconds": null,
      "text": "you know, then it's refunded, it won't"
    },
    {
      "index": 319,
      "start_seconds": 667,
      "source_timestamp": "11:07",
      "end_seconds": null,
      "text": "get deleted. And in the same transaction"
    },
    {
      "index": 320,
      "start_seconds": 668,
      "source_timestamp": "11:08",
      "end_seconds": null,
      "text": "go to the stake program asking the stake"
    },
    {
      "index": 321,
      "start_seconds": 671,
      "source_timestamp": "11:11",
      "end_seconds": null,
      "text": "program, hey, can you reinitialize that"
    },
    {
      "index": 322,
      "start_seconds": 673,
      "source_timestamp": "11:13",
      "end_seconds": null,
      "text": "account?"
    },
    {
      "index": 323,
      "start_seconds": 674,
      "source_timestamp": "11:14",
      "end_seconds": null,
      "text": "And the only thing that the stake"
    },
    {
      "index": 324,
      "start_seconds": 676,
      "source_timestamp": "11:16",
      "end_seconds": null,
      "text": "program does is check if it 's an"
    },
    {
      "index": 325,
      "start_seconds": 677,
      "source_timestamp": "11:17",
      "end_seconds": null,
      "text": "uninitialized account."
    },
    {
      "index": 326,
      "start_seconds": 679,
      "source_timestamp": "11:19",
      "end_seconds": null,
      "text": "It sees the uninitialized account"
    },
    {
      "index": 327,
      "start_seconds": 680,
      "source_timestamp": "11:20",
      "end_seconds": null,
      "text": "because we withdraw all of the soul, so"
    },
    {
      "index": 328,
      "start_seconds": 682,
      "source_timestamp": "11:22",
      "end_seconds": null,
      "text": "the stake program will happily carry out"
    },
    {
      "index": 329,
      "start_seconds": 684,
      "source_timestamp": "11:24",
      "end_seconds": null,
      "text": "that request and the user can put"
    },
    {
      "index": 330,
      "start_seconds": 686,
      "source_timestamp": "11:26",
      "end_seconds": null,
      "text": "himself in place of the authority. So"
    },
    {
      "index": 331,
      "start_seconds": 688,
      "source_timestamp": "11:28",
      "end_seconds": null,
      "text": "now every funds funding every deposit"
    },
    {
      "index": 332,
      "start_seconds": 691,
      "source_timestamp": "11:31",
      "end_seconds": null,
      "text": "that goes into that reserve or"
    },
    {
      "index": 333,
      "start_seconds": 692,
      "source_timestamp": "11:32",
      "end_seconds": null,
      "text": "everything that goes from the validators"
    },
    {
      "index": 334,
      "start_seconds": 694,
      "source_timestamp": "11:34",
      "end_seconds": null,
      "text": "that gets unstaked into that reserve is"
    },
    {
      "index": 335,
      "start_seconds": 696,
      "source_timestamp": "11:36",
      "end_seconds": null,
      "text": "now under complete control of this user."
    },
    {
      "index": 336,
      "start_seconds": 700,
      "source_timestamp": "11:40",
      "end_seconds": null,
      "text": "So that's a"
    },
    {
      "index": 337,
      "start_seconds": 701,
      "source_timestamp": "11:41",
      "end_seconds": null,
      "text": "very nasty state to be in."
    },
    {
      "index": 338,
      "start_seconds": 704,
      "source_timestamp": "11:44",
      "end_seconds": null,
      "text": "Let's check why this happened. If you"
    },
    {
      "index": 339,
      "start_seconds": 706,
      "source_timestamp": "11:46",
      "end_seconds": null,
      "text": "remember back, I told you that there's"
    },
    {
      "index": 340,
      "start_seconds": 708,
      "source_timestamp": "11:48",
      "end_seconds": null,
      "text": "supposed to be some kind of minimum"
    },
    {
      "index": 341,
      "start_seconds": 710,
      "source_timestamp": "11:50",
      "end_seconds": null,
      "text": "value always kept in the reserve."
    },
    {
      "index": 342,
      "start_seconds": 714,
      "source_timestamp": "11:54",
      "end_seconds": null,
      "text": "That was good intention, but it wasn't"
    },
    {
      "index": 343,
      "start_seconds": 716,
      "source_timestamp": "11:56",
      "end_seconds": null,
      "text": "properly enforced"
    },
    {
      "index": 344,
      "start_seconds": 718,
      "source_timestamp": "11:58",
      "end_seconds": null,
      "text": "because there was a check in place that"
    },
    {
      "index": 345,
      "start_seconds": 719,
      "source_timestamp": "11:59",
      "end_seconds": null,
      "text": "only checked if you withdraw something"
    },
    {
      "index": 346,
      "start_seconds": 721,
      "source_timestamp": "12:01",
      "end_seconds": null,
      "text": "that at that moment there is more than"
    },
    {
      "index": 347,
      "start_seconds": 723,
      "source_timestamp": "12:03",
      "end_seconds": null,
      "text": "that minimum balance in the vault."
    },
    {
      "index": 348,
      "start_seconds": 726,
      "source_timestamp": "12:06",
      "end_seconds": null,
      "text": "What was not checked is that if you if"
    },
    {
      "index": 349,
      "start_seconds": 729,
      "source_timestamp": "12:09",
      "end_seconds": null,
      "text": "you withdraw something, then after you"
    },
    {
      "index": 350,
      "start_seconds": 731,
      "source_timestamp": "12:11",
      "end_seconds": null,
      "text": "carry out that withdrawal,"
    },
    {
      "index": 351,
      "start_seconds": 732,
      "source_timestamp": "12:12",
      "end_seconds": null,
      "text": "um there's still more than that minimum"
    },
    {
      "index": 352,
      "start_seconds": 734,
      "source_timestamp": "12:14",
      "end_seconds": null,
      "text": "balance left in the in the reserve. And"
    },
    {
      "index": 353,
      "start_seconds": 737,
      "source_timestamp": "12:17",
      "end_seconds": null,
      "text": "that minimum value, of course, needs to"
    },
    {
      "index": 354,
      "start_seconds": 738,
      "source_timestamp": "12:18",
      "end_seconds": null,
      "text": "be greater than zero."
    },
    {
      "index": 355,
      "start_seconds": 740,
      "source_timestamp": "12:20",
      "end_seconds": null,
      "text": "So the fix was very simple, which was to"
    },
    {
      "index": 356,
      "start_seconds": 742,
      "source_timestamp": "12:22",
      "end_seconds": null,
      "text": "put back or put in that exact check that"
    },
    {
      "index": 357,
      "start_seconds": 744,
      "source_timestamp": "12:24",
      "end_seconds": null,
      "text": "if you redeem shares and you withdraw"
    },
    {
      "index": 358,
      "start_seconds": 746,
      "source_timestamp": "12:26",
      "end_seconds": null,
      "text": "the funds from the reserve, then there's"
    },
    {
      "index": 359,
      "start_seconds": 748,
      "source_timestamp": "12:28",
      "end_seconds": null,
      "text": "still more than that minimum minimum"
    },
    {
      "index": 360,
      "start_seconds": 750,
      "source_timestamp": "12:30",
      "end_seconds": null,
      "text": "minimum balance."
    },
    {
      "index": 361,
      "start_seconds": 751,
      "source_timestamp": "12:31",
      "end_seconds": null,
      "text": "So once that fix was uh put in, which"
    },
    {
      "index": 362,
      "start_seconds": 754,
      "source_timestamp": "12:34",
      "end_seconds": null,
      "text": "was very like very few lines of code, uh"
    },
    {
      "index": 363,
      "start_seconds": 756,
      "source_timestamp": "12:36",
      "end_seconds": null,
      "text": "we could prove this invariant. So there"
    },
    {
      "index": 364,
      "start_seconds": 758,
      "source_timestamp": "12:38",
      "end_seconds": null,
      "text": "was no other counterexample to this"
    },
    {
      "index": 365,
      "start_seconds": 760,
      "source_timestamp": "12:40",
      "end_seconds": null,
      "text": "invariant,"
    },
    {
      "index": 366,
      "start_seconds": 762,
      "source_timestamp": "12:42",
      "end_seconds": null,
      "text": "uh meaning that it's is fully proven"
    },
    {
      "index": 367,
      "start_seconds": 763,
      "source_timestamp": "12:43",
      "end_seconds": null,
      "text": "now."
    },
    {
      "index": 368,
      "start_seconds": 764,
      "source_timestamp": "12:44",
      "end_seconds": null,
      "text": "And all of the other assumptions that we"
    },
    {
      "index": 369,
      "start_seconds": 765,
      "source_timestamp": "12:45",
      "end_seconds": null,
      "text": "needed for solvency, which I left out in"
    },
    {
      "index": 370,
      "start_seconds": 767,
      "source_timestamp": "12:47",
      "end_seconds": null,
      "text": "this talk, were also proven, fully"
    },
    {
      "index": 371,
      "start_seconds": 769,
      "source_timestamp": "12:49",
      "end_seconds": null,
      "text": "verified, and solvency itself was"
    },
    {
      "index": 372,
      "start_seconds": 771,
      "source_timestamp": "12:51",
      "end_seconds": null,
      "text": "verified. And at that moment, we were"
    },
    {
      "index": 373,
      "start_seconds": 773,
      "source_timestamp": "12:53",
      "end_seconds": null,
      "text": "guaranteed that um or we have verified"
    },
    {
      "index": 374,
      "start_seconds": 775,
      "source_timestamp": "12:55",
      "end_seconds": null,
      "text": "that solvency"
    },
    {
      "index": 375,
      "start_seconds": 777,
      "source_timestamp": "12:57",
      "end_seconds": null,
      "text": "holds for this Solana stake pool"
    },
    {
      "index": 376,
      "start_seconds": 779,
      "source_timestamp": "12:59",
      "end_seconds": null,
      "text": "program."
    },
    {
      "index": 377,
      "start_seconds": 781,
      "source_timestamp": "13:01",
      "end_seconds": null,
      "text": "So quick recap"
    },
    {
      "index": 378,
      "start_seconds": 782,
      "source_timestamp": "13:02",
      "end_seconds": null,
      "text": "quick recap what we what we've seen is"
    },
    {
      "index": 379,
      "start_seconds": 784,
      "source_timestamp": "13:04",
      "end_seconds": null,
      "text": "that we found uh high severity security"
    },
    {
      "index": 380,
      "start_seconds": 787,
      "source_timestamp": "13:07",
      "end_seconds": null,
      "text": "bug that allowed the user to completely"
    },
    {
      "index": 381,
      "start_seconds": 788,
      "source_timestamp": "13:08",
      "end_seconds": null,
      "text": "take over the funds of a stake pool"
    },
    {
      "index": 382,
      "start_seconds": 791,
      "source_timestamp": "13:11",
      "end_seconds": null,
      "text": "um just by violating an implicit"
    },
    {
      "index": 383,
      "start_seconds": 794,
      "source_timestamp": "13:14",
      "end_seconds": null,
      "text": "assumption that the um account or that"
    },
    {
      "index": 384,
      "start_seconds": 797,
      "source_timestamp": "13:17",
      "end_seconds": null,
      "text": "the pool itself could always move the"
    },
    {
      "index": 385,
      "start_seconds": 799,
      "source_timestamp": "13:19",
      "end_seconds": null,
      "text": "funds around."
    },
    {
      "index": 386,
      "start_seconds": 801,
      "source_timestamp": "13:21",
      "end_seconds": null,
      "text": "And the cause was fixed or the issue was"
    },
    {
      "index": 387,
      "start_seconds": 803,
      "source_timestamp": "13:23",
      "end_seconds": null,
      "text": "fixed by a very simple missing check on"
    },
    {
      "index": 388,
      "start_seconds": 806,
      "source_timestamp": "13:26",
      "end_seconds": null,
      "text": "the minimum balance."
    },
    {
      "index": 389,
      "start_seconds": 808,
      "source_timestamp": "13:28",
      "end_seconds": null,
      "text": "So um the key takeaways that I you know"
    },
    {
      "index": 390,
      "start_seconds": 811,
      "source_timestamp": "13:31",
      "end_seconds": null,
      "text": "think this this shows is that"
    },
    {
      "index": 391,
      "start_seconds": 813,
      "source_timestamp": "13:33",
      "end_seconds": null,
      "text": "check your implicit assumptions because"
    },
    {
      "index": 392,
      "start_seconds": 815,
      "source_timestamp": "13:35",
      "end_seconds": null,
      "text": "if you looked at the code base, you"
    },
    {
      "index": 393,
      "start_seconds": 817,
      "source_timestamp": "13:37",
      "end_seconds": null,
      "text": "wouldn't see that this thing that"
    },
    {
      "index": 394,
      "start_seconds": 819,
      "source_timestamp": "13:39",
      "end_seconds": null,
      "text": "account removal dropping to zero, this"
    },
    {
      "index": 395,
      "start_seconds": 821,
      "source_timestamp": "13:41",
      "end_seconds": null,
      "text": "doesn't this does happen outside of the"
    },
    {
      "index": 396,
      "start_seconds": 823,
      "source_timestamp": "13:43",
      "end_seconds": null,
      "text": "code base of the of the stake pools and"
    },
    {
      "index": 397,
      "start_seconds": 825,
      "source_timestamp": "13:45",
      "end_seconds": null,
      "text": "within uh the runtime itself."
    },
    {
      "index": 398,
      "start_seconds": 828,
      "source_timestamp": "13:48",
      "end_seconds": null,
      "text": "And also ideally um do complement your"
    },
    {
      "index": 399,
      "start_seconds": 831,
      "source_timestamp": "13:51",
      "end_seconds": null,
      "text": "audits with formal verification because"
    },
    {
      "index": 400,
      "start_seconds": 833,
      "source_timestamp": "13:53",
      "end_seconds": null,
      "text": "formal verification makes you"
    },
    {
      "index": 401,
      "start_seconds": 836,
      "source_timestamp": "13:56",
      "end_seconds": null,
      "text": "or forces you to make your implicit"
    },
    {
      "index": 402,
      "start_seconds": 837,
      "source_timestamp": "13:57",
      "end_seconds": null,
      "text": "assumptions explicit because you have to"
    },
    {
      "index": 403,
      "start_seconds": 839,
      "source_timestamp": "13:59",
      "end_seconds": null,
      "text": "list them in order to prove other"
    },
    {
      "index": 404,
      "start_seconds": 841,
      "source_timestamp": "14:01",
      "end_seconds": null,
      "text": "invariants. So once you do that, you"
    },
    {
      "index": 405,
      "start_seconds": 843,
      "source_timestamp": "14:03",
      "end_seconds": null,
      "text": "wonder oh is this really true? And you"
    },
    {
      "index": 406,
      "start_seconds": 845,
      "source_timestamp": "14:05",
      "end_seconds": null,
      "text": "can also like we did in this case uh"
    },
    {
      "index": 407,
      "start_seconds": 847,
      "source_timestamp": "14:07",
      "end_seconds": null,
      "text": "verify those assumptions uh"
    },
    {
      "index": 408,
      "start_seconds": 851,
      "source_timestamp": "14:11",
      "end_seconds": null,
      "text": "individually independently."
    },
    {
      "index": 409,
      "start_seconds": 852,
      "source_timestamp": "14:12",
      "end_seconds": null,
      "text": "And you know in some some cases like in"
    },
    {
      "index": 410,
      "start_seconds": 855,
      "source_timestamp": "14:15",
      "end_seconds": null,
      "text": "this one you get um unexpected results."
    },
    {
      "index": 411,
      "start_seconds": 858,
      "source_timestamp": "14:18",
      "end_seconds": null,
      "text": "Um yeah, this is all I have. Uh thank"
    },
    {
      "index": 412,
      "start_seconds": 861,
      "source_timestamp": "14:21",
      "end_seconds": null,
      "text": "you. I don't think we have time for"
    },
    {
      "index": 413,
      "start_seconds": 862,
      "source_timestamp": "14:22",
      "end_seconds": null,
      "text": "questions, but you can catch me"
    },
    {
      "index": 414,
      "start_seconds": 864,
      "source_timestamp": "14:24",
      "end_seconds": null,
      "text": "afterwards. Thanks."
    }
  ]
}
