fix: Make fee a required argument with Uniswap V3#358
fix: Make fee a required argument with Uniswap V3#358ErikBjare merged 5 commits intouniswap-python:masterfrom
Conversation
|
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! |
|
Beautiful PR! Thanks a lot for this. Will give it a final review and merge tomorrow :) |
| # ("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), | ||
| ( |
There was a problem hiding this comment.
I fixed the failing tests, though I ask you to take a look at the deleted test line. It was failing because InsufficientBalance wasn't raised during the tests.
There was a problem hiding this comment.
Strange, I will add this back in a new PR and sort it out later.
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
|
The Arbitrum test fails due to "rate limit exceeded", which we will ignore, so all is good! Thanks for your contribution! ❤️ |
Solves #355
Partially solves #356
What's new?
uniswap.fee.FeeTierenum added with all available tiers combinedInvalidFeeTierraised when Uniswap v3 is used without explicitly providing a fee argumentInvalidFeeTierraised when the fee is invalid (not a number, not a FeeTier's member)