hessTop 100 Pairs (Sorted Based on Volume)
Updated 2023-12-16
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 astroport as ( select DISTINCT tx_id
from terra.core.fact_msg_attributes_standard
where attribute_value = 'terra18plp90j0zd596zt3zdsf0w9vvk5ukwlwzwkksxv9mdu8rscat9sqndk5qz'
and attribute_key = '_contract_address'
and msg_type = 'execute'
and TX_SUCCEEDED = 'true')
,
token_in as ( select block_timestamp,
tx_id,
sender as swapper,
currency as token_in_address,
amount::int as amount_in_raw
from terra.core.ez_transfers
where receiver = 'terra18plp90j0zd596zt3zdsf0w9vvk5ukwlwzwkksxv9mdu8rscat9sqndk5qz'
and tx_id in (select tx_id from astroport))
,
max_token as (select max(MSG_INDEX) as max,
b.tx_id
from terra.core.fact_msg_attributes_standard a join token_in b on a.tx_id = b.tx_id
where attribute_key = 'ask_asset'
group by all )
,
token_out as ( select DISTINCT b.tx_id,
a.block_timestamp,
swapper,
token_in_address,
amount_in_raw,
c.max,
attribute_value as token_out_address
from terra.core.fact_msg_attributes_standard a join token_in b on a.tx_id = b.tx_id and a.block_timestamp = b.block_timestamp
right join max_token c on a.msg_index = c.max and a.tx_id = c.tx_id
where attribute_key = 'ask_asset'
and msg_type = 'wasm' )
,
token_out_amount as ( select DISTINCT b.tx_id,
a.block_timestamp,
Run a query to Download Data