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: Make fee a required argument with Uniswap V3#358

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
ErikBjare merged 5 commits intouniswap-python:masterfromantibagr:master
Dec 6, 2023

Conversation

antibagr
Copy link
Contributor

Solves#355
Partially solves#356

What's new?

  • uniswap.fee.FeeTier enum added with all available tiers combined
  • InvalidFeeTier raised when Uniswap v3 is used without explicitly providing a fee argument
  • InvalidFeeTier raised when the fee is invalid (not a number, not a FeeTier's member)

liquid-8 reacted with heart emoji
@antibagr
Copy link
ContributorAuthor

Additionally, I updated the changelog and the project's version and added tests for new functionality. Feel free to let me know if any changes are desirable!

@antibagrantibagr changed the titleMake fee a required argument with Uniswap V3fix: Make fee a required argument with Uniswap V3Dec 4, 2023
@ErikBjare
Copy link
Member

Beautiful PR!

Thanks a lot for this. Will give it a final review and merge tomorrow :)

antibagr reacted with heart emoji

@@ -474,13 +476,6 @@ def test_make_trade(
# ("ETH", "UNI", int(0.000001 * ONE_ETH), ZERO_ADDRESS),
# ("UNI", "ETH", int(0.000001 * ONE_ETH), ZERO_ADDRESS),
# ("DAI", "UNI", int(0.000001 * ONE_ETH), ZERO_ADDRESS),
(
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I fixed the failing tests, though I ask you to take a look at the deleted test line. It was failing becauseInsufficientBalance wasn't raised during the tests.

Copy link
Member

Choose a reason for hiding this comment

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

Strange, I will add this back in a new PR and sort it out later.

antibagr reacted with heart emoji
@codecovCodecov
Copy link

codecovbot commentedDec 6, 2023
edited
Loading

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base(ad8c8a1) 83.84% compared to head(eb744d7) 84.20%.

Additional details and impacted files
@@            Coverage Diff             @@##           master     #358      +/-   ##==========================================+ Coverage   83.84%   84.20%   +0.36%==========================================  Files          10       11       +1       Lines        1052     1057       +5     ==========================================+ Hits          882      890       +8+ Misses        170      167       -3

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report?Share it here.

@ErikBjare
Copy link
Member

The Arbitrum test fails due to "rate limit exceeded", which we will ignore, so all is good!

Thanks for your contribution! ❤️

antibagr reacted with rocket emoji

@ErikBjareErikBjare merged commitcd5d95e intouniswap-python:masterDec 6, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@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.

2 participants
@antibagr@ErikBjare

[8]ページ先頭

©2009-2025 Movatter.jp