Skip to content

feat: use max_priority_fee_per_gas as cap in base token adjuster#858

Open
RomanBrodetski wants to merge 1 commit intomainfrom
rb-base-token-adjuster-use-cap
Open

feat: use max_priority_fee_per_gas as cap in base token adjuster#858
RomanBrodetski wants to merge 1 commit intomainfrom
rb-base-token-adjuster-use-cap

Conversation

@RomanBrodetski
Copy link
Collaborator

Change base token adjuster to use max_priority_fee_per_gas and max_fee_per_gas as actual caps rather than fixed values.
This is consistent with changes here.

Change base token adjuster to use max_priority_fee_per_gas and
max_fee_per_gas as actual caps rather than fixed values.

Now uses min(estimated, configured) for both fees:
- When network fee is lower than config, use the lower network fee (saves money)
- When network fee is higher than config, cap at config value (respects limits)

Improved warning messages to explain when fees are capped and clarify
the context (for base token price adjustment).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions
Copy link

github-actions bot commented Feb 4, 2026

Test results

186 tests   186 ✅  18m 14s ⏱️
 27 suites    0 💤
  1 files      0 ❌

Results for commit 23a8d1b.

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.

1 participant