freemartianDaily Pools on Ambient Finance
    Updated 2024-01-29
    -- ambient address: 0xaaaaaaaaa24eeeb8d57d431224f73832bc34f688
    -- pool signature: 0xa15112f9


    with
    -- eth AS(
    -- SELECT block_timestamp, tx_hash, origin_from_address, 'ETH' AS symbol,
    -- amount, amount_usd, 2 AS mark
    -- FROM ethereum.core.ez_eth_transfers
    -- WHERE eth_to_address = '0xaaaaaaaaa24eeeb8d57d431224f73832bc34f688'
    -- AND origin_function_signature = '0xa15112f9'
    -- ),
    -- tokens AS(
    -- SELECT block_timestamp, tx_hash, origin_from_address, symbol,
    -- amount, amount_usd, RANK() OVER(PARTITION BY tx_hash ORDER BY _log_id) AS mark
    -- FROM ethereum.core.ez_token_transfers
    -- WHERE to_address = '0xaaaaaaaaa24eeeb8d57d431224f73832bc34f688'
    -- AND origin_function_signature = '0xa15112f9'
    -- ),

    datas_add AS (
    SELECT block_timestamp, tx_hash, origin_from_address, 'ETH' AS symbol,
    amount, amount_usd, 2 AS mark
    FROM ethereum.core.ez_eth_transfers
    WHERE eth_to_address = '0xaaaaaaaaa24eeeb8d57d431224f73832bc34f688'
    AND origin_function_signature = '0xa15112f9'

    UNION
    SELECT block_timestamp, tx_hash, origin_from_address,
    (CASE
    when contract_address = '0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2' THEN 'MKR'
    ELSE symbol END) symbol,
    amount, amount_usd, RANK() OVER(PARTITION BY tx_hash ORDER BY _log_id DESC) AS mark
    FROM ethereum.core.ez_token_transfers
    WHERE to_address = '0xaaaaaaaaa24eeeb8d57d431224f73832bc34f688'
    AND origin_function_signature = '0xa15112f9'
    Last run: about 1 year agoAuto-refreshes every 3 hours
    DAY
    TX_COUNT
    USERS_COUNT
    FIRST_ASSET_AMOUNT
    FIRST_ASSET_AMOUNT_USD
    SECOND_ASSET_AMOUNT
    SECOND_ASSET_AMOUNT_USD
    POOL_NAME
    LABEL
    1
    2024-01-29 00:00:00.00033-407.119599-94.772362518-0.06129678605-135.6USDC-ETHremove
    2
    2024-01-29 00:00:00.000220.1817766316425.6172584450.196454807442.22swETH-ETHadd
    3
    2024-01-29 00:00:00.0005468.16319248.1719937730.0315535085551.01USDC-ETHadd
    4
    2024-01-29 00:00:00.00011-4.01812764-12.737464619-2.029428534-4568.26LDO-ETHremove
    5
    2024-01-29 00:00:00.000110.00986297614123.2515897792020.001875776swETH-USDCadd
    6
    2024-01-28 00:00:00.00077938.829489938.6729908110.4177237654950.37USDC-ETHadd
    7
    2024-01-28 00:00:00.00011-0.0001902-7.945450408-0.5816326979-1311.3WBTC-ETHremove
    8
    2024-01-28 00:00:00.00099-1027.994682-1027.226486931-0.7151270495-1630.44USDC-ETHremove
    9
    2024-01-27 00:00:00.00011-1.111202121-2232.216157713-1.865409114-4233.08MKR-ETHremove
    10
    2024-01-27 00:00:00.00066-713.585658-713.533850377-0.06075434926-137.83USDC-ETHremove
    11
    2024-01-27 00:00:00.000110.00543021226.537500780.1029171755233.63WBTC-ETHadd
    12
    2024-01-27 00:00:00.00012121446.8071931446.2756061950.64482452411463.03USDC-ETHadd
    13
    2024-01-27 00:00:00.000110.0323649915876.31114809555.84138855.841388swETH-USDCadd
    14
    2024-01-26 00:00:00.00011-1555.502109-1555.040124874-1571.055113-1570.624643899USDT-USDCremove
    15
    2024-01-26 00:00:00.00088-716.57005-717.192721496-2.430995558-5494.96USDC-ETHremove
    16
    2024-01-26 00:00:00.00011559.348034558.757362476564.940833564.940833USDT-USDCadd
    17
    2024-01-26 00:00:00.000220.118863624764.437454782.1647594334817.07WBTC-ETHadd
    18
    2024-01-26 00:00:00.000771790.1608741789.9093418590.83688992641889.4USDC-ETHadd
    19
    2024-01-25 00:00:00.000111963.1720051962.6831751710.88756148431969.45USDT-ETHadd
    20
    2024-01-25 00:00:00.000668842.0817278834.6019469123.9739409518731.9USDC-ETHadd
    ...
    1646
    159KB
    108s