Skip to content

feat: price impact excludes fees#325

Merged
ErikBjare merged 4 commits into
uniswap-python:masterfrom
Voyz:master
Sep 8, 2023
Merged

feat: price impact excludes fees#325
ErikBjare merged 4 commits into
uniswap-python:masterfrom
Voyz:master

Conversation

@Voyz

@Voyz Voyz commented Mar 18, 2023

Copy link
Copy Markdown
Contributor
  • added util functions for fee calculations
  • price impact calculation now excludes fees

Based on discussion in: #310

@Voyz

Voyz commented Jun 22, 2023

Copy link
Copy Markdown
Contributor Author

@ErikBjare just wanted to bring this PR to your attention again

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

Looks good! Just remove the unused function and format with black.

Comment thread uniswap/util.py Outdated
def fee_to_fraction(fee:int):
return fee / 1000000

def fraction_to_fee(fraction:float):

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.

Unused

@Voyz

Voyz commented Jul 21, 2023

Copy link
Copy Markdown
Contributor Author

Hey @ErikBjare removed the function and formatted with black 👍

@Voyz

Voyz commented Sep 7, 2023

Copy link
Copy Markdown
Contributor Author

@ErikBjare just wanted to bring this PR to your attention again

@ErikBjare

Copy link
Copy Markdown
Member

Very nice, thanks for the ping!

@ErikBjare ErikBjare merged commit 9a1318f into uniswap-python:master Sep 8, 2023
@ErikBjare

Copy link
Copy Markdown
Member

And thanks for contributing! ❤️

@Voyz

Voyz commented Sep 8, 2023

Copy link
Copy Markdown
Contributor Author

Glad to have helped! 🙌

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.

2 participants