Skip to content

client/asset/eth: enforce RBF floors when bumping tx fees#3614

Open
peterzen wants to merge 1 commit into
decred:masterfrom
peterzen:evm-bump-rbf-floor
Open

client/asset/eth: enforce RBF floors when bumping tx fees#3614
peterzen wants to merge 1 commit into
decred:masterfrom
peterzen:evm-bump-rbf-floor

Conversation

@peterzen

@peterzen peterzen commented Jul 6, 2026

Copy link
Copy Markdown
Member

Fixes the "replacement transaction underpriced" failure when bumping a stuck EVM transaction via the tooCheap action.

The bump recomputed fees from current network conditions only. With the provider tip-cap suggestion cached for up to an hour, the replacement could carry the exact same tip as the original tx, which geth-family mempools deterministically reject (both fee cap and tip cap must be strictly greater and >=10% above the old values).

The fix raises both fee components to at least their replace-by-fee floors relative to the tx being replaced. Applies to all EVM-family wallets (eth, polygon) since the implementation is shared. Observed in production on a Polygon USDC swap that stayed stuck through repeated bump attempts.

Related issue #3608

The tooCheap bump action recomputed replacement fees from current network
conditions only, never consulting the transaction being replaced. When the
provider's tip-cap suggestion is cached (1 hour TTL), the replacement could
carry the exact tip the original was created with, guaranteeing rejection by
geth-family mempools, which require both the fee cap and tip cap to be
strictly greater than, and at least 10% above, the old values.

Raise both components to at least their replace-by-fee floors relative to
the transaction being replaced.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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