Skip to content

Leave headroom in EIP-1559 fees - #6

Closed
techdigger wants to merge 2 commits into
mainfrom
pr/eip1559-fee-headroom
Closed

techdigger wants to merge 2 commits into
mainfrom
pr/eip1559-fee-headroom

Conversation

@techdigger

@techdigger techdigger commented Nov 12, 2026 •

Copy link
Copy Markdown

Closed in favour of #1, which keeps safe-cli's default and adds one option, --max-fee-per-gas, instead of changing the fee rule for everyone.

EthereumClient.set_eip1559_fees sets maxFeePerGas to the next block's
forecast base fee plus the tip, with no headroom. If the base fee rises
before the transaction is included, the cap falls below it and the
transaction waits. On chains that charge more than their fee history
forecasts (a fixed-fee chain whose node still projects a falling base
fee) every transaction is refused.

Use 2 x base fee + tip, as ethers, viem and web3.py's default strategy
do, for every transaction safe-cli sends. maxFeePerGas is only a cap: the
sender still pays the base fee plus the tip.
Cover execution with a local key, approve_hash and execution with a
hardware wallet in one test, each against a fee history that forecasts
less than the chain charges.
@techdigger techdigger mentioned this pull request Nov 12, 2026
@techdigger techdigger closed this Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant