V4 support beta by liquid-8 · Pull Request #418 · uniswap-python/uniswap-python · GitHub
Skip to content

V4 support beta#418

Open
liquid-8 wants to merge 223 commits into
masterfrom
dev/v4-fin
Open

V4 support beta#418
liquid-8 wants to merge 223 commits into
masterfrom
dev/v4-fin

Conversation

@liquid-8

Copy link
Copy Markdown
Member

Basic functionality, like price fetching, quoting, and making simple swaps etc

@liquid-8 liquid-8 linked an issue Jan 5, 2026 that may be closed by this pull request
Pool manager contract ABI
Liquidity pools list management class added, UniswapV4 improvements.

@ErikBjare ErikBjare left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally approved. Haven't checked why CI is failing yet.

Could use some auto-formatting by ruff.

@ErikBjare

Copy link
Copy Markdown
Member

Comment thread uniswap/configs/chains.ini Outdated
Comment thread uniswap/uniswap4.py Outdated
@liquid-8 liquid-8 requested a review from ErikBjare May 29, 2026 08:38
@liquid-8

liquid-8 commented Jun 1, 2026

Copy link
Copy Markdown
Member Author

@greptileai review

@liquid-8

liquid-8 commented Jun 2, 2026

Copy link
Copy Markdown
Member Author

@ErikBjare Ok, let's consider this to be a final version. Please, review and check Discord.

liquid-8 and others added 3 commits June 4, 2026 11:25
Docstrings clarification, comments on universal_router_execute() usage, and ABI refactoring within token swaps.
@liquid-8

liquid-8 commented Jun 4, 2026

Copy link
Copy Markdown
Member Author

@greptileai review

@liquid-8

liquid-8 commented Jun 4, 2026

Copy link
Copy Markdown
Member Author

@greptileai review. Consider that encode_path_keys_output() works fine, no matter what you think.

@liquid-8

liquid-8 commented Jun 4, 2026

Copy link
Copy Markdown
Member Author

@greptileai v4_examples.py uses an actual RPC endpoint https:\\eth.drpc.org, not a forked blockchain. It contains examples of get_quote_exact_output() usage, which calls encode_path_keys_output(), and it just works fine. I kindly ask to stop mentioning this particular function. estimate_price_impact() has no route parameter, so it cannot be silently ignored. Regarding print in fetch_poolkey_data (), it does not need logging at all; it is a deliberate choice to visualize progress as cache building takes a lot of time.

@greptile-apps

greptile-apps Bot commented Jun 4, 2026

Copy link
Copy Markdown

Understood on all three points:

  1. encode_path_keys_output() — Noted, I'll stop raising this. The working example in v4_examples.py is sufficient demonstration.

  2. estimate_price_impact() — Fair correction. If there's no route parameter in the current implementation, the original comment about it being silently ignored is no longer applicable. The thread was already marked outdated, which reflects that.

  3. print in fetch_poolkey_data() — Worth noting the comment about switching to logger.info came from @ErikBjare, not from me. That said, the deliberate design rationale (cache building progress visualization) is clear and reasonable.

@liquid-8

liquid-8 commented Jun 4, 2026

Copy link
Copy Markdown
Member Author

@ErikBjare I believe we've addressed pretty much anything here. What's your opinion?

@liquid-8

liquid-8 commented Jun 5, 2026

Copy link
Copy Markdown
Member Author

@ErikBjare ?

@liquid-8

liquid-8 commented Jun 8, 2026

Copy link
Copy Markdown
Member Author

@ErikBjare Ok, let's address this finally
There's nothing to add or fix here in my opinion, so I'm waiting for your feedback.
Also, please check out Discord. There are some extras to discuss

@liquid-8

Copy link
Copy Markdown
Member Author

@ErikBjare give a feedback pls

@liquid-8

Copy link
Copy Markdown
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Uniswap v4 support

3 participants