Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove dependency on fees when computing prices #58

Merged
merged 2 commits into from
Sep 9, 2024

Conversation

harisang
Copy link
Contributor

@harisang harisang commented Sep 9, 2024

This PR fixes a bug that made fetching prices depend on fee calculations. Note that we want to make each step of the script independent of one another; e.g., we want to fetch prices for all raw token imbalances even when we don't want to compute fees.

Note that since we need to identify the tokens for which we want to fetch imbalances, the raw token imbalances calculation is still a prerequisite for the price fetching to happen, and this is made explicit.

Copy link
Contributor

@fhenneke fhenneke left a comment

Choose a reason for hiding this comment

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

Looks reasonable, but I did not test it.

@harisang harisang merged commit 513df43 into main Sep 9, 2024
3 checks passed
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