adriaparcerisasPunchswap TSR swaps
    Updated 8 hours ago
    WITH swaps AS (
    SELECT x.tx_hash,
    x.origin_from_address,
    x.contract_address,
    y.tx_fee,
    x.block_timestamp,
    CASE
    WHEN lower(x.contract_address) = LOWER('0x169bb04590fbF18B09739f951274Aa5650DFcCdE') THEN 'TSR'
    ELSE 'wFLOW'
    END AS asset,
    x.event_index,
    x.data,
    '18' AS decimals,
    CASE
    WHEN x.origin_function_signature IN ('0x7ff36ab5','0x38ed1739') THEN 'buy'
    WHEN x.origin_function_signature = '0x18cbafe5' THEN 'sell'
    END as trade_type
    FROM flow.core_evm.fact_event_logs x
    JOIN flow.core_evm.fact_transactions y
    ON x.tx_hash = y.tx_hash
    WHERE (lower(y.to_address) = lower('0xf45AFe28fd5519d5f8C1d4787a4D5f724C0eFa4d')
    AND x.origin_function_signature in ('0x7ff36ab5','0x38ed1739','0x18cbafe5'))
    AND x.tx_succeeded = 'TRUE'
    AND LOWER(x.contract_address) IN (
    '0xd3bf53dac106a0290b0483ecbc89d40fcc961f3e',
    '0x169bb04590fbf18b09739f951274aa5650dfccde'
    )
    ),
    decoded_swaps AS (
    SELECT
    tx_hash,
    block_timestamp,
    asset,
    event_index,
    trade_type,
    utils.udf_hex_to_int(data)/POW(10,18) as token_amount
    Last run: about 8 hours ago
    DATE
    BUY_PRICE_IN_FLOW
    SELL_PRICE_IN_FLOW
    AVG_PRICE_IN_FLOW
    BUY_PRICE_IN_USD
    SELL_PRICE_IN_USD
    AVG_PRICE_IN_USD
    BUY_VOLUME
    SELL_VOLUME
    DAILY_VOLUME_USD
    CUMULATIVE_VOLUME_USD
    BUY_SWAPS
    SELL_SWAPS
    BUYERS
    SELLERS
    BUY_SAMPLES
    SELL_SAMPLES
    TOTAL_SWAPS
    CUMULATIVE_SWAPS
    1
    2025-04-16 00:00:00.0000.0001572395170.0001312580770.0001442487970.000051206738890.000044552404060.000047879571480399993.593519.1515218533194.9584683270101022502
    2
    2025-04-09 00:00:00.0000.0001572395170.00013110296910.00014417124310.000051206738890.000064105943230.00005765634106157089.08473671109.05718184733175.8069464762020303500
    3
    2025-03-31 00:00:00.0000.00015838581260.00013110296910.00014474439090.000059362052270.000064105943230.0000617339977563136.9680952303.89769744633166.749764631010202497
    4
    2025-03-20 00:00:00.0000.00016663278640.00013110296910.00014886787780.000070852927330.000064105943230.00006747943528660.1358340200.0445455932933162.8520671842010404495
    5
    2025-03-14 00:00:00.0000.00016250703810.00013110296910.00014680500360.000065766760840.000064105943230.00006493635203615.3579632600.0399591013333162.807521591010202491
    6
    2025-03-09 00:00:00.0000.00015210375120.00013110296910.00014160336020.000063607659320.000064105943230.0000638568012736159.52897287102.30903185633162.7675624891010202489
    7
    2025-03-03 00:00:00.0000.00021269667970.00013110296910.00017189982440.000098729757480.000064105943230.00008141785035050000040.70892517733160.4585306330201044487
    8
    2025-02-25 00:00:00.0000.00021269667970.00021993031120.00021631349550.000098729757480.00011563737830.0001071835679244.1142250400.0261650336133119.7496054571010101483
    9
    2025-02-23 00:00:00.0000.0002201117630.00021993031120.00022002103710.00011400270550.00011563737830.000114820041911357.7300848301.30409504433119.7234404232020404482
    10
    2025-02-22 00:00:00.0000.00022241574770.00021993031120.00022117302950.00011767861520.00011563737830.00011665799674496.08451855949995058.84766968433118.4193453791111224478
    11
    2025-02-20 00:00:00.0000.00022237523330.00022820153680.0002252883850.0001165123970.00011741016210.000116961279613490.71104705101.57789082633059.5716756953030606474
    12
    2025-02-19 00:00:00.0000.00023306683230.00022820153680.00023063418450.00011658748760.00011741016210.000116998824932179.6110049352359361.62429435279.80751417333057.9937848681212246468
    13
    2025-02-18 00:00:00.0000.00023303682380.00023161820320.00023232751350.00011746780390.00011656186070.0001170148323429.11673079699991.22024433132778.1862706951111224462
    14
    2025-02-17 00:00:00.0000.00022974095050.00017343706690.00020158900870.00011890672880.000087289918810.00010309832384057912.687988960418.36399635632776.9660263642020303458
    15
    2025-02-16 00:00:00.0000.00021291909330.00017343706690.00019317808010.00011065171070.000087289918810.00009897081473939323.932597217092.96565490732358.6020300081010202455
    16
    2025-02-15 00:00:00.0000.00021225793410.00017343706690.00019284750050.00011191630350.000087289918810.00009960311117509388.885775319050.73671781732265.6363751012020303453
    17
    2025-02-14 00:00:00.0000.00019023570430.00017343706690.00018183638560.00010035773380.000087289918810.000093823826315331381.343248501438.44886013532214.89965728417010022022450
    18
    2025-02-13 00:00:00.0000.00016837869240.00017343706690.00017090787970.000089308915420.000087289918810.00008829941712956340.83190241084.44433802230776.4507971495030707428
    19
    2025-02-12 00:00:00.0000.0001694162460.00017343706690.00017142665640.000085702327330.000087289918810.000086496123077503930.8520060410891181.67216191591.10591679530692.00645912711210215419421
    20
    2025-02-11 00:00:00.0000.00025146367620.00025015674650.00025081021140.00013264293170.00012757903190.00013011098187737757.9622257920206288.10358473635.82726991629100.9005423321336318624402
    55
    11KB
    3s