rezarwzThe Net flow NFTs transfer to the Flooring address
Updated 2024-01-20
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 fl_t as (
SELECT
DECODED_LOG:floorToken as fl_token,
DECODED_LOG:collection as c_a
from
ethereum.core.ez_decoded_event_logs
where
contract_address = '0x3eb879cc9a0ef4c6f1d870a40ae187768c278da2'
and event_name = 'NewCollectionSupported'
),
price as (
SELECT
c_a,
date as day,
(avg(ETH_AMOUNT / NFT_TOKEN_AMOUNT)) * 1000000 as token_price
FROM
(
SELECT
block_timestamp :: date as date,
tx_hash,
CASE
when symbol_out = 'WETH' then AMOUNT_OUT
when SYMBOL_IN = 'WETH' then AMOUNT_IN
end as eth_amount,
CASE
when symbol_out = 'WETH' then TOKEN_IN
when SYMBOL_IN = 'WETH' then TOKEN_OUT
end as NFT_token,
CASE
when symbol_out != 'WETH' then AMOUNT_OUT
when symbol_in != 'WETH' then AMOUNT_IN
end as nft_token_amount
FROM
ethereum.defi.ez_dex_swaps
WHERE
TOKEN_IN in (
QueryRunArchived: QueryRun has been archived