binhachon21. [Elite] THORSwap Airdrop - Base table
Updated 2021-11-28
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
›
⌄
-- Get list of addresses that have provided liquidity in IDO event --- ~ 1k3 addresses
with liquidity_providers_list as(
select
distinct from_address as address
from
ethereum.transactions
where
to_address = '0xb73b8e66196f2af0762833304e3f15db2e8df0c3'
and function_signature = '0x92b93748'
),
-- Get list of addresses that have claimed their airdrop tokens
airdrop_claimer as(
select
origin_address,
sum(amount) as amount
from
(
select
distinct block_timestamp,
tx_id,
origin_address,
amount / 1e18 as amount
from
ethereum.udm_events
where
origin_function_signature = '0x2e7ba6ef' --and to_address = '0x2195d34c3ef1c20a97212f18d557ac25890d4f78'
and event_type = 'erc20_transfer'
and contract_address = '0xa5f2211b9b8170f694421f2046281775e8468044'
)
group by
origin_address
),
-- Get all the THOR swap transactions with amount in / out, have to put distinct because of duplicate entries in these table
THOR_swap_on_Thorchain as(
select
distinct block_timestamp,
Run a query to Download Data