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

feat: price impact excludes fees#325

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 4 commits intouniswap-python:masterfromVoyz:master
Sep 8, 2023

Conversation

Voyz
Copy link
Contributor

  • added util functions for fee calculations
  • price impact calculation now excludes fees

Based on discussion in:#310

@Voyz
Copy link
ContributorAuthor

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

Copy link
Member

@ErikBjareErikBjare left a comment
edited
Loading

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.

def fee_to_fraction(fee:int):
return fee / 1000000

def fraction_to_fee(fraction:float):
Copy link
Member

Choose a reason for hiding this comment

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

Unused

@Voyz
Copy link
ContributorAuthor

Hey@ErikBjare removed the function and formatted with black 👍

@Voyz
Copy link
ContributorAuthor

Voyz commentedSep 7, 2023

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

@ErikBjare
Copy link
Member

Very nice, thanks for the ping!

@ErikBjareErikBjare merged commit9a1318f intouniswap-python:masterSep 8, 2023
@ErikBjare
Copy link
Member

And thanks for contributing! ❤️

Voyz reacted with hooray emoji

@Voyz
Copy link
ContributorAuthor

Voyz commentedSep 8, 2023

Glad to have helped! 🙌

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

@ErikBjareErikBjareErikBjare approved these changes

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
@Voyz@ErikBjare

[8]ページ先頭

©2009-2025 Movatter.jp