Query editor
-- Replay of the Chainlink USDe/USD price history (file 261023_eth-usde-chainlink-prices.csv, 930 points, 2024-04-22 to 2026-10-10)-- against today's USDe / sUSDe collateralised stablecoin positions on Aave v3 Core, Aave v3 Prime and the Aave v4 Ethena spokes.-- Positions: materialized views of queries 8998811 (Core), 8998816 (Prime), 8998819 (v4). Refresh the views to update positions.-- sUSDe held at a fixed 1.25449 USDe, every other price constant.-- A wallet is liquidatable at time t when the USDe price at t is below its wallet-level liquidation price (health factor < 1),-- or when its health factor is already below 1. Liquidatable debt is the pair debt of those wallets, before any close factor.withprices as (select cast(split_part(x, ',', 1) as timestamp) as ts, cast(split_part(x, ',', 2) as double) as usde_usdfrom unnest(split('2024-04-22 21:16:35,0.99910090;2024-04-23 21:16:35,0.99865219;2024-04-24 21:16:47,0.99889802;2024-04-25 21:17:11,0.99941246;2024-04-26 21:17:23,0.99872415;2024-04-27 21:17:47,0.99931383;2024-04-28 21:18:11,0.99892416;2024-04-29 21:18:23,0.99867983;2024-04-30 21:18:47,0.99877063;2024-05-01 21:18:59,0.99838794;2024-05-02 21:19:23,0.99887858;2024-05-03 21:19:47,0.99879979;2024-05-04 21:20:11,0.99924083;2024-05-05 21:20:35,0.99880742;2024-05-06 21:21:11,0.99928290;2024-05-07 21:21:47,0.99938070;2024-05-08 21:22:11,1.00009748;2024-05-09 21:23:11,1.00122004;2024-05-10 21:23:35,1.00100000;2024-05-11 21:23:59,1.00032834;2024-05-12 21:24:23,1.00069563;2024-05-13 21:25:35,1.00110000;2024-05-14 21:25:59,1.00078137;2024-05-15 21:26:35,1.00131415;2024-05-16 21:26:59,1.00085997;2024-05-17 21:27:35,1.00162859;2024-05-18 21:27:59,1.00133148;2024-05-19 21:28:23,1.00143416;2024-05-20 21:28:35,1.00204750;2024-05-21 21:28:59,1.00106952;2024-05-22 21:29:23,1.00131077;2024-05-23 21:29:35,1.00071299;2024-05-24 21:29:59,1.00120000;2024-05-25 21:30:23,1.00123811;2024-05-26 21:30:35,1.00110000;2024-05-27 21:30:59,1.00035492;2024-05-28 21:32:23,1.00027573;2024-05-29 21:32:35,1.00079999;2024-05-30 21:32:59,1.00120000;2024-05-31 21:33:11,1.00026953;2024-06-01 21:33:35,1.00101011;2024-06-02 21:33:59,1.00229077;2024-06-03 21:34:23,1.00130000;2024-06-04 21:34:35,1.00118766;2024-06-05 21:34:47,1.00152598;2024-06-06 21:35:11,1.00120000;2024-06-07 21:35:47,1.00130000;2024-06-08 21:36:11,1.00116583;2024-06-09 21:36:35,1.00120000;2024-06-10 21:36:59,1.00030000;2024-06-11 21:37:23,1.00114966;2024-06-12 21:37:59,1.00095561;2024-06-13 21:38:23,1.00103499;2024-06-14 21:38:47,1.00080000;2024-06-15 21:39:11,1.00060214;2024-06-16 21:39:35,1.00040000;2024-06-17 21:39:47,1.00120000;2024-06-18 21:40:11,1.00090962;2024-06-19 21:40:35,1.00072229;2024-06-20 21:40:59,1.00061458;2024-06-21 21:41:23,1.00090000;2024-06-22 21:41:35,1.00124312;2024-06-23 21:41:59,1.00065778;2024-06-24 21:42:23,1.00015551;2024-06-25 21:42:47,1.00092840;2024-06-26 21:43:11,1.00041230;2024-06-27 21:43:23,0.99949999;2024-06-28 21:43:47,0.99953843;2024-06-29 21:44:23,0.99899772;2024-06-30 21:44:47,0.99914245;2024-07-01 21:45:11,0.99900196;2024-07-02 21:45:35,0.99874825;2024-07-03 21:45:47,0.99859999;2024-07-04 21:45:59,0.99845818;2024-07-05 21:46:23,0.99891495;2024-07-06 21:46:47,0.99897275;2024-07-07 21:46:59,0.99884524;2024-07-08 21:47:35,0.99890871;2024-07-09 21:47:47,0.99880566;2024-07-10 21:48:23,0.99878777;2024-07-11 21:48:47,0.99870000;2024-07-12 21:48:59,0.99916278;2024-07-13 21:49:23,0.99891925;2024-07-14 21:49:23,0.99937142;2024-07-15 21:49:47,0.99892280;2024-07-16 21:50:11,0.99890159;2024-07-17 21:50:35,0.99887454;2024-07-18 21:50:47,0.99895379;2024-07-19 21:51:11,1.00012083;2024-07-20 21:51:47,1.00039631;2024-07-21 21:51:59,1.00026947;2024-07-22 21:52:11,1.00023601;2024-07-23 21:52:35,0.99993175;2024-07-24 21:52:59,0.99977970;2024-07-25 21:53:23,0.99871124;2024-07-26 21:53:47,0.99878221;2024-07-27 21:54:11,0.99880375;2024-07-28 21:54:35,0.99884866;2024-07-29 21:54:47,0.99879682;2024-07-30 21:55:23,0.99913623;2024-07-31 21:55:47,0.99971334;2024-08-01 21:55:59,0.99879249;2024-08-02 21:56:11,0.99930243;2024-08-03 21:56:23,0.99943624;2024-08-04 21:56:47,0.99874405;2024-08-05 08:10:11,0.99864476;2024-08-06 08:10:47,0.99898905;2024-08-07 08:11:35,1.00031681;2024-08-08 08:11:47,1.00061740;2024-08-09 08:12:11,1.00090000;2024-08-10 08:12:47,1.00085877;2024-08-11 08:13:23,1.00044019;2024-08-12 08:13:47,1.00014002;2024-08-13 08:15:11,0.99980000;2024-08-14 08:15:35,0.99909236;2024-08-15 08:16:23,0.99908976;2024-08-16 08:16:47,0.99904861;2024-08-17 08:17:11,0.99919387;2024-08-18 08:18:23,0.99897872;2024-08-19 08:18:47,0.99903601;2024-08-20 08:19:11,0.99910000;2024-08-21 08:19:23,0.99891338;2024-08-22 08:19:47,0.99926096;2024-08-23 08:19:59,0.99892102;2024-08-24 08:20:23,0.99925276;2024-08-25 08:20:47,0.99934965;2024-08-26 08:21:11,0.99915834;2024-08-27 08:21:35,0.99883981;2024-08-28 08:21:47,0.99905446;2024-08-29 08:22:11,0.99904381;2024-08-30 08:22:35,0.99888507;2024-08-31 08:23:11,0.99890055;2024-09-01 08:23:23,0.99866208;2024-09-02 08:23:35,0.99883178;2024-09-03 08:23:59,0.99891512;2024-09-04 08:24:23,0.99895798;2024-09-05 08:24:47,0.99926140;2024-09-06 08:25:11,0.99923072;2024-09-07 08:25:23,0.99903920;2024-09-08 08:25:47,0.99895917;2024-09-09 08:26:11,0.99910914;2024-09-10 08:26:35,0.99901282;2024-09-11 08:26:47,0.99881463;2024-09-12 08:26:59,0.99890000;2024-09-13 08:27:23,0.99873378;2024-09-14 08:27:47,0.99894709;2024-09-15 08:28:11,0.99909999;2024-09-16 08:28:35,0.99900000;2024-09-17 08:28:47,0.99881421;2024-09-18 08:28:59,0.99892032;2024-09-19 08:29:23,0.99878755;2024-09-20 08:29:35,0.99879298;2024-09-21 08:29:47,0.99904083;2024-09-22 08:30:23,0.99913835;2024-09-23 08:30:35,0.99906909;2024-09-24 08:30:59,0.99913856;2024-09-25 08:31:23,0.99906419;2024-09-26 08:31:47,0.99898228;2024-09-27 08:31:59,0.99918861;2024-09-28 08:32:11,0.99955447;2024-09-29 08:32:35,0.99955974;2024-09-30 08:32:59,0.99914860;2024-10-01 08:33:11,0.99940551;2024-10-02 08:33:23,0.99964214;2024-10-03 08:34:23,0.99964174;2024-10-04 08:34:59,0.99943257;2024-10-05 08:35:35,0.99955092;2024-10-06 08:35:59,0.99898329;2024-10-07 08:36:11,0.99878058;2024-10-08 08:36:35,0.99876955;2024-10-09 08:36:59,0.99847951;2024-10-10 08:37:23,0.99858651;2024-10-11 08:37:47,0.99841891;2024-10-12 08:38:11,0.99878924;2024-10-13 08:38:23,0.99889024;2024-10-14 08:38:59,0.99841646;2024-10-15 08:39:23,0.99869893;2024-10-16 08:39:47,0.99905119;2024-10-17 08:40:23,0.99911019;2024-10-18 08:40:47,0.99941072;2024-10-19 08:40:47,0.99983169;2024-10-20 08:41:23,1.00009860;2024-10-21 08:41:35,1.00012325;2024-10-22 08:42:11,1.00030000;2024-10-23 08:42:23,1.00059925;2024-10-24 08:42:47,0.99990000;2024-10-25 08:43:11,1.00059993;2024-10-26 08:43:47,0.99965774;2024-10-27 08:43:59,0.99952718;2024-10-28 08:44:23,0.99965938;2024-10-29 08:44:35,1.00062116;2024-10-30 08:44:47,1.00098430;2024-10-31 08:44:59,1.00102240;2024-11-01 08:45:11,1.00020332;2024-11-02 08:45:23,1.00066102;2024-11-03 08:45:47,1.00082610;2024-11-04 08:46:11,1.00044390;2024-11-05 08:46:23,1.00056120;2024-11-06 08:46:35,1.00101545;2024-11-07 08:46:59,1.00128564;2024-11-08 08:47:11,1.00079798;2024-11-09 08:47:23,1.00091598;2024-11-10 08:47:47,1.00100000;2024-11-11 08:48:11,1.00179860;2024-11-12 08:48:35,1.00179325;2024-11-13 08:48:59,1.00233600;2024-11-14 08:49:35,1.00155321;2024-11-15 08:49:47,1.00180000;2024-11-16 08:49:59,1.00171480;2024-11-17 08:50:23,1.00108776;2024-11-18 08:50:35,1.00145036;2024-11-19 08:50:59,1.00175208;2024-11-20 08:51:35,1.00223230;2024-11-21 08:51:59,1.00168012;2024-11-22 08:51:59,1.00221190;2024-11-23 08:52:11,1.00230266;2024-11-24 08:52:35,1.00224660;2024-11-25 08:52:59,1.00205732;2024-11-26 08:53:35,1.00117944;2024-11-27 08:53:47,1.00088168;2024-11-28 08:54:11,1.00122169;2024-11-29 08:54:35,1.00123129;2024-11-30 08:54:59,1.00129333;2024-12-01 08:55:35,1.00170000;2024-12-02 08:55:47,1.00134609;2024-12-03 08:55:47,1.00110000;2024-12-04 08:55:59,1.00154920;2024-12-05 08:56:23,1.00201292;2024-12-06 08:56:59,1.00150000;2024-12-07 08:57:23,1.00228360;2024-12-08 08:57:47,1.00165535;2024-12-09 08:57:59,1.00125671;2024-12-10 08:58:23,1.00172421;2024-12-11 08:58:35,1.00166352;2024-12-12 08:58:47,1.00152275;2024-12-13 08:58:59,1.00151953;2024-12-14 08:59:11,1.00134896;2024-12-15 08:59:47,1.00110000;2024-12-16 08:59:59,1.00079023;2024-12-17 09:00:11,1.00116375;2024-12-18 09:00:23,1.00110000;2024-12-19 09:00:47,1.00046450;2024-12-20 09:01:23,0.99746544;2024-12-21 09:01:47,0.99952772;2024-12-22 09:02:23,0.99968678;2024-12-23 09:02:47,0.99916690;2024-12-24 09:02:59,0.99857333;2024-12-25 09:03:23,0.99938961;2024-12-26 09:03:47,0.99847486;2024-12-27 09:04:23,0.99773123;2024-12-28 09:04:47,0.99744622;2024-12-29 09:04:59,0.99741984;2024-12-30 09:05:11,0.99714958;2024-12-31 09:05:23,0.99740777;2025-01-01 09:05:35,0.99753960;2025-01-02 09:05:59,0.99725842;2025-01-03 09:06:23,0.99827573;2025-01-04 09:06:47,0.99853964;2025-01-05 09:06:59,0.99880252;2025-01-06 09:07:11,0.99876422;2025-01-07 09:07:23,0.99909999;2025-01-08 09:07:35,0.99879232;2025-01-09 09:07:59,0.99904856;2025-01-10 09:08:23,0.99924112;2025-01-11 09:08:47,0.99929999;2025-01-12 09:08:59,0.99918515;2025-01-13 09:09:23,0.99988889;2025-01-14 09:09:23,0.99978975;2025-01-15 09:09:47,0.99980904;2025-01-16 09:10:11,1.00022045;2025-01-17 09:10:23,0.99973677;2025-01-18 09:10:59,0.99958136;2025-01-19 09:11:11,0.99844943;2025-01-20 09:11:23,0.99773916;2025-01-21 09:11:47,0.99816105;2025-01-22 09:12:11,0.99955945;2025-01-23 09:12:23,0.99949638;2025-01-24 09:12:47,0.99994890;2025-01-25 09:13:11,1.00039145;2025-01-26 09:13:35,1.00054237;2025-01-27 09:13:59,0.99988519;2025-01-28 09:14:11,1.00049766;2025-01-29 09:14:23,1.00090490;2025-01-30 09:14:35,1.00110000;2025-01-31 09:14:47,1.00093762;2025-02-01 09:15:11,1.00096082;2025-02-02 09:15:35,1.00032927;2025-02-03 09:15:47,0.99931375;2025-02-04 09:15:59,0.99971078;2025-02-05 09:16:23,0.99988988;2025-02-06 09:16:35,1.00053120;2025-02-07 09:16:47,0.99989999;2025-02-08 09:17:11,1.00015146;2025-02-09 09:17:35,1.00035054;2025-02-10 09:17:59,1.00000000;2025-02-11 09:18:11,1.00038558;2025-02-12 09:18:35,0.99930462;2025-02-13 09:18:47,0.99957608;2025-02-14 09:18:59,1.00007448;2025-02-15 09:19:23,0.99982672;2025-02-16 09:19:59,0.99939917;2025-02-17 09:20:11,0.99945323;2025-02-18 09:21:23,0.99905133;2025-02-19 09:21:59,0.99871391;2025-02-20 09:22:11,0.99947433;2025-02-21 09:22:35,0.99991843;2025-02-21 15:32:23,0.99484071;2025-02-21 15:40:47,0.98240092;2025-02-21 15:45:11,0.97721024;2025-02-21 15:47:47,0.98260890;2025-02-21 15:48:11,0.99189441;2025-02-21 16:19:11,0.99748951;2025-02-22 16:19:35,0.99938000;2025-02-23 16:19:47,1.00050480;2025-02-24 16:20:11,1.00052830;2025-02-25 16:20:23,0.99909067;2025-02-26 16:20:47,0.99933138;2025-02-27 16:21:23,0.99974330;2025-02-28 16:21:59,0.99901380;2025-03-01 16:22:11,0.99899187;2025-03-02 16:22:35,0.99911504;2025-03-03 16:23:11,0.99871593;2025-03-04 16:23:35,0.99869682;2025-03-05 16:23:59,0.99933655;2025-03-06 16:24:23,0.99900928;2025-03-07 16:24:35,0.99885747;2025-03-08 16:24:59,0.99921795;2025-03-09 16:25:11,0.99947257;2025-03-10 16:26:23,0.99965995;2025-03-11 16:26:59,0.99948635;2025-03-12 16:27:11,0.99928408;2025-03-13 16:27:35,0.99962914;2025-03-14 16:27:47,0.99974565;2025-03-15 16:27:59,0.99973024;2025-03-16 16:28:35,0.99960218;2025-03-17 16:29:11,0.99959970;2025-03-18 16:30:35,0.99960020;2025-03-19 16:30:59,0.99979372;2025-03-20 16:31:23,0.99968102;2025-03-21 16:31:35,0.99969167;2025-03-22 16:31:59,0.99956276;2025-03-23 16:33:23,0.99967918;2025-03-24 16:33:59,0.99960645;2025-03-25 16:34:11,0.99937217;2025-03-26 16:34:47,0.99966574;2025-03-27 16:35:11,0.99915803;2025-03-28 16:35:23,0.99909476;2025-03-29 16:35:47,0.99957900;2025-03-30 16:36:11,0.99997268;2025-03-31 16:37:35,0.99991938;2025-04-01 16:37:59,1.00000387;2025-04-02 16:38:11,0.99991116;2025-04-03 16:38:47,0.99954600;2025-04-04 16:40:11,0.99928010;2025-04-05 16:40:23,0.99901585;2025-04-06 16:41:11,0.99909781;2025-04-07 16:41:47,0.99887624;2025-04-08 16:42:23,0.99912954;2025-04-09 16:42:59,0.99866833;2025-04-10 16:43:23,0.99867319;2025-04-11 16:43:47,0.99888553;2025-04-12 16:43:59,0.99898790;2025-04-13 16:44:23,0.99886523;2025-04-14 16:44:35,0.99909008;2025-04-15 16:44:59,0.99918748;2025-04-16 16:45:23,0.99928546;2025-04-17 16:45:47,0.99921631;2025-04-18 16:46:11,0.99921565;2025-04-19 16:46:35,0.99916864;2025-04-20 16:46:47,0.99940823;2025-04-21 16:47:23,0.99937312;2025-04-22 16:47:35,0.99968462;2025-04-23 16:47:47,0.99935521;2025-04-24 16:47:59,0.99964353;2025-04-25 16:48:11,0.99980785;2025-04-26 16:48:35,0.99944437;2025-04-27 16:48:59,0.99945002;2025-04-28 16:49:35,0.99966339;2025-04-29 16:49:59,0.99962858;2025-04-30 16:50:11,0.99965358;2025-05-01 16:50:35,1.00045021;2025-05-02 16:51:11,1.00090288;2025-05-03 16:51:11,1.00059648;2025-05-04 16:51:23,1.00048234;2025-05-05 16:51:35,1.00034580;2025-05-06 16:52:11,1.00029923;2025-05-07 16:52:23,1.00054960;2025-05-08 16:52:47,1.00013007;2025-05-09 16:52:59,1.00028993;2025-05-10 16:53:23,1.00024382;2025-05-11 16:53:47,1.00017680;2025-05-12 16:54:11,1.00060844;2025-05-13 16:54:35,1.00078799;2025-05-14 16:54:35,1.00060000;2025-05-15 16:54:47,1.00049364;2025-05-16 16:55:11,1.00114360;2025-05-17 16:55:23,1.00062808;2025-05-18 16:55:59,1.00037281;2025-05-19 16:56:35,1.00041108;2025-05-20 16:56:59,1.00078470;2025-05-21 16:57:23,1.00102530;2025-05-22 16:57:47,1.00046097;2025-05-23 16:58:11,1.00038533;2025-05-24 16:58:23,1.00075590;2025-05-25 16:58:47,1.00054623;2025-05-26 16:59:11,1.00069381;2025-05-27 16:59:23,1.00061077;2025-05-28 16:59:59,1.00087387;2025-05-29 17:00:23,0.99953150;2025-05-30 17:00:35,0.99979000;2025-05-31 17:00:47,1.00105557;2025-06-01 17:01:23,1.00118992;2025-06-02 17:01:47,1.00094935;2025-06-03 17:02:11,1.00132070;2025-06-04 17:02:23,1.00131472;2025-06-05 17:02:35,1.00099335;2025-06-06 17:02:47,1.00137170;2025-06-07 17:03:11,1.00118909;2025-06-08 17:03:23,1.00107821;2025-06-09 17:03:35,1.00084337;2025-06-10 17:04:11,1.00083708;2025-06-11 17:04:47,1.00076657;2025-06-12 17:05:23,1.00051760;2025-06-13 17:05:59,1.00055978;2025-06-14 17:06:35,1.00025841;2025-06-15 17:06:59,0.99997668;2025-06-16 17:07:11,1.00003627;2025-06-17 17:07:23,0.99952865;2025-06-18 17:07:47,1.00006042;2025-06-19 17:08:23,1.00006994;2025-06-20 17:09:47,1.00043022;2025-06-20 17:13:23,1.00043022;2025-06-21 17:13:35,1.00047367;2025-06-22 17:13:59,1.00034726;2025-06-23 17:14:11,1.00044590;2025-06-24 17:14:35,1.00055004;2025-06-25 17:14:47,1.00011433;2025-06-26 17:15:11,1.00005684;2025-06-27 17:15:23,1.00020135;2025-06-28 17:15:47,1.00027030;2025-06-29 17:16:11,1.00032022;2025-06-30 17:16:35,1.00010000;2025-07-01 17:16:47,1.00009719;2025-07-02 17:17:11,1.00025331;2025-07-03 17:17:35,1.00019920;2025-07-04 17:17:47,1.00013210;2025-07-05 17:18:11,1.00026399;2025-07-06 17:18:35,0.99999645;2025-07-07 17:18:59,1.00000501;2025-07-08 17:19:11,1.00031472;2025-07-09 17:19:23,1.00080037;2025-07-10 17:19:47,1.00076646;2025-07-11 17:19:59,1.00071255;2025-07-12 17:20:23,1.00033272;2025-07-13 17:20:59,1.00065527;2025-07-14 17:21:23,1.00045680;2025-07-15 17:21:47,1.00045280;2025-07-16 17:22:23,1.00083813;2025-07-17 17:22:47,1.00077167;2025-07-18 17:23:11,1.00161831;2025-07-19 17:23:23,1.00109464;2025-07-20 17:23:47,1.00117960;2025-07-21 17:24:23,1.00168684;2025-07-22 17:24:35,1.00144345;2025-07-23 17:24:47,1.00128552;2025-07-24 17:25:23,1.00115102;2025-07-25 17:25:59,1.00107724;2025-07-26 17:26:11,1.00109914;2025-07-27 17:26:35,1.00108778;2025-07-28 17:26:59,1.00086034;2025-07-29 17:27:11,1.00084066;2025-07-30 17:27:35,1.00084438;2025-07-31 17:27:47,1.00069299;2025-08-01 17:28:59,1.00053508;2025-08-02 17:29:11,1.00045722;2025-08-03 17:29:35,1.00083067;2025-08-04 17:29:47,1.00079756;2025-08-05 17:29:59,1.00058576;2025-08-06 17:30:23,1.00083427;2025-08-07 17:30:35,1.00076461;2025-08-07 22:44:35,1.00090647;2025-08-08 21:44:59,1.00066289;2025-08-09 20:45:35,1.00101794;2025-08-10 19:45:47,1.00084162;2025-08-11 18:46:11,1.00049314;2025-08-12 17:46:23,1.00086340;2025-08-13 16:46:47,1.00071530;2025-08-14 15:47:23,1.00062907;2025-08-15 14:47:59,1.00076497;2025-08-16 13:48:11,1.00122087;2025-08-17 12:48:23,1.00113545;2025-08-18 11:48:35,1.00131105;2025-08-19 10:48:47,1.00106890;2025-08-20 09:48:59,1.00061056;2025-08-21 08:49:23,1.00077717;2025-08-22 07:49:35,1.00052831;2025-08-23 06:49:47,1.00046326;2025-08-24 05:49:59,1.00041921;2025-08-25 04:50:35,1.00050459;2025-08-26 03:50:47,1.00068579;2025-08-27 02:51:11,1.00084304;2025-08-28 01:51:23,1.00075541;2025-08-29 00:51:35,1.00083278;2025-08-29 23:51:47,1.00051409;2025-08-30 22:52:11,1.00059503;2025-08-31 21:52:11,1.00087889;2025-09-01 20:52:35,1.00073045;2025-09-02 19:52:59,1.00077539;2025-09-03 18:53:11,1.00098743;2025-09-04 17:53:23,1.00081119;2025-09-05 16:53:47,1.00083291;2025-09-06 15:53:59,1.00086533;2025-09-07 14:54:11,1.00091216;2025-09-08 13:54:35,1.00072200;2025-09-09 12:54:59,1.00100876;2025-09-10 11:55:11,1.00077046;2025-09-11 10:55:35,1.00081460;2025-09-12 09:55:47,1.00089132;2025-09-13 08:55:59,1.00117118;2025-09-14 07:56:23,1.00127218;2025-09-15 06:56:47,1.00121040;2025-09-16 05:57:23,1.00106820;2025-09-17 04:57:35,1.00107795;2025-09-18 03:57:47,1.00108114;2025-09-19 02:58:11,1.00111161;2025-09-20 01:58:59,1.00125332;2025-09-21 00:59:11,1.00077122;2025-09-21 23:59:23,1.00034309;2025-09-22 22:59:47,1.00115069;2025-09-23 21:59:59,1.00067895;2025-09-24 21:00:35,1.00084835;2025-09-25 20:00:59,0.99927122;2025-09-26 19:01:23,0.99995434;2025-09-27 18:01:35,0.99998528;2025-09-28 17:01:59,1.00044028;2025-09-29 16:02:23,1.00087738;2025-09-30 15:02:47,1.00094483;2025-10-01 14:02:59,1.00096121;2025-10-02 13:03:23,1.00092776;2025-10-03 12:03:47,1.00037781;2025-10-04 11:03:59,1.00048614;2025-10-05 10:04:23,0.99998416;2025-10-06 09:04:47,1.00005553;2025-10-07 08:04:47,1.00006089;2025-10-08 07:05:11,0.99999892;2025-10-09 06:05:23,1.00024884;2025-10-10 05:05:59,1.00021067;2025-10-10 23:04:11,0.99293808;2025-10-10 23:05:35,0.99865662;2025-10-11 22:05:47,1.00006811;2025-10-12 21:05:59,1.00009425;2025-10-13 20:06:35,1.00034055;2025-10-14 19:06:59,0.99998508;2025-10-15 18:07:23,1.00005508;2025-10-16 17:07:35,0.99948435;2025-10-17 16:07:47,0.99925207;2025-10-18 15:08:11,0.99944388;2025-10-19 14:08:23,0.99948607;2025-10-20 13:08:47,0.99941106;2025-10-21 12:09:11,0.99937089;2025-10-22 11:09:23,0.99948313;2025-10-23 10:09:47,0.99935902;2025-10-24 09:10:23,0.99938306;2025-10-25 08:10:47,0.99928569;2025-10-26 07:11:11,0.99933276;2025-10-27 06:11:23,0.99921484;2025-10-28 05:11:35,0.99920582;2025-10-29 04:12:11,0.99931229;2025-10-30 03:12:23,0.99932819;2025-10-31 02:12:59,0.99922016;2025-11-01 01:14:23,0.99890677;2025-11-02 00:15:47,0.99879628;2025-11-02 23:16:23,0.99906048;2025-11-03 22:16:35,0.99914074;2025-11-04 21:17:11,0.99891470;2025-11-05 20:17:35,0.99909545;2025-11-06 19:17:47,0.99890473;2025-11-07 18:18:11,0.99875079;2025-11-08 17:18:35,0.99898408;2025-11-09 16:18:47,0.99904046;2025-11-10 15:19:11,0.99908891;2025-11-11 14:19:23,0.99914833;2025-11-12 13:19:47,0.99908365;2025-11-13 12:20:23,0.99915146;2025-11-14 11:20:47,0.99884049;2025-11-15 10:21:11,0.99862557;2025-11-16 09:21:35,0.99865248;2025-11-17 08:21:47,0.99854905;2025-11-18 07:22:11,0.99828454;2025-11-19 06:22:35,0.99850662;2025-11-20 05:22:59,0.99846236;2025-11-21 04:23:35,0.99826521;2025-11-22 03:23:47,0.99862586;2025-11-23 02:24:11,0.99878381;2025-11-24 01:24:23,0.99906907;2025-11-25 00:24:35,0.99893372;2025-11-25 23:24:59,0.99898773;2025-11-26 22:25:11,0.99929800;2025-11-27 21:25:35,0.99925000;2025-11-28 20:25:59,0.99933797;2025-11-29 19:26:23,0.99943952;2025-11-30 18:26:35,0.99922026;2025-12-01 17:26:59,0.99920084;2025-12-02 16:27:23,0.99937381;2025-12-03 15:27:35,0.99936520;2025-12-04 14:28:11,0.99929856;2025-12-04 14:29:23,0.99930937;2025-12-05 13:29:47,0.99935223;2025-12-06 12:29:59,0.99940127;2025-12-07 11:30:23,0.99948947;2025-12-08 10:30:47,0.99924847;2025-12-09 09:30:59,0.99924142;2025-12-10 08:31:23,0.99921630;2025-12-11 07:31:35,0.99922277;2025-12-12 06:31:59,0.99932185;2025-12-13 05:32:11,0.99930269;2025-12-14 04:32:23,0.99934268;2025-12-15 03:32:23,0.99931139;2025-12-16 02:32:35,0.99922968;2025-12-17 01:32:59,0.99912064;2025-12-18 00:33:11,0.99919426;2025-12-18 23:33:35,0.99895572;2025-12-19 22:33:47,0.99886628;2025-12-20 21:34:23,0.99902576;2025-12-21 20:34:35,0.99911133;2025-12-22 19:35:35,0.99887637;2025-12-23 18:35:59,0.99887644;2025-12-24 17:36:23,0.99881083;2025-12-25 16:36:35,0.99879166;2025-12-26 15:36:59,0.99867937;2025-12-27 14:37:23,0.99882310;2025-12-28 13:38:23,0.99860671;2025-12-29 12:38:59,0.99855442;2025-12-30 11:39:11,0.99863827;2025-12-31 10:39:23,0.99858832;2026-01-01 09:39:47,0.99842612;2026-01-02 08:40:11,0.99870885;2026-01-03 07:40:23,0.99954260;2026-01-04 06:40:47,0.99961677;2026-01-05 05:40:59,0.99931477;2026-01-06 04:41:11,0.99959660;2026-01-07 03:41:59,0.99928640;2026-01-08 02:42:11,0.99962164;2026-01-09 01:42:23,0.99951696;2026-01-10 00:42:59,0.99905657;2026-01-10 23:43:11,0.99919537;2026-01-11 22:43:35,0.99903900;2026-01-12 21:43:59,0.99959698;2026-01-13 20:44:23,1.00016739;2026-01-14 19:44:47,1.00021610;2026-01-15 18:44:59,0.99999286;2026-01-16 17:45:23,0.99988243;2026-01-17 16:45:35,0.99980257;2026-01-18 15:45:59,0.99982840;2026-01-19 14:46:11,0.99946764;2026-01-20 13:46:23,0.99923873;2026-01-21 12:46:35,0.99926595;2026-01-22 11:46:59,0.99946582;2026-01-23 10:47:23,0.99866200;2026-01-24 09:47:35,0.99847391;2026-01-25 08:47:59,0.99844829;2026-01-26 07:48:11,0.99863196;2026-01-27 06:48:35,0.99884525;2026-01-28 05:48:47,0.99862174;2026-01-29 04:48:59,0.99847692;2026-01-30 03:49:11,0.99844504;2026-01-31 02:49:35,0.99831607;2026-02-01 01:50:47,0.99861890;2026-02-02 00:51:11,0.99871637;2026-02-02 23:51:47,0.99882884;2026-02-03 22:52:11,0.99832484;2026-02-04 21:52:47,0.99784678;2026-02-05 19:26:47,0.99787033;2026-02-06 18:26:59,0.99848724;2026-02-07 17:27:11,0.99852772;2026-02-08 16:27:35,0.99859880;2026-02-09 15:27:59,0.99870941;2026-02-10 14:28:11,0.99855302;2026-02-11 13:28:35,0.99877799;2026-02-12 12:29:47,0.99877915;2026-02-13 11:30:11,0.99852119;2026-02-14 10:30:35,0.99872632;2026-02-15 09:30:47,0.99892450;2026-02-16 08:31:11,0.99870608;2026-02-17 07:31:47,0.99899940;2026-02-18 06:31:59,0.99916413;2026-02-19 05:32:47,0.99933372;2026-02-20 04:33:11,0.99897476;2026-02-21 03:33:47,0.99902432;2026-02-22 02:33:59,0.99900460;2026-02-23 01:34:23,0.99901497;2026-02-24 00:34:47,0.99908900;2026-02-24 23:34:59,0.99930571;2026-02-25 22:36:11,0.99951978;2026-02-26 21:36:35,0.99936583;2026-02-27 20:37:11,0.99920432;2026-02-28 19:37:35,0.99926012;2026-03-01 18:37:59,0.99925171;2026-03-02 17:38:59,0.99926932;2026-03-03 16:39:23,0.99961366;2026-03-04 15:39:35,0.99951351;2026-03-05 14:40:23,0.99947899;2026-03-06 13:40:47,0.99946541;2026-03-07 12:41:11,0.99923820;2026-03-08 11:41:35,0.99931237;2026-03-09 10:41:47,0.99909522;2026-03-10 09:42:11,0.99969311;2026-03-11 08:42:35,0.99951033;2026-03-12 07:42:47,0.99947442;2026-03-13 06:42:59,0.99982405;2026-03-14 05:43:11,1.00027357;2026-03-15 04:43:35,1.00013474;2026-03-16 03:43:47,1.00003921;2026-03-17 02:44:11,0.99992126;2026-03-18 01:44:35,1.00015730;2026-03-19 00:44:59,0.99965725;2026-03-19 23:45:11,0.99956422;2026-03-20 22:45:23,0.99994962;2026-03-21 21:45:35,0.99976792;2026-03-22 20:46:11,0.99955500;2026-03-23 19:46:23,0.99928705;2026-03-24 18:46:59,0.99925823;2026-03-25 17:47:11,0.99949733;2026-03-26 16:47:35,0.99943123;2026-03-27 15:47:59,0.99954592;2026-03-28 14:48:23,0.99932705;2026-03-29 13:48:47,0.99915199;2026-03-30 12:49:11,0.99923952;2026-03-31 11:49:35,0.99917690;2026-04-01 10:50:11,0.99935900;2026-04-02 09:50:23,0.99947800;2026-04-03 08:50:35,0.99945564;2026-04-04 07:50:59,0.99950344;2026-04-05 06:51:35,0.99954699;2026-04-06 05:52:11,0.99965468;2026-04-07 04:52:47,0.99994971;2026-04-08 03:53:11,0.99997723;2026-04-09 02:53:35,0.99989928;2026-04-10 01:53:47,0.99954037;2026-04-11 00:54:11,0.99973066;2026-04-11 23:54:23,0.99978495;2026-04-12 22:54:35,0.99954285;2026-04-13 21:54:47,1.00022109;2026-04-14 20:55:23,0.99993089;2026-04-15 19:55:47,1.00019349;2026-04-16 18:55:59,0.99989742;2026-04-17 17:56:35,0.99976636;2026-04-18 16:56:47,0.99998985;2026-04-19 15:56:59,0.99984241;2026-04-20 14:57:23,0.99975580;2026-04-21 13:57:47,0.99937591;2026-04-22 12:58:11,0.99935542;2026-04-23 11:58:23,0.99955522;2026-04-24 10:58:59,0.99941728;2026-04-25 09:59:11,0.99944658;2026-04-26 08:59:23,0.99948783;2026-04-27 07:59:47,0.99937133;2026-04-28 07:00:23,0.99917630;2026-04-29 06:00:35,0.99911984;2026-04-30 05:00:47,0.99899146;2026-05-01 04:01:11,0.99905391;2026-05-02 03:01:47,0.99907419;2026-05-03 02:01:59,0.99915577;2026-05-04 01:02:11,0.99930712;2026-05-05 00:02:47,0.99913011;2026-05-05 23:02:59,0.99931804;2026-05-06 22:03:11,0.99961800;2026-05-07 21:03:23,0.99921500;2026-05-08 20:03:35,0.99962200;2026-05-09 19:03:59,0.99939075;2026-05-10 18:04:11,0.99973423;2026-05-11 17:04:23,0.99932601;2026-05-12 16:04:35,0.99959224;2026-05-13 15:04:59,0.99988304;2026-05-14 14:05:23,1.00034244;2026-05-15 13:05:35,1.00029917;2026-05-16 12:06:11,0.99988740;2026-05-17 11:06:35,0.99997790;2026-05-18 10:06:47,0.99976130;2026-05-19 09:06:59,0.99963872;2026-05-20 08:07:11,0.99949606;2026-05-21 07:07:35,0.99924979;2026-05-22 06:07:59,0.99919739;2026-05-23 05:08:35,0.99910796;2026-05-24 04:09:11,0.99932478;2026-05-25 03:09:35,0.99867844;2026-05-26 02:09:59,0.99929907;2026-05-27 01:10:11,0.99898982;2026-05-28 00:10:23,0.99904213;2026-05-28 23:10:47,0.99892725;2026-05-29 22:10:59,0.99897148;2026-05-30 21:11:11,0.99896376;2026-05-31 20:11:47,0.99861212;2026-06-01 19:11:59,0.99881254;2026-06-02 18:12:11,0.99868224;2026-06-03 17:12:11,0.99874268;2026-06-04 16:12:23,0.99890066;2026-06-05 15:12:35,0.99956050;2026-06-06 14:12:59,0.99947807;2026-06-07 13:13:11,0.99944278;2026-06-08 12:13:23,0.99925125;2026-06-09 11:13:35,0.99931159;2026-06-10 10:13:59,0.99926980;2026-06-11 09:14:11,0.99877255;2026-06-12 08:14:35,0.99893556;2026-06-13 07:14:47,0.99957127;2026-06-14 06:15:59,0.99955070;2026-06-15 05:16:23,0.99938859;2026-06-16 04:16:35,0.99957884;2026-06-17 03:16:59,0.99956942;2026-06-18 02:17:23,0.99921425;2026-06-19 01:17:35,0.99914958;2026-06-20 00:17:59,0.99919410;2026-06-20 23:18:23,0.99915789;2026-06-21 22:18:35,0.99895182;2026-06-22 21:19:11,0.99878170;2026-06-23 20:19:23,0.99882757;2026-06-24 19:20:23,0.99849690;2026-06-25 18:20:59,0.99818244;2026-06-26 17:21:11,0.99813809;2026-06-27 16:21:23,0.99809017;2026-06-28 15:21:47,0.99815035;2026-06-29 14:22:11,0.99801287;2026-06-30 13:23:11,0.99781232;2026-07-01 12:23:35,0.99822385;2026-07-02 11:24:11,0.99822637;2026-07-03 10:24:35,0.99841645;2026-07-04 09:24:59,0.99881540;2026-07-05 08:25:23,0.99859952;2026-07-06 07:25:35,0.99838338;2026-07-07 06:25:59,0.99858584;2026-07-08 05:26:23,0.99859513;2026-07-09 04:26:47,0.99852816;2026-07-10 03:26:59,0.99962613;2026-07-11 02:27:11,0.99980523;2026-07-12 01:27:23,0.99982769;2026-07-13 00:27:47,0.99974873;2026-07-13 23:28:11,0.99974410;2026-07-14 22:28:35,0.99987049;2026-07-15 21:28:59,0.99988319;2026-07-16 20:29:23,0.99983951;2026-07-17 19:29:35,0.99986775;2026-07-18 18:29:47,0.99986870;2026-07-19 17:29:59,0.99987060;2026-07-20 16:30:23,0.99983407;2026-07-21 15:30:35,0.99992540;2026-07-22 14:30:47,0.99987126;2026-07-23 13:30:59,0.99987349;2026-07-24 12:31:23,0.99981076;2026-07-25 11:31:35,0.99977800;2026-07-26 10:31:59,0.99984100;2026-07-27 09:32:23,0.99985486;2026-07-28 08:32:35,0.99978752;2026-07-29 07:32:47,0.99975443;2026-07-30 06:32:59,0.99963967;2026-07-31 05:33:11,0.99977015;2026-08-01 04:33:23,0.99979528;2026-08-02 03:33:35,0.99975382;2026-08-03 02:33:59,0.99973899;2026-08-04 01:34:23,0.99975640;2026-08-05 00:34:35,0.99987128;2026-08-05 23:34:59,0.99990283;2026-08-06 22:35:11,0.99983716;2026-08-07 21:35:35,0.99992484;2026-08-08 20:36:11,0.99998656;2026-08-09 19:36:23,0.99997225;2026-08-10 18:36:59,0.99983753;2026-08-11 17:37:11,0.99975177;2026-08-12 16:37:35,0.99969289;2026-08-13 15:37:47,0.99979419;2026-08-14 14:38:23,0.99985144;2026-08-15 13:38:35,0.99988121;2026-08-16 12:38:47,0.99982727;2026-08-17 11:38:59,0.99985520;2026-08-18 10:39:11,0.99976330;2026-08-19 09:39:47,0.99982124;2026-08-20 08:40:59,0.99980830;2026-08-21 07:41:23,0.99984894;2026-08-22 06:41:59,0.99995994;2026-08-23 05:42:47,0.99994728;2026-08-24 04:42:59,0.99993352;2026-08-25 03:43:35,0.99981948;2026-08-26 02:44:11,0.99990457;2026-08-27 01:44:35,0.99988345;2026-08-28 00:44:35,0.99988033;2026-08-28 23:44:47,0.99990936;2026-08-29 22:45:11,0.99995682;2026-08-30 21:45:23,0.99987470;2026-08-31 20:45:47,0.99980440;2026-09-01 19:46:23,0.99962713;2026-09-02 18:46:35,0.99956444;2026-09-03 17:46:59,0.99993028;2026-09-04 16:47:35,0.99989034;2026-09-05 15:47:47,0.99985210;2026-09-06 14:47:59,0.99984519;2026-09-07 13:48:35,0.99982806;2026-09-08 12:48:59,0.99965976;2026-09-09 11:49:23,0.99978519;2026-09-10 10:49:35,0.99966355;2026-09-11 09:49:47,0.99960013;2026-09-12 08:50:11,0.99979927;2026-09-13 07:50:35,0.99976373;2026-09-14 06:50:47,0.99958300;2026-09-15 05:51:11,0.99975264;2026-09-16 04:51:23,0.99922072;2026-09-17 03:51:47,0.99944533;2026-09-18 02:52:23,0.99946998;2026-09-19 01:52:47,0.99981538;2026-09-20 00:52:59,0.99976477;2026-09-20 23:53:23,0.99984576;2026-09-21 22:53:35,1.00002200;2026-09-22 21:53:47,0.99976616;2026-09-23 20:53:59,0.99985382;2026-09-24 19:54:23,0.99981864;2026-09-25 18:54:35,0.99981676;2026-09-26 17:54:47,0.99961290;2026-09-27 16:55:11,0.99977885;2026-09-28 15:55:35,0.99986494;2026-09-29 14:55:47,1.00000000;2026-09-30 13:55:59,0.99977937;2026-10-01 12:56:23,0.99979864;2026-10-02 11:56:35,0.99980738;2026-10-03 10:56:47,0.99971712;2026-10-04 09:56:59,0.99969393;2026-10-05 08:57:35,0.99972510;2026-10-06 07:57:47,0.99963266;2026-10-07 06:58:11,0.99951436;2026-10-08 05:58:35,0.99957811;2026-10-09 04:58:59,0.99947809;2026-10-10 03:59:11,0.99959682', ';')) as t(x)),positions as (select * from dune.sentora.result_aave_core_usde_liq_pricesunion allselect * from dune.sentora.result_aave_prime_usde_liq_pricesunion allselect * from dune.sentora.result_aave_v4_usde_liq_prices),labelled as (select *,case instance when 'aave_v3_core' then 'Aave v3 Core'when 'aave_v3_prime' then 'Aave v3 Prime'when 'aave_v4_ethena_ecosystem' then 'Aave v4 Ethena Ecosystem'when 'aave_v4_ethena_correlated' then 'Aave v4 Ethena Correlated' end|| ' | ' || coalesce('E' || cast(emode_category as varchar) || ' ' || coalesce(emode_label, 'no e-mode'), 'spoke')|| ' | ' || debt_symbol || ' vs ' || collateral_symbol as pair_groupfrom positions),hits as (select p.ts, l.pair_group, l.wallet, l.pair_debt_usd, l.pair_collateral_usdfrom prices pjoin labelled lon l.wallet_status = 'below_hf_1_now'or (l.wallet_status = 'liquidatable_below_price' and p.usde_usd < l.wallet_liq_price_usde)),groups as (select distinct pair_group from hits),agg as (select ts, pair_group,sum(pair_debt_usd) as liquidatable_debt_usd,sum(pair_collateral_usd) as liquidatable_collateral_usd,count(distinct wallet) as walletsfrom hits group by 1, 2)select p.ts, p.usde_usd, g.pair_group,coalesce(a.liquidatable_debt_usd, 0) as liquidatable_debt_usd,coalesce(a.liquidatable_collateral_usd, 0) as liquidatable_collateral_usd,coalesce(a.wallets, 0) as walletsfrom prices pcross join groups gleft join agg a on a.ts = p.ts and a.pair_group = g.pair_grouporder by p.ts, liquidatable_debt_usd desc