Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lido upstream liquidity updates #6869

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,17 @@
ref('lido_liquidity_zksync_maverick_pools'),
ref('lido_liquidity_linea_syncswap_pools'),
ref('lido_liquidity_scroll_syncswap_pools'),
ref('lido_liquidity_scroll_zebra_pools')
ref('lido_liquidity_scroll_zebra_pools'),
ref('lido_liquidity_arbitrum_pancakeswap_v3_pools'),
ref('lido_liquidity_base_maverick_pools'),
ref('lido_liquidity_base_pancakeswap_v3_pools'),
ref('lido_liquidity_bnb_pancakeswap_v3_pools'),
ref('lido_liquidity_bnb_thena_pools'),
ref('lido_liquidity_ethereum_curve_wsteth_pufeth_pool'),
ref('lido_liquidity_linea_lynex_pools'),
ref('lido_liquidity_scroll_maverick_pools'),
ref('lido_liquidity_scroll_nuri_pools'),
ref('lido_liquidity_zksync_pancakeswap_v3_pools')
] %}

{% set project_start_date = '2020-12-15'%}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ group by 1,2
)

, all_metrics as (
select l.pool, pools.blockchain, pools.project, cast(l.time as date) as time,
select l.pool, pools.blockchain, pools.project, 0 as fee, cast(l.time as date) as time,
case when tokenA = 0x26c5e01524d2E6280A48F2c50fF6De7e52E9611C then tokenA else tokenB end main_token,
case when tokenA = 0x26c5e01524d2E6280A48F2c50fF6De7e52E9611C then p0.symbol else p1.symbol end main_token_symbol,
case when tokenA = 0x26c5e01524d2E6280A48F2c50fF6De7e52E9611C then tokenB else tokenA end paired_token,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ SELECT
pool,
blockchain,
project,
0 as fee,
time,
main_token,
main_token_symbol,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ select blockchain||' '||project||' '||coalesce(paired_token_symbol,'unknown')||
pool,
blockchain,
project,
0 as fee,
time,
main_token,
main_token_symbol,
Expand Down
Loading