CryptoIcicleMetamask-3.Metamask vs. Other Platforms
Updated 2022-06-25
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
›
⌄
-- Metamask vs. Other Platforms
-- Q3. How many users are swapping via MetaMask vs other platforms?
-- How much volume have these users done?
-- Chart a comparison between the two, and show the following metrics over a time period of your choosing:
-- transaction volume, average amount swapped, and a comparison of fees.
-- Payout 150 USDC
-- Grand Prize 450 USDC
-- Level Intermediate
with metamask_swaps as (
select
*
from ethereum.core.fact_event_logs
where contract_address = lower('0x881D40237659C251811CEC9c364ef91dC08D300C')
and block_timestamp >= CURRENT_DATE - {{n_days}}
),
wallets as (
select
distinct origin_from_address as wallet
from ethereum.core.fact_event_logs
where contract_address = lower('0x881D40237659C251811CEC9c364ef91dC08D300C')
),
eth_price as (
select
date_trunc('day', hour) as date,
avg(price) as price
from ethereum.core.fact_hourly_token_prices
where symbol = 'WETH' and hour >= CURRENT_DATE - {{n_days}}
group by date
),
metamask as (
select
t.block_timestamp,
t.tx_hash,
t.origin_from_address,
Run a query to Download Data