Multipartite(Auto-updating) Killed IOU.RUNE record
Updated 2024-01-15
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
›
⌄
⌄
-- Note Merge Request !2375, RUNE burnt before KillSwitchSatrt briefly minting more RUNE than was burnt.
-- https://gitlab.com/thorchain/thornode/-/merge_requests/2375
/*
Some 'rolled-back-rune' context:
https://gitlab.com/thorchain/thornode/-/issues/1451#note_1193775908
Associated with v0.56 / !1750, some THOR.RUNE was previously swapped with BEP2.RUNE
(returning switched-from BEP2.RUNE to the circulating supply)
, then some THOR.RUNE burned to cancel Asgard THOR.RUNE oversolvency (and balance this return).
Ultimately, the pre-killswitch total supply was 61,994.68108194 ('rolled-back RUNE')
and the switched amount (both to and from) was 190,799.65409521 less than indicated by Flipside.
'switched_back_block' is treated as the block in which the THOR.RUNE was burned, block 1069419 .
For referenced, /network burned_bep_2_rune was decreased to match in block 2719276 (!1961).
*/
WITH
dim_convert AS (
SELECT DISTINCT dim_block_id, block_id
FROM thorchain.core.dim_block
),
constants AS
(
SELECT
5256000 AS killswitchduration_nstants,
6500000 AS killswitchstart_mimir1,
61994.68108194 AS rolled_back_rune,
190799.65409521 AS switched_back_rune,
1069419 AS switched_back_block
),
context AS
QueryRunArchived: QueryRun has been archived