rezarwzStatus of Open Positions by Pair
    Updated 2025-03-12
    with pool_Address as (
    SELECT
    DISTINCT DECODED_LOG:pool as pool_ca,
    DECODED_LOG:token0 as token0_ca,
    DECODED_LOG:token1 as token1_ca
    FROM
    blast.core.ez_decoded_event_logs
    where
    tx_hash in (
    SELECT
    TX_HASH
    from
    blast.core.fact_traces
    WHERE
    TYPE ILIKE 'create%'
    AND to_address IS NOT NULL
    AND input IS NOT NULL
    AND input != '0x'
    AND tx_status = 'SUCCESS'
    AND trace_status = 'SUCCESS'
    and to_address in(
    SELECT
    lo2.decoded_log:pool as pool
    FROM
    blast.core.ez_decoded_event_logs lo
    inner join blast.core.ez_decoded_event_logs lo2 on lo2.tx_hash = lo.tx_hash
    WHERE
    lo.contract_Address = '0x121b5ac4de4a3e6f4171956bc26ceda40cb61a56'
    and lo.event_name = 'OpenPosition'
    and lo2.event_name = 'Collect'
    and lo2.CONTRACT_NAME is not null
    )
    )
    and event_name = 'PoolCreated'
    and TX_STATUS = 'SUCCESS'
    ),
    Last run: about 2 months ago
    PAIR_NAME
    Borrowed Amount(USD)
    Collateral Amount(USD)
    # of Positions
    # of Traders
    1
    USDB-WETH246686.929087169943.076487084109107
    2
    WETH-mwstETH-WPUNKS:4029412.22364292543399.956611
    3
    ezETH-WETH2212.170973448147.714222743
    4
    WETH-mwstETH-WPUNKS:201504.072505164336.62812579833
    5
    USDB-BAG1026.603839968344.5185699394744
    6
    USDB-BLAST258.59136333942.6930142143
    7
    PUMP-WETH152.067608125620.81001586198
    8
    USDB-USDe43.3320488057.65459472898
    9
    USDB-PTC21.81796646110.99544611
    10
    WETH-BAJA17.17800489430.75458198161
    11
    WETH-MIA1.5839370466.01036520522
    12
    ORBIT-WETH0.342945186715.37761033811
    13
    USDB-PAC0.25866357643.316511
    14
    USDB-OLE0.22874691540.88739183291818
    15
    USDB-JUICE0.0015279442260.0130321687111
    16
    WETH-JUICE0.0010160626390.0013460560511
    17
    WETH-PAC3.058747832e-18773.24809235711
    17
    795B
    516s