feat(STX-532): set gasIncluded to true on solana quote requests#29692
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
Both changes are targeted at Solana token handling within the Bridge/Swap UI. The other two files are unit tests for these changes. Tag selection rationale:
The changes are well-contained within the Bridge/Swap Solana flow and do not affect core navigation, account management, or other unrelated features. Performance Test Selection: |
|



Description
The PR sets gasIncluded to true on Solana quote requests while preserving the fact that the MAX button is not available when SOL is the source token.
Changelog
CHANGELOG entry: null
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Performance checks (if applicable)
trace()for usage andaddTokenfor an exampleFor performance guidelines and tooling, see the Performance Guide.
Pre-merge reviewer checklist
Note
Medium Risk
Changes quote parameter selection for Solana source tokens, which can affect pricing/transaction flow for Solana swaps/bridges. Logic is small and covered by tests, but impacts a core bridging path.
Overview
For Solana source tokens,
selectGasIncludedQuoteParamsnow always returnsgasIncluded: trueand forcesgasIncluded7702: false, regardless of swap/bridge flags or STX/7702 support.The bridge MAX-button rendering logic (
useShouldRenderMaxOption) now explicitly hides MAX for Solana native assets even if gas-included quoting is enabled, and tests were updated/added to cover these Solana-specific behaviors.Reviewed by Cursor Bugbot for commit d75e3e3. Bugbot is set up for automated code reviews on this repo. Configure here.