add dates to eth lp

This commit is contained in:
gronders 2023-05-12 10:53:56 -06:00
parent 1298f19e7d
commit 10e2968677

View File

@ -24,6 +24,7 @@ WHERE TO_ADDRESS IN (SELECT POOL_ADDRESS FROM ethereum.core.dim_dex_liquidity_po
-- This may also miss deposit aggregation, where you transfer to a router that then transfers -- This may also miss deposit aggregation, where you transfer to a router that then transfers
-- to LPs, e.g., Gamma.xyz Uniswap v3 Vaults. -- to LPs, e.g., Gamma.xyz Uniswap v3 Vaults.
TX_HASH NOT IN (SELECT TX_HASH FROM ethereum.core.ez_dex_swaps) TX_HASH NOT IN (SELECT TX_HASH FROM ethereum.core.ez_dex_swaps)
and block_timestamp > current_date - 90
GROUP BY USER_ADDRESS, CONTRACT_ADDRESS, symbol, TO_ADDRESS GROUP BY USER_ADDRESS, CONTRACT_ADDRESS, symbol, TO_ADDRESS
), ),
@ -35,6 +36,7 @@ WHERE FROM_ADDRESS IN (SELECT POOL_ADDRESS FROM ethereum.core.dim_dex_liquidity_
-- This may also miss deposit aggregation, where you transfer to a router that then transfers -- This may also miss deposit aggregation, where you transfer to a router that then transfers
-- to LPs, e.g., Gamma.xyz Uniswap v3 Vaults. -- to LPs, e.g., Gamma.xyz Uniswap v3 Vaults.
TX_HASH NOT IN (SELECT TX_HASH FROM ethereum.core.ez_dex_swaps) TX_HASH NOT IN (SELECT TX_HASH FROM ethereum.core.ez_dex_swaps)
and block_timestamp > current_date - 90
GROUP BY USER_ADDRESS, CONTRACT_ADDRESS, symbol, FROM_ADDRESS GROUP BY USER_ADDRESS, CONTRACT_ADDRESS, symbol, FROM_ADDRESS
), ),