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(optimized_transaction): Add Priority Fee Cap #94

Merged
merged 4 commits into from
Nov 27, 2024

Conversation

0xIchigo
Copy link
Collaborator

This PR allows users to cap the priority fees for a given smart transaction at a specific number and use that as the maximum possible value instead of using what is strictly returned by the Priority Fee API

Consider the following scenarios where we cap priority fees at 10k:

  • If the priority fee estimate based on the serialized transaction is 5k, then we'd use 5k
  • If the priority fee estimate based on the serialized transaction is 10k, then we'd use 10k
  • If the priority fee estimate based on the serialized transaction is 15k, then we'd use 10k

This also resolves #81

@0xIchigo 0xIchigo merged commit 385cc15 into dev Nov 27, 2024
1 check 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.

Add a Priority Fee Cap For Smart Transactions
1 participant