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

feat: allow usage of cached gasUsage + SpeedProvider #717

Merged
merged 6 commits into from
Sep 6, 2024
Merged

Conversation

dohaki
Copy link
Contributor

@dohaki dohaki commented Sep 2, 2024

This PR enables two performance tweaks in the API:

  • Using a cached gasUnits value for a fill - this saves an RPC request in the fee calculator
  • Using the SpeedProvider which makes use of Promise.any

src/utils/common.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@gsteenkamp89 gsteenkamp89 left a comment

Choose a reason for hiding this comment

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

Looks great! 🚀

@dohaki dohaki requested a review from pxrl September 5, 2024 11:12
Copy link
Contributor

@james-a-morris james-a-morris left a comment

Choose a reason for hiding this comment

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

Is this a migration?

@dohaki
Copy link
Contributor Author

dohaki commented Sep 6, 2024

Is this a migration?

Can you elaborate a bit? Migration from what?

The context of these features introduced here are primarily for improving the performance of the API

@dohaki dohaki merged commit 39894ed into master Sep 6, 2024
4 checks passed
@dohaki dohaki deleted the speed-features branch September 6, 2024 04:46
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.

4 participants