Skip to content

Conversation

@JonathanOppenheimer
Copy link
Member

@JonathanOppenheimer JonathanOppenheimer commented Jan 15, 2026

Why this should be merged

Adds the ACP-224 Fee Manager precompile to enable dynamic gas limit configuration in subnet-evm. This implements the configuration interface specified in https://build.avax.network/docs/acps/224-dynamic-gas-limit-in-subnet-evm.

Note that this PR only the precompile package for reading/writing configuration state. The core blockchain integration (using these values for actual gas limit adjustments) is deferred to after SAE, as SAE will redo the ACP-176 mechanism.

How this works

The precompile provides three functions with AllowList-based access control:

  • setFeeConfig(FeeConfig) - Updates configuration (Admin/Manager/Enabled only)
  • getFeeConfig() - Retrieves current configuration (public)
  • getFeeConfigLastChangedAt() - Returns block number of last update (public)

How this was tested

  • 19 config validation tests covering nil values, zero/negative values, and hash length overflow
  • 18 contract function tests covering all AllowList roles, gas exhaustion, and read-only protection

Need to be documented in RELEASES.md?

Yes, but probably not in this PR, as this doesn't change anything. Once the precompile is fully available and functional, the release notes should be updated.

@JonathanOppenheimer JonathanOppenheimer added the acp224 Introduce ACP-176-Based Dynamic Gas Limits and Fee Manager Precompile in Subnet-EVM label Jan 15, 2026
@JonathanOppenheimer JonathanOppenheimer self-assigned this Jan 15, 2026
@JonathanOppenheimer JonathanOppenheimer added evm Related to EVM functionality subnet-evm Related to the former subnet-evm standalone repository labels Jan 15, 2026
@JonathanOppenheimer JonathanOppenheimer marked this pull request as ready for review January 15, 2026 22:56
@JonathanOppenheimer JonathanOppenheimer requested a review from a team as a code owner January 15, 2026 22:56
@JonathanOppenheimer JonathanOppenheimer force-pushed the JonathanOppenheimer/add-acp224-precompile branch from 657c3cd to 7b9bb3e Compare January 15, 2026 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

acp224 Introduce ACP-176-Based Dynamic Gas Limits and Fee Manager Precompile in Subnet-EVM evm Related to EVM functionality subnet-evm Related to the former subnet-evm standalone repository

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants