Skip to content

Router's gas estimation code doesn't consider state gas #784

@kayabaNerve

Description

@kayabaNerve

If EIP-8037 occurs with Amsterdam, there will be a new gas metric for Serai to consider when performing its estimation and ensuring we always calculate the worst cost. As the state gas itself will be variable to the current chain state, this would be somewhat of a nightmare, where we have to consider a fee rate for the gas and a fee rate for the state gas.

Thankfully, the state gas appears largely unobservable within the EVM. While the 'state gas reservoir' running out will cause gas to be consumed, the fact the state gas reservoir appears independent and can be additionally buffered by the transaction means on-chain, one can create a view as if this was never introduced (potentially paying out of pocket to do so). This would mean all of our existing gas methodology would still function, just potentially without properly rewarding relayers for their service.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ethereumAn issue with the Ethereum integration

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions