Skip to content

Feature: opt out of erc-4337#2534

Open
Oxbobby wants to merge 5 commits into
v2from
feature/gas-prices-reinvented
Open

Feature: opt out of erc-4337#2534
Oxbobby wants to merge 5 commits into
v2from
feature/gas-prices-reinvented

Conversation

@Oxbobby

@Oxbobby Oxbobby commented Jul 10, 2026

Copy link
Copy Markdown
Member

Summary

  • Replaces custom gas price sampling from full block transaction data with viem fee estimation.
  • Uses eth_feeHistory for EIP-1559 priority fee guidance, with fallback to viem fee estimation if fee history fails.
  • Adds the erc4337 feature flag, enabled by default.
  • Threads the ERC-4337 flag through account creation, estimation, gas price fetching, paymaster setup, transfers, swaps, and dapp requests.
  • Disables ERC-4337-dependent behavior when the flag is off:
    • bundler gas price fetching
    • bundler estimation support for EOA7702, V2, and Safe accounts
    • V2 internal/gas tank fee options
    • swap sponsorship
    • paymaster service
    • EOA transaction recording used for Gas Tank
  • Adds enableErc4337AndReestimate() so the UI can re-enable smart account fee options and refresh estimation.
  • Adds/updates tests for gas price fetching, account fee options, and swap sponsorship gating.

@Oxbobby Oxbobby self-assigned this Jul 10, 2026
@Oxbobby Oxbobby added the enhancement New feature or request label Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant