rezarwzProfit/Loss Status of Closed 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 1 month ago
    PAIR_NAME
    POSITION_STATUS
    # of Positions
    % of total positions
    1
    OHNO-WETHLosing Positions11100
    2
    ORBIT-WETHLosing Positions5790.4762
    3
    ORBIT-WETHProfitable Positions57.9365
    4
    PUMP-WETHLosing Positions12573.5294
    5
    PUMP-WETHProfitable Positions3621.1765
    6
    USDB-BAGLosing Positions14166.5094
    7
    USDB-BAGProfitable Positions2411.3208
    8
    USDB-BLASTLosing Positions7461.157
    9
    USDB-BLASTProfitable Positions4335.5372
    10
    USDB-OLELosing Positions210
    11
    USDB-PACLosing Positions1066.6667
    12
    USDB-PACProfitable Positions426.6667
    13
    USDB-PTCLosing Positions150
    14
    USDB-USDeLosing Positions98795.7323
    15
    USDB-USDeProfitable Positions353.3948
    16
    USDB-WETHLosing Positions4732887.7826
    17
    USDB-WETHProfitable Positions647812.0152
    18
    USDB-axlUSDCLosing Positions1100
    19
    WETH-BAGLosing Positions5100
    20
    WETH-BLASTLosing Positions2480
    37
    2KB
    458s