misaghlbFailed Transactions
Updated 2022-10-03
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
›
⌄
with swap as (
select
count(case when STATUS = 'SUCCESS' then TRUE else NULL end ) as success,
count(DISTINCT TX_HASH) as tx_count,
tx_count - success as fails,
success / (tx_count) as success_rate,
1 - success_rate as failure_rate
from ethereum.core.fact_transactions
where date(block_timestamp) >= '2022-09-01'
and origin_function_signature in (select distinct origin_function_signature from ethereum.sushi.ez_swaps)
),
borrow as (
select
count(case when STATUS = 'SUCCESS' then TRUE else NULL end ) as success,
count(DISTINCT TX_HASH) as tx_count,
tx_count - success as fails,
success / (tx_count) as success_rate,
1 - success_rate as failure_rate
from ethereum.core.fact_transactions
where date(block_timestamp) >= '2022-09-01'
and origin_function_signature in (select distinct origin_function_signature from ethereum.sushi.ez_borrowing)
),
lending as (
select
count(case when STATUS = 'SUCCESS' then TRUE else NULL end ) as success,
count(DISTINCT TX_HASH) as tx_count,
tx_count - success as fails,
success / (tx_count) as success_rate,
1 - success_rate as failure_rate
from ethereum.core.fact_transactions
where date(block_timestamp) >= '2022-09-01'
and origin_function_signature in (select distinct origin_function_signature from ethereum.sushi.ez_lending)
),
raw_liq as (
SELECT DISTINCT pool_address
FROM ethereum.core.dim_dex_liquidity_pools
Run a query to Download Data