Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix v3 behaviour when input or output token is ETH#159

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

nimcon
Copy link
Contributor

Fix for Uniswap v3 behaviour when ETH is the input or output token, resolving issues#154 and#155. There has also been some general tidying-up of parts of the code. Basic tests for all v3 scenarios have been run, but it would be good to check edge cases and verify that v1 and v2 still work as expected.

liquid-8, romanbsd, and ErikBjare reacted with thumbs up emoji
@romanbsd
Copy link
Contributor

Cool! I didn't get to do it, and it's pretty much what I had in mind!

@@ -376,28 +395,27 @@ def make_trade(
if slippage is None:
slippage = self.default_slippage

if input_token == output_token:
raise ValueError
Copy link
Contributor

Choose a reason for hiding this comment

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

maybeassert input_token != output_token is better?

Copy link
Member

@ErikBjareErikBjare left a comment

Choose a reason for hiding this comment

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

Sorry for the delay. Ran tests locally and works well!

A couple of unrelated tests failed, but that's my bad, and they're not testing anything important.

@ErikBjareErikBjare merged commitc177a87 intouniswap-python:masterSep 17, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@romanbsdromanbsdromanbsd left review comments

@ErikBjareErikBjareErikBjare left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@nimcon@romanbsd@ErikBjare

[8]ページ先頭

©2009-2025 Movatter.jp