Skip to content

fix(transaction-pay-controller): allow Across perps ETH gas top-up quotes#8493

Closed
pedronfigueiredo wants to merge 1 commit intomainfrom
codex/across-perps-eth-top-up
Closed

fix(transaction-pay-controller): allow Across perps ETH gas top-up quotes#8493
pedronfigueiredo wants to merge 1 commit intomainfrom
codex/across-perps-eth-top-up

Conversation

@pedronfigueiredo
Copy link
Copy Markdown
Contributor

@pedronfigueiredo pedronfigueiredo commented Apr 16, 2026

Explanation

Across perps deposits originating from the PerpsController were being rejected before any quote call when the route included both the USDC deposit leg and the destination-chain ETH gas top-up leg.

The existing Across perps support check only allowed the Arbitrum USDC leg, so the ETH leg triggered quotes-strategy-unsupported and the whole route was rejected locally before reaching Across.

Widen the perps support gate to allow the native ETH top-up leg while still only normalizing the USDC leg into the HyperCore direct-deposit path. This preserves mixed USDC + ETH perps bundles and adds regression coverage for that route shape.

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

Note

Medium Risk
Changes strategy support gating for perps deposit quotes, which could alter which requests are considered eligible for Across quoting. Scope is limited to perpsDeposit on Arbitrum (USDC vs native token) and is covered by new unit tests.

Overview
Enables Across quoting for mixed perps deposit bundles by expanding the perps support check to accept both the Arbitrum USDC deposit leg and the Arbitrum native-token (gas top-up) leg.

Keeps normalization to the HyperCore direct-deposit route only for the USDC deposit leg (leaving native-token top-up requests untouched), and adds a focused regression test suite for the new support/normalization behavior. Updates the package changelog to document the fix.

Reviewed by Cursor Bugbot for commit 0fb5941. Bugbot is set up for automated code reviews on this repo. Configure here.

…otes

Across perps deposits originating from the PerpsController were being rejected before any quote call when the route included both the USDC deposit leg and the destination-chain ETH gas top-up leg.

The existing Across perps support check only allowed the Arbitrum USDC leg, so the ETH leg triggered quotes-strategy-unsupported and the whole route was rejected locally before reaching Across.

Widen the perps support gate to allow the native ETH top-up leg while still only normalizing the USDC leg into the HyperCore direct-deposit path. This preserves mixed USDC + ETH perps bundles and adds regression coverage for that route shape.
@pedronfigueiredo pedronfigueiredo force-pushed the codex/across-perps-eth-top-up branch from eca412d to 0fb5941 Compare April 20, 2026 12:35
@pedronfigueiredo
Copy link
Copy Markdown
Contributor Author

Closing in favor of #8527

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