TOTAL_ETH | TOTAL_USD | |
---|---|---|
1 | 63.61471 | 171125.816097667 |
Flipside TeamDonation1
Updated 7 hours ago
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
›
⌄
with price_tab as (select
HOUR::date as day,
avg(price) as WETH_price
from ethereum.price.ez_prices_hourly
where SYMBOL = 'WETH'
group by 1),
donations as (select
BLOCK_TIMESTAMP,
tx_hash,
DECODED_LOG:sender as "Sender",
DECODED_LOG:donation/1e18 as "Total donation (ETH)",
(DECODED_LOG:donation/1e18)*WETH_price as "Total donation (USD)",
DECODED_LOG:serviceIds as "Service ID",
DECODED_LOG:amounts as "Donation (ETH)"
from ethereum.core.ez_decoded_event_logs s
join price_tab p on s.BLOCK_TIMESTAMP::date = p.day
where CONTRACT_ADDRESS = '0xa0da53447c0f6c4987964d8463da7e6628b30f82'
and EVENT_NAME = 'DonateToServicesETH'
--and tx_hash = '0xe4692d037f07027456562faf20b391f8da030dec7a1b2949d7a4c0277cd5b0f3'
)
select
sum("Total donation (ETH)") as total_eth,
sum("Total donation (USD)") as total_usd
from donations
Last run: about 7 hours agoAuto-refreshes every 12 hours
1
29B
19s