bachiliquid staking platform1
Updated 2022-09-06Copy Reference Fork
999
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 cream AS
(
SELECT
Count(DISTINCT origin_from_address) AS no_of_depositors,
Sum(amount) AS total_eth_staked,
Sum(amount_usd) AS total_eth_usd,
Avg(amount) AS average_eth_deposit,
Median(amount) AS median_eth_deposit,
Min(amount) AS min_eth_deposit,
Max(amount) AS max_eth_deposit
FROM ethereum.core.ez_eth_transfers
WHERE eth_to_address IN ('0xcbc1065255cbc3ab41a6868c22d1f1c573ab89fd',
'0x49d72e3973900a195a155a46441f0c08179fdb64')
), lido AS
(
SELECT
sum(EVENT_INPUTS:amount /1e6) AS tot_eth_staked,
tot_eth_staked * 1639 AS tot_eth_usd,
avg(EVENT_INPUTS:amount /1e6) AS average_eth_deposit,
median(EVENT_INPUTS:amount/1e6) AS median_eth_deposit,
min(EVENT_INPUTS:amount /1e6) AS min_eth_deposit,
max(EVENT_INPUTS:amount /1e6) AS max_eth_deposit,
count(DISTINCT origin_from_address) AS no_of_depositors
FROM ethereum.core.fact_event_logs
WHERE contract_address = '0xae7ab96520de3a18e5e111b5eaab095312d7fe84'
AND tx_status = 'SUCCESS'
AND event_name = 'Submitted'
), rocket_pool AS
(
SELECT
count(DISTINCT from_address) AS no_of_depositors ,
sum(eth_value) AS tot_eth_staked,
tot_eth_staked * 1639 AS total_eth_usd,
min(eth_value) AS min_eth_deposit,
Run a query to Download Data