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

feat: uniV3 basic lp info #5635

Closed
wants to merge 18 commits into from
Prev Previous commit
Next Next commit
hardcode position manager address
0xrusowsky committed Mar 27, 2024
commit a276d4eb54c19d7983f88d13c4985c3db33b6f61
4 changes: 2 additions & 2 deletions macros/models/_sector/dex/uniswap_compatible_lp.sql
Original file line number Diff line number Diff line change
@@ -30,8 +30,8 @@ WITH id_to_lp AS
, m.evt_block_time AS block_time
, m.evt_tx_hash AS tx_hash
, m.evt_index
, CASE WHEN m.owner = CAST({{ position_manager_addr }} AS varbinary) THEN id.lp_address ELSE m.owner END AS lp_address
, CASE WHEN m.owner = CAST({{ position_manager_addr }} AS varbinary) THEN cast(pm.tokenId AS double) ELSE 0 END AS position_id
, CASE WHEN m.owner = 0xc36442b4a4522e871399cd717abdd847ab11fe88 THEN id.lp_address ELSE m.owner END AS lp_address
, CASE WHEN m.owner = 0xc36442b4a4522e871399cd717abdd847ab11fe88 THEN cast(pm.tokenId AS double) ELSE 0 END AS position_id
, m.tickLower AS tick_lower
, m.tickUpper AS tick_upper
, m.amount AS liquidity