-
Notifications
You must be signed in to change notification settings - Fork 225
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: add configurable priority fee multiplier #2195
Conversation
Co-Authored-By: Jayant Krishnamurthy <[email protected]>
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Skipped Deployments
|
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
⚙️ Control Options:
Add "(aside)" to your comment to have me ignore it. |
Co-Authored-By: Jayant Krishnamurthy <[email protected]>
@@ -166,6 +166,10 @@ pub struct EthereumConfig { | |||
/// Maximum number of hashes to record in a request. | |||
/// This should be set according to the maximum gas limit the provider supports for callbacks. | |||
pub max_num_hashes: Option<u32>, | |||
|
|||
/// The percentage multiplier to apply to the priority fee (100 = no change, e.g. 150 = 150% of base fee) | |||
#[serde(default = "default_priority_fee_multiplier_pct")] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you update sample config with this attribute as well?
Add configurable priority fee multiplier to EVM chain configs
This change adds a new priority_fee_multiplier_pct parameter to the chain config for every EVM chain. This multiplier is applied to the max_priority_fee_per_gas parameter after the existing calculation logic.
Link to Devin run: https://app.devin.ai/sessions/1116e7617d284cf88ab32913e8671648