Skip to content

fix(transaction-pay-controller): inherit isGasFeeSponsored for same-chain relay transactions#9216

Draft
matthewwalsh0 wants to merge 1 commit into
mainfrom
fix/pay-sponsored-gas-null-block
Draft

fix(transaction-pay-controller): inherit isGasFeeSponsored for same-chain relay transactions#9216
matthewwalsh0 wants to merge 1 commit into
mainfrom
fix/pay-sponsored-gas-null-block

Conversation

@matthewwalsh0

@matthewwalsh0 matthewwalsh0 commented Jun 21, 2026

Copy link
Copy Markdown
Member

Explanation

When a parent transaction has isGasFeeSponsored: true and the Relay quote is same-chain (source and target chain match the parent), the TPC was not carrying that sponsorship through to either the source-network fee display or the submission options passed to TransactionController.

This PR fixes that in two places:

  • Quote time (calculateSourceNetworkCost): same-chain sponsored routes now early-return with zeroed fees and gasLimits: [0], is7702: true, skipping the full gas estimation. Sponsored transactions go through the EIP-7702 gas station hook so user-paid gas is not needed.
  • Submit time (submitViaTransactionController): isGasFeeSponsored is now derived from the parent transaction and passed directly into both addTransaction and addTransactionBatch options, and gasFeeToken is suppressed when sponsored.

Additionally, skipInitialGasEstimate: true is added to direct mUSD vault deposit submissions, which follow the same sponsored path.

References

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed
  • I've introduced breaking changes in this PR and have prepared draft pull requests for clients and consumer packages to resolve them

@matthewwalsh0 matthewwalsh0 changed the title fix(transaction-pay-controller): inherit isGasFeeSponsored for same-chain Relay source fees fix(transaction-pay-controller): inherit isGasFeeSponsored for same-chain relay transactions Jun 21, 2026
@matthewwalsh0 matthewwalsh0 force-pushed the fix/pay-sponsored-gas-null-block branch from 0d3a426 to cd442e3 Compare June 21, 2026 22:42
@matthewwalsh0 matthewwalsh0 force-pushed the fix/pay-sponsored-gas-null-block branch from cd442e3 to 2347f2f Compare June 21, 2026 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant