fix(keepers): raise submission fee and retry txInsufficientFee - #759
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
collinsezedike
force-pushed
the
fix/keeper-insufficient-fee-rejections
branch
from
September 13, 2026 18:33
ed93342 to
16f44c6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Transaction rejected at submission: txInsufficientFeeonmeridian-usdc's adapter, confirmed via Vercel Functions Observability, not a timeout as originally suspected from the platform's own timeout alert.submitKeeperOperation(keeper-tx.ts) built every keeper transaction with the network's absolute minimum classic fee (BASE_FEE, 100 stroops,internal.ts), shared with the user-facing transaction-building path where a wallet can react to a rejection. An unattended keeper has no such fallback, so any ordinary fee-market congestion produces a hard rejection.isTransientKeeperErrordidn't recognizetxInsufficientFeeas retryable, so the keeper gave up after one attempt instead of retrying with a higher bid.KEEPER_BASE_FEE_STROOPS, 10,000 stroops) well above the network floor, escalating per retry attempt (keeperFeeForAttempt, doubling each time), and classifiedtxInsufficientFeeas transient so a rejection now actually retries with a bumped fee instead of failing outright.internal.ts'sBASE_FEEand the user-facing transaction-building path are untouched.attemptnumber from both keepers' existingwithKeeperRetrycallbacks intosubmitKeeperOperation, so each retry bids higher than the last.Test plan
pnpm typecheck && pnpm lintpass across the whole monorepo (turbo run lint typecheck, 16/16 tasks)turbo run test, 16/16 tasks, including@meridian/api's keeper-endpoint tests)txInsufficientFeetransient classification and thekeeperFeeForAttemptescalationprettier --checkpasses on every changed file